• Home
  • Raw
  • Download

Lines Matching refs:fnew

42 static char *fnew = NULL;  variable
80 unlink (fnew); in release()
360 fnew = malloc (fname_len + sizeof (".XXXXXX")); in main()
361 if (fnew == NULL) in main()
363 strcpy (mempcpy (fnew, fname, fname_len), ".XXXXXX"); in main()
365 fdnew = mkstemp (fnew); in main()
369 fnew = argv[2]; in main()
370 fdnew = open (fnew, O_WRONLY | O_CREAT, st.st_mode & ALLPERMS); in main()
374 fail_errno ("couldn't create output file", fnew); in main()
378 fail_elf ("couldn't open new ELF for writing", fnew); in main()
382 fail_elf ("Couldn't create new ehdr", fnew); in main()
385 fail_elf ("Couldn't get ehdr", fnew); in main()
404 fail_elf ("Couldn't get section zero", fnew); in main()
407 fail_elf ("Couldn't update section zero", fnew); in main()
412 fail ("Couldn't update ehdr", fnew); in main()
418 fail_elf ("Couldn't create phdrs", fnew); in main()
427 fail_elf_idx ("Couldn't create phdr", fnew, cnt); in main()
453 fail_elf_idx ("couldn't create new section", fnew, ndx); in main()
489 fail_elf_idx ("Couldn't create new data for section", fnew, ndx); in main()
537 fail_elf_idx ("Couldn't update symbol", fnew, i); in main()
623 fail_elf_idx ("Couldn't update section header", fnew, ndx); in main()
633 fail_elf ("Couldn't get ehdr", fnew); in main()
643 fail_elf ("Couldn't update ehdr", fnew); in main()
649 fail_elf ("Couldn't write ELF", fnew); in main()
656 error (0, errno, "Couldn't fchmod %s", fnew); in main()
658 error (0, errno, "Couldn't fchown %s", fnew); in main()
662 if (rename (fnew, fname) != 0) in main()
663 fail_errno ("rename", fnew); in main()
668 free (fnew); in main()
669 fnew = NULL; in main()