Lines Matching refs:fdo
205 int fdi[3], fdo, i; in btxld() local
257 if ((fdo = open(name, O_CREAT | O_TRUNC | O_WRONLY, 0666)) == -1) in btxld()
261 puthdr(fdo, &ohdr); in btxld()
266 copy(fdi[i], fdo, ldr_size, 0); in btxld()
267 seekx(fdo, ohdr.size += ohdr.text); in btxld()
274 writex(fdo, &btxle, sizeof(btxle)); in btxld()
275 copy(fdi[i], fdo, btx.btx_textsz - sizeof(btx), in btxld()
279 copy(fdi[i], fdo, ihdr.size, 0); in btxld()
280 if (ftruncate(fdo, ohdr.size += ohdr.data)) in btxld()
286 if (close(fdo)) in btxld()
447 copy(int fdi, int fdo, size_t nbyte, off_t offset) in copy() argument
457 writex(fdo, buf, n); in copy()