Lines Matching refs:outfd
308 static int outfd = 0;
405 pwrite(outfd, (void*)buf, size, chunk_start);
431 my_sync(outfd);
460 my_sync(outfd);
500 outfd = open(argv[1], O_RDWR | O_CREAT | O_TRUNC, 0644);
501 if (outfd == -1){
507 if ( ftruncate(outfd, FSIZE)){
516 if ( -1 == write(outfd, buffer, CLUSTERSIZE)){
522 if (-1 == lseek(outfd, 0, SEEK_SET)){
528 p_file = mmap(0, FSIZE, PROT_READ | PROT_WRITE, MAP_SHARED, outfd, 0);
593 if (verify_file(outfd, patterns[pat])) {
599 if (close(outfd)){