Lines Matching refs:afd
84 int pipe, afd = FLAG(o), empty = 1; in cpio_main() local
99 afd = pipe; in cpio_main()
110 afd = xcreate(TT.F, perm, 0644); in cpio_main()
122 if (1>(len = readall(afd, toybuf+size, 110-size))) break; in cpio_main()
136 tofree = name = strpad(afd, x8u(toybuf+94), 110); in cpio_main()
168 data = strpad(afd, size, 0); in cpio_main()
188 if (size < sizeof(toybuf)) data = strpad(afd, size, 0); in cpio_main()
189 else xreadall(afd, toybuf, sizeof(toybuf)); in cpio_main()
278 xwrite(afd, toybuf, llen); in cpio_main()
279 xwrite(afd, name, nlen); in cpio_main()
283 if (llen) xwrite(afd, &zero, 4-llen); in cpio_main()
286 if (link) xwrite(afd, link, st.st_size); in cpio_main()
292 xwrite(afd, toybuf, nlen); in cpio_main()
295 if (llen) xwrite(afd, &zero, 4-llen); in cpio_main()
303 dprintf(afd, "070701%040X%056X%08XTRAILER!!!%c%c%c%c", 1, 11, 0, 0, 0, 0,0); in cpio_main()
305 if (TT.F) xclose(afd); in cpio_main()