Lines Matching refs:fd1
101 int fd1;
162 fd1 = open(iplbakpath, O_WRONLY | O_CREAT | O_TRUNC, 0666);
163 if (fd1 < 0)
165 n = write(fd1, boot0buf, IPLSIZE);
170 close(fd1);
174 fd1 = open(menubakpath, O_WRONLY | O_CREAT | O_TRUNC, 0666);
175 if (fd1 < 0)
177 n = write(fd1, boot0buf + BOOTMENUOFF, BOOTMENUSIZE);
182 close(fd1);
187 fd1 = open(iplpath, O_RDONLY);
188 if (fd1 < 0)
190 n = read(fd1, ipl, IPLSIZE);
195 close(fd1);
198 fd1 = open(menupath, O_RDONLY);
199 if (fd1 < 0)
201 n = read(fd1, menu, BOOTMENUSIZE);
206 close(fd1);