fd2 41 maint/gnulib/lib/at-func2.c int fd2, char const *file2, fd2 78 maint/gnulib/lib/at-func2.c && (fd2 == AT_FDCWD || IS_ABSOLUTE_FILE_NAME (file2))) fd2 90 maint/gnulib/lib/at-func2.c char *proc_file2 = ((fd2 == AT_FDCWD || IS_ABSOLUTE_FILE_NAME (file2)) fd2 92 maint/gnulib/lib/at-func2.c : openat_proc_name (proc_buf2, fd2, file2)); fd2 122 maint/gnulib/lib/at-func2.c fd2 = AT_FDCWD; /* Case 14 reduced to 12. */ fd2 128 maint/gnulib/lib/at-func2.c if (stat (".", &st1) == -1 || fstat (fd2, &st2) == -1) fd2 138 maint/gnulib/lib/at-func2.c else if (fd2 == AT_FDCWD) /* Cases 12, 13. */ fd2 150 maint/gnulib/lib/at-func2.c else if (fd1 != fd2) /* Case 15b. */ fd2 152 maint/gnulib/lib/at-func2.c if (fstat (fd1, &st1) == -1 || fstat (fd2, &st2) == -1) fd2 161 maint/gnulib/lib/at-func2.c fd2 = fd1; fd2 192 maint/gnulib/lib/at-func2.c if (fd1 != AT_FDCWD && fd2 != AT_FDCWD && fd1 != fd2) /* Case 15b. */ fd2 234 maint/gnulib/lib/at-func2.c else if (fd2 == AT_FDCWD && !IS_ABSOLUTE_FILE_NAME (file2)) /* Case 13. */ fd2 257 maint/gnulib/lib/at-func2.c if (fchdir (fd1 == AT_FDCWD ? fd2 : fd1) != 0) fd2 64 maint/gnulib/lib/fseterr.c int fd2; fd2 69 maint/gnulib/lib/fseterr.c fd2 = dup (fd); fd2 70 maint/gnulib/lib/fseterr.c if (fd2 >= 0) fd2 75 maint/gnulib/lib/fseterr.c if (dup2 (fd2, fd) < 0) fd2 78 maint/gnulib/lib/fseterr.c close (fd2); fd2 1681 maint/gnulib/lib/fts.c same_fd (int fd1, int fd2) fd2 1685 maint/gnulib/lib/fts.c && fstat (fd2, &sb2) == 0 fd2 190 maint/gnulib/lib/linkat.c linkat (int fd1, char const *file1, int fd2, char const *file2, int flag) fd2 197 maint/gnulib/lib/linkat.c return at_func2 (fd1, file1, fd2, file2, fd2 209 maint/gnulib/lib/linkat.c linkat_follow (int fd1, char const *file1, int fd2, char const *file2) fd2 257 maint/gnulib/lib/linkat.c result = linkat (fd1, name, fd2, file2, 0); fd2 268 maint/gnulib/lib/linkat.c rpl_linkat (int fd1, char const *file1, int fd2, char const *file2, int flag) fd2 301 maint/gnulib/lib/linkat.c int result = linkat (fd1, file1, fd2, file2, flag); fd2 307 maint/gnulib/lib/linkat.c return at_func2 (fd1, file1, fd2, file2, link_immediate); fd2 317 maint/gnulib/lib/linkat.c int result = linkat (fd1, file1, fd2, file2, flag); fd2 326 maint/gnulib/lib/linkat.c return linkat_follow (fd1, file1, fd2, file2); fd2 61 maint/gnulib/lib/openat-priv.h int fd2, char const *file2, fd2 22 maint/gnulib/lib/renameat.c renameat (int fd1, char const *src, int fd2, char const *dst) fd2 24 maint/gnulib/lib/renameat.c return renameatu (fd1, src, fd2, dst, 0); fd2 71 maint/gnulib/lib/renameatu.c renameat2ish (int fd1, char const *src, int fd2, char const *dst, fd2 77 maint/gnulib/lib/renameatu.c int r = renameatx_np (fd1, src, fd2, dst, RENAME_EXCL); fd2 83 maint/gnulib/lib/renameatu.c return renameat (fd1, src, fd2, dst); fd2 100 maint/gnulib/lib/renameatu.c renameatu (int fd1, char const *src, int fd2, char const *dst, fd2 107 maint/gnulib/lib/renameatu.c ret_val = renameat2 (fd1, src, fd2, dst, flags); fd2 110 maint/gnulib/lib/renameatu.c ret_val = syscall (SYS_renameat2, fd1, src, fd2, dst, flags); fd2 141 maint/gnulib/lib/renameatu.c if (lstatat (fd2, dst, &dst_st) == 0 || errno == EOVERFLOW) fd2 156 maint/gnulib/lib/renameatu.c return renameat2ish (fd1, src, fd2, dst, flags); fd2 161 maint/gnulib/lib/renameatu.c return renameat2ish (fd1, src, fd2, dst, flags); fd2 174 maint/gnulib/lib/renameatu.c else if (lstatat (fd2, dst, &dst_st)) fd2 216 maint/gnulib/lib/renameatu.c if (lstatat (fd2, dst_temp, &dst_st)) fd2 234 maint/gnulib/lib/renameatu.c ret_val = renameat2ish (fd1, src_temp, fd2, dst_temp, flags); fd2 250 maint/gnulib/lib/renameatu.c return at_func2 (fd1, src, fd2, dst, flags ? rename_noreplace : rename); fd2 1250 maint/gnulib/lib/stdio.in.h (int fd1, char const *file1, int fd2, char const *file2) fd2 1253 maint/gnulib/lib/stdio.in.h (int fd1, char const *file1, int fd2, char const *file2)); fd2 1257 maint/gnulib/lib/stdio.in.h (int fd1, char const *file1, int fd2, char const *file2) fd2 1261 maint/gnulib/lib/stdio.in.h (int fd1, char const *file1, int fd2, char const *file2)); fd2 1630 maint/gnulib/lib/unistd.in.h (int fd1, const char *path1, int fd2, const char *path2, fd2 1634 maint/gnulib/lib/unistd.in.h (int fd1, const char *path1, int fd2, const char *path2, fd2 1639 maint/gnulib/lib/unistd.in.h (int fd1, const char *path1, int fd2, const char *path2, fd2 1644 maint/gnulib/lib/unistd.in.h (int fd1, const char *path1, int fd2, const char *path2, fd2 84 maint/gnulib/tests/test-cloexec.c int fd2; fd2 100 maint/gnulib/tests/test-cloexec.c fd2 = dup_cloexec (fd); fd2 101 maint/gnulib/tests/test-cloexec.c ASSERT (fd < fd2); fd2 102 maint/gnulib/tests/test-cloexec.c ASSERT (!is_inheritable (fd2)); fd2 104 maint/gnulib/tests/test-cloexec.c ASSERT (dup_cloexec (fd2) == fd); fd2 106 maint/gnulib/tests/test-cloexec.c ASSERT (close (fd2) == 0); fd2 112 maint/gnulib/tests/test-cloexec.c fd2 = dup_cloexec (fd); fd2 113 maint/gnulib/tests/test-cloexec.c ASSERT (fd < fd2); fd2 114 maint/gnulib/tests/test-cloexec.c ASSERT (is_mode (fd2, O_BINARY)); fd2 115 maint/gnulib/tests/test-cloexec.c ASSERT (close (fd2) == 0); fd2 118 maint/gnulib/tests/test-cloexec.c fd2 = dup_cloexec (fd); fd2 119 maint/gnulib/tests/test-cloexec.c ASSERT (fd < fd2); fd2 120 maint/gnulib/tests/test-cloexec.c ASSERT (is_mode (fd2, O_TEXT)); fd2 121 maint/gnulib/tests/test-cloexec.c ASSERT (close (fd2) == 0); fd2 131 maint/gnulib/tests/test-cloexec.c ASSERT (set_cloexec_flag (fd2, false) == -1); fd2 140 maint/gnulib/tests/test-cloexec.c ASSERT (dup_cloexec (fd2) == -1); fd2 40 maint/gnulib/tests/test-copy-acl.c int fd2; fd2 55 maint/gnulib/tests/test-copy-acl.c fd2 = open (file2, O_WRONLY, 0600); fd2 56 maint/gnulib/tests/test-copy-acl.c if (fd2 < 0) fd2 63 maint/gnulib/tests/test-copy-acl.c if (copy_acl (file1, fd1, file2, fd2, mode)) fd2 69 maint/gnulib/tests/test-copy-acl.c close (fd2); fd2 41 maint/gnulib/tests/test-fclose.c int fd2; fd2 53 maint/gnulib/tests/test-fclose.c fd2 = dup (fd); fd2 54 maint/gnulib/tests/test-fclose.c ASSERT (0 <= fd2); fd2 55 maint/gnulib/tests/test-fclose.c f = fdopen (fd2, "w"); fd2 60 maint/gnulib/tests/test-fclose.c ASSERT (lseek (fd2, 0, SEEK_CUR) == -1); fd2 65 maint/gnulib/tests/test-fclose.c fd2 = dup (fd); fd2 66 maint/gnulib/tests/test-fclose.c ASSERT (0 <= fd2); fd2 67 maint/gnulib/tests/test-fclose.c f = fdopen (fd2, "r"); fd2 72 maint/gnulib/tests/test-fclose.c ASSERT (lseek (fd2, 0, SEEK_CUR) == -1); fd2 36 maint/gnulib/tests/test-flock.c int fd2, r; fd2 40 maint/gnulib/tests/test-flock.c fd2 = open (file, O_RDWR, 0644); fd2 41 maint/gnulib/tests/test-flock.c ASSERT (fd2 >= 0); fd2 43 maint/gnulib/tests/test-flock.c r = flock (fd2, LOCK_SH | LOCK_NB); fd2 47 maint/gnulib/tests/test-flock.c ASSERT (close (fd2) == 0); fd2 54 maint/gnulib/tests/test-flock.c int fd2, r; fd2 58 maint/gnulib/tests/test-flock.c fd2 = open (file, O_RDWR, 0644); fd2 59 maint/gnulib/tests/test-flock.c ASSERT (fd2 >= 0); fd2 61 maint/gnulib/tests/test-flock.c r = flock (fd2, LOCK_EX | LOCK_NB); fd2 82 maint/gnulib/tests/test-flock.c r = flock (fd2, LOCK_SH | LOCK_NB); fd2 87 maint/gnulib/tests/test-flock.c ASSERT (close (fd2) == 0); fd2 169 maint/gnulib/tests/test-linkat.c int fd2 = (i & 2) ? dfd : AT_FDCWD; fd2 177 maint/gnulib/tests/test-linkat.c ASSERT (linkat (fd1, file1, fd2, file2, flag) == 0); fd2 128 maint/gnulib/tests/test-renameat.c int fd2 = (i & 2) ? dfd : AT_FDCWD; fd2 133 maint/gnulib/tests/test-renameat.c ASSERT (renameat (fd1, file1, fd2, file2) == 0); fd2 131 maint/gnulib/tests/test-renameatu.c int fd2 = (i & 2) ? dfd : AT_FDCWD; fd2 136 maint/gnulib/tests/test-renameatu.c ASSERT (renameatu (fd1, file1, fd2, file2, 0) == 0);