Lines Matching refs:fh
25 int fh;
41 fh = open(argv[1],O_RDONLY);
42 if (fh < 0) {
46 totalsize = lseek(fh,0L,SEEK_END);
47 lseek(fh,0L,SEEK_SET);
55 if (read(fh,image, totalsize) != totalsize) {
60 close(fh);
66 fh = open(argv[2],O_RDWR |O_CREAT |O_TRUNC,
68 if (fh < 0) {
73 if (write(fh,image,totalsize) != totalsize) {
103 if (write(fh, padding, padbytes) != padbytes) {
114 close(fh);