Lines Matching refs:newfd
134 copy_content (Elf *elf, int newfd, off_t off, size_t n)
146 return write_retry (newfd, rawfile + off, n) != (ssize_t) n;
234 int newfd = mkstemp (tmpfname);
235 if (unlikely (newfd == -1))
244 if (unlikely (write_retry (newfd, ARMAG, SARMAG) != SARMAG))
249 if (newfd != -1)
250 close (newfd);
265 && ((write_retry (newfd, symtab.symsoff,
268 || (write_retry (newfd, symtab.symsname,
274 && copy_content (arelf, newfd, SARMAG, index_off - SARMAG))
275 || copy_content (arelf, newfd, rest_off, st.st_size - rest_off)
278 || fchmod (newfd, st.st_mode & ALLPERMS) != 0
280 || (({asm ("" :: "r" (fchown (newfd, st.st_uid, st.st_gid))); }),
281 close (newfd) != 0)
282 || (newfd = -1, rename (tmpfname, fname) != 0))