Home
last modified time | relevance | path

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

/third_party/elfutils/tests/
Delfstrmerge.c43 static int fdnew = -1; variable
78 if (fdnew != -1) in release()
82 close (fdnew); in release()
382 fdnew = mkstemp (fnew); in main()
387 fdnew = open (fnew, O_WRONLY | O_CREAT, st.st_mode & ALLPERMS); in main()
390 if (fdnew < 0) in main()
393 elfnew = elf_begin (fdnew, ELF_C_WRITE, NULL); in main()
665 if (fchmod (fdnew, st.st_mode & ALLPERMS) != 0) in main()
667 if (fchown (fdnew, st.st_uid, st.st_gid) != 0) in main()
676 close (fdnew); in main()
[all …]
/third_party/elfutils/src/
Delfcompress.c281 int fdnew = -1; in process_file() local
547 fdnew = mkstemp (fnew); in process_file()
552 fdnew = open (fnew, O_WRONLY | O_CREAT, st.st_mode & ALLPERMS); in process_file()
555 if (fdnew < 0) in process_file()
564 elfnew = elf_begin (fdnew, ELF_C_WRITE, NULL); in process_file()
1272 if (fchown (fdnew, st.st_uid, st.st_gid) != 0) in process_file()
1275 if (fchmod (fdnew, st.st_mode & ALLPERMS) != 0) in process_file()
1297 close (fdnew); in process_file()