Lines Matching refs:OUTPUT
117 if ( sysopen(OUTPUT, $file, O_RDWR, 0666) ) {
120 if ( (@filestat = stat(OUTPUT)) && S_ISREG($filestat[2]) ) {
124 if ( ioctl(OUTPUT, $BLKGETSIZE, $blksize) == 0 ) {
162 sysopen(OUTPUT, $file, O_CREAT|O_RDWR|O_TRUNC, 0666)
165 binmode OUTPUT;
171 print OUTPUT $emuhdr;
189 print OUTPUT $mbr;
208 print OUTPUT pack("CCCCCCCCVV", 0x80, $bhead, $bsect, $bcyl, $fstype,
211 print OUTPUT "\0" x 16;
214 print OUTPUT "\x55\xaa";
221 unless ($opt{'s'} && truncate(OUTPUT, $totalsize)) {
225 print OUTPUT "\0" x (512 * ($s-1));
228 print OUTPUT $track;
284 seek(OUTPUT, $offset + 0x1c, 0);
285 print OUTPUT pack("V", ($offset-$header_size)>>9);
302 seek(OUTPUT, $offset + 0x36, 0);
303 read(OUTPUT, $fsname, 8);
310 seek(OUTPUT, $pstart+4, 0);
311 print OUTPUT pack("C", $fstype);
313 flush OUTPUT;
317 ioctl(OUTPUT, $BLKRRPART, 0);