H A D | btxld.c | 221 int fdi[3], fdo, i; in btxld() local 227 if ((fdi[i] = open(fname, O_RDONLY)) == -1) in btxld() 231 gethdr(fdi[i], &ihdr); in btxld() 238 getbtx(fdi[i], &btx); in btxld() 241 gethdr(fdi[i], &ihdr); in btxld() 282 copy(fdi[i], fdo, ldr_size, 0); in btxld() 291 copy(fdi[i], fdo, btx.btx_textsz - sizeof(btx), in btxld() 295 copy(fdi[i], fdo, ihdr.size, 0); in btxld() 299 if (close(fdi[i])) in btxld() 459 copy(int fdi, int fdo, size_t nbyte, off_t offset) in copy() argument [all …]
|