Lines Matching defs:tofd
107 int tofd;
126 tofd = uopen(_PATH_ZBOOT, LINUX_O_WRONLY);
127 if (tofd == -1) {
132 if (uwrite(tofd, bibuf, p - bibuf) != p - bibuf)
136 uclose(tofd);
141 tofd = uopen(_PATH_ZBOOT, LINUX_O_WRONLY);
142 if (tofd == -1) {
153 if ((sz = uwrite(tofd, buf, sz)) != sizeof(buf)) {
164 if (sz >= 0 && uwrite(tofd, buf, sz) != sz) {
169 uclose(tofd);
174 uclose(tofd);