Searched refs:fdnew (Results 1 - 2 of 2) sorted by relevance

/external/elfutils/tests/
H A Delfstrmerge.c42 static int fdnew = -1; variable
77 if (fdnew != -1)
81 close (fdnew);
364 fdnew = mkstemp (fnew);
369 fdnew = open (fnew, O_WRONLY | O_CREAT, st.st_mode & ALLPERMS);
372 if (fdnew < 0)
375 elfnew = elf_begin (fdnew, ELF_C_WRITE, NULL);
653 if (fchmod (fdnew, st.st_mode & ALLPERMS) != 0)
655 if (fchown (fdnew, st.st_uid, st.st_gid) != 0)
664 close (fdnew);
[all...]
/external/elfutils/src/
H A Delfcompress.c260 int fdnew = -1; local
298 close (fdnew);
543 fdnew = mkstemp (fnew);
548 fdnew = open (fnew, O_WRONLY | O_CREAT, st.st_mode & ALLPERMS);
551 if (fdnew < 0)
560 elfnew = elf_begin (fdnew, ELF_C_WRITE, NULL);
1238 if (fchmod (fdnew, st.st_mode & ALLPERMS) != 0)
1241 if (fchown (fdnew, st.st_uid, st.st_gid) != 0)

Completed in 130 milliseconds