/haiku-fatelf/src/bin/gdb/libiberty/ |
H A D | fdmatch.c | 23 @deftypefn Extension int fdmatch (int @var{fd1}, int @var{fd2}) 49 int fdmatch (fd1, fd2) 51 int fd2; 57 (fstat (fd2, &sbuf2) == 0) &&
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/shm_open/ |
H A D | 8-1.c | 37 int fd1, fd2; local 46 fd2 = shm_open(SHM_NAME, O_RDWR | O_CREAT, S_IRUSR|S_IWUSR); 47 if(fd2 == -1) { 56 if(fd2 == (fd1+1)) {
|
/haiku-fatelf/src/bin/coreutils/lib/ |
H A D | fseterr.c | 54 int fd2; 59 fd2 = dup (fd); 60 if (fd2 >= 0) 65 if (dup2 (fd2, fd) < 0) 68 close (fd2);
|
H A D | fd-reopen.c | 40 int fd2 = dup2 (fd, desired_fd); local 44 return fd2;
|
H A D | at-func2.c | 41 int fd2, char const *file2, 55 fd1 file1 fd2 file2 action 59 3 cwd abs fd rel chdir to fd2 67 11 fd abs fd rel chdir to fd2 72 15b fd1 rel fd2 rel chdir to fd1, then case 7 78 && (fd2 == AT_FDCWD || IS_ABSOLUTE_FILE_NAME (file2))) 90 char *proc_file2 = ((fd2 == AT_FDCWD || IS_ABSOLUTE_FILE_NAME (file2)) 92 : openat_proc_name (proc_buf2, fd2, file2)); 122 fd2 = AT_FDCWD; /* Case 14 reduced to 12. */ 128 if (stat (".", &st1) == -1 || fstat (fd2, 40 at_func2(int fd1, char const *file1, int fd2, char const *file2, int (*func) (char const *file1, char const *file2)) argument [all...] |
H A D | linkat.c | 177 linkat (int fd1, char const *file1, int fd2, char const *file2, int flag) argument 184 return at_func2 (fd1, file1, fd2, file2, 196 linkat_follow (int fd1, char const *file1, int fd2, char const *file2) argument 248 result = linkat (fd1, name, fd2, file2, 0); 263 rpl_linkat (int fd1, char const *file1, int fd2, char const *file2, int flag) argument 266 return linkat (fd1, file1, fd2, file2, flag); 278 int result = linkat (fd1, file1, fd2, file2, flag); 287 return linkat_follow (fd1, file1, fd2, file2);
|
H A D | openat-priv.h | 41 int fd2, char const *file2,
|
H A D | stdio.in.h | 530 extern int renameat (int fd1, char const *file1, int fd2, char const *file2)
|
H A D | unistd.in.h | 680 extern int linkat (int fd1, const char *path1, int fd2, const char *path2,
|
H A D | fts.c | 1603 same_fd (int fd1, int fd2) argument 1607 && fstat (fd2, &sb2) == 0
|
/haiku-fatelf/src/bin/bash/lib/sh/ |
H A D | fdprintf.c | 50 int fd2, rc, r2; local 53 if ((fd2 = dup(fd)) < 0) 55 fp = fdopen (fd2, "w"); 58 close (fd2);
|
H A D | oslib.c | 84 dup2 (fd1, fd2) 85 int fd1, fd2; 94 if (fd2 < 0 || fd2 >= getdtablesize ()) 100 if (fd1 == fd2) 105 (void) close (fd2); 106 r = fcntl (fd1, F_DUPFD, fd2); 115 SET_OPEN_ON_EXEC (fd2);
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/mmap/ |
H A D | 12-1.c | 48 int fd, fd2; local 94 fd2 = open(tmpfname, O_RDWR, S_IRUSR | S_IWUSR); 107 fd2 = open(tmpfname, O_RDWR, S_IRUSR | S_IWUSR); 108 if (fd2 == -1 && errno == ENOENT) 115 if (fd2 != -1)
|
H A D | 3-1.c | 59 int fd2; local 85 fd2 = open(tmpfname2, O_CREAT | O_RDWR | O_EXCL, 87 if (fd == -1 || fd2 == -1) 103 if (write(fd2, data, total_size) != total_size) 131 pa2 = mmap(addr2, size2, prot2, flag2, fd2, off2); 155 close(fd2);
|
/haiku-fatelf/src/bin/bash/ |
H A D | input.c | 318 /* This is the buffered stream analogue of dup2(fd1, fd2). The 319 BUFFERED_STREAM corresponding to fd2 is deallocated, if one exists. 320 BUFFERS[fd1] is copied to BUFFERS[fd2]. This is called by the 323 duplicate_buffered_stream (fd1, fd2) 324 int fd1, fd2; 328 if (fd1 == fd2) 331 m = max (fd1, fd2); 339 (bash_input.location.buffered_fd == fd2); 341 if (buffers[fd2]) 344 if (buffers[fd1] && buffers[fd1]->b_buffer && buffers[fd1]->b_buffer == buffers[fd2] [all...] |
H A D | redir.c | 307 int document_len, fd2; local 338 if ((fd2 = dup (fd)) < 0 || (fp = fdopen (fd2, "w")) == NULL) 340 if (fd2 >= 0) 341 close (fd2); 358 fd2 = errno; 361 return (fd2); 384 int r, fd, fd2; local 413 fd2 = open (filename, O_RDONLY, 0600); 415 if (fd2 < [all...] |
/haiku-fatelf/headers/private/fs_shell/ |
H A D | fssh_unistd.h | 47 extern int fssh_dup2(int fd1, int fd2);
|
/haiku-fatelf/src/build/libroot/ |
H A D | remapped_functions.h | 27 int _haiku_build_dup2(int fd1, int fd2);
|
H A D | function_remapper.cpp | 130 dup2(int fd1, int fd2) argument 134 return _haiku_build_dup2(fd1, fd2);
|
H A D | fs.cpp | 1399 _haiku_build_dup2(int fd1, int fd2) argument 1402 return dup2(fd1, fd2);
|
/haiku-fatelf/src/libs/stdc++/legacy/ |
H A D | libiberty.h | 52 extern int fdmatch PARAMS ((int fd1, int fd2));
|
/haiku-fatelf/headers/build/ |
H A D | BeOSBuildCompatibility.h | 114 int _haiku_build_dup2(int fd1, int fd2); 157 # define dup2(fd1, fd2) _haiku_build_dup2(fd1, fd2)
|
/haiku-fatelf/src/bin/gdb/include/ |
H A D | libiberty.h | 141 extern int fdmatch PARAMS ((int fd1, int fd2));
|
/haiku-fatelf/headers/posix/ |
H A D | unistd.h | 165 extern int dup2(int fd1, int fd2);
|
/haiku-fatelf/src/tools/docbook/libxml2/ |
H A D | runtest.c | 605 int fd1, fd2; local 612 fd2 = open(r2, RD_FLAGS); 613 if (fd2 < 0) { 619 res2 = read(fd2, bytes2, 4096); 622 close(fd2); 629 close(fd2); 634 close(fd2);
|