Lines Matching refs:argv
41 int main(int argc,char **argv) in main() argument
49 if (stat (argv[3], &s) < 0) die (argv[3]); in main()
50 map = fopen (argv[2], "r"); in main()
51 if (!map) die(argv[2]); in main()
59 if ((image = open(argv[1],O_RDWR)) < 0) die(argv[1]); in main()
60 if (read(image,buffer,512) != 512) die(argv[1]); in main()
66 if (read(image,buffer,512) != 512) die(argv[1]); in main()
80 if (read(image,buffer,1024) != 1024) die(argv[1]); in main()
96 if (write(image,buffer+2,14) != 14) die (argv[1]); in main()
101 if (write(image,buffer,12) != 12) die (argv[1]); in main()
103 if ((tail = open(argv[3],O_RDONLY)) < 0) die(argv[3]); in main()
105 if (write(image,buffer,i) != i) die (argv[1]); in main()