Searched refs:fd1 (Results 1 - 21 of 21) sorted by relevance

/haiku-fatelf/src/bin/gdb/libiberty/
H A Dfdmatch.c23 @deftypefn Extension int fdmatch (int @var{fd1}, int @var{fd2})
49 int fdmatch (fd1, fd2)
50 int fd1;
56 if ((fstat (fd1, &sbuf1) == 0) &&
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/shm_open/
H A D8-1.c37 int fd1, fd2; local
40 fd1 = mkstemp(path);
41 if(fd1 == -1) {
56 if(fd2 == (fd1+1)) {
/haiku-fatelf/src/bin/coreutils/lib/
H A Dat-func2.c40 at_func2 (int fd1, char const *file1, argument
55 fd1 file1 fd2 file2 action
68 12 fd rel cwd abs chdir to fd1
70 14 fd rel fd abs chdir to fd1
71 15a fd1 rel fd1 rel chdir to fd1
72 15b fd1 rel fd2 rel chdir to fd1, then case 7
77 if ((fd1
[all...]
H A Dlinkat.c177 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
204 while (i-- && (target = areadlinkat (fd1, name)))
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 Dopenat-priv.h40 int at_func2 (int fd1, char const *file1,
H A Dstdio.in.h530 extern int renameat (int fd1, char const *file1, int fd2, char const *file2)
H A Dunistd.in.h680 extern int linkat (int fd1, const char *path1, int fd2, const char *path2,
H A Dfts.c1603 same_fd (int fd1, int fd2) argument
1606 return (fstat (fd1, &sb1) == 0
/haiku-fatelf/src/tests/system/benchmarks/
H A Dctxbench.c20 int fd0[2], fd1[2]; variable
38 if (write(fd1[1], &ch, 1) != 1)
43 if (write(fd1[1], &ch, 1) != 1)
102 if (pipe(fd1) != 0)
150 if (read(fd1[0], &ch, 1) != 1)
158 if (read(fd1[0], &ch, 1) != 1)
/haiku-fatelf/src/bin/bash/lib/sh/
H A Doslib.c84 dup2 (fd1, fd2)
85 int fd1, fd2;
91 if (fcntl (fd1, F_GETFL, 0) == -1)
100 if (fd1 == fd2)
106 r = fcntl (fd1, F_DUPFD, fd2);
/haiku-fatelf/src/bin/bash/
H A Dinput.c318 /* This is the buffered stream analogue of dup2(fd1, fd2). The
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);
336 actually exists (it might not if fd1 was not active, and the copy
344 if (buffers[fd1] && buffers[fd1]->b_buffer && buffers[fd1]
[all...]
H A Dconfigure25287 int fd1, fd2, fl;
25288 fd1 = open("/dev/null", 2);
25289 if (fcntl(fd1, 2, 1) < 0)
25291 fd2 = dup2(fd1, 1);
/haiku-fatelf/headers/private/fs_shell/
H A Dfssh_unistd.h47 extern int fssh_dup2(int fd1, int fd2);
/haiku-fatelf/src/build/libroot/
H A Dremapped_functions.h27 int _haiku_build_dup2(int fd1, int fd2);
H A Dfunction_remapper.cpp130 dup2(int fd1, int fd2) argument
134 return _haiku_build_dup2(fd1, fd2);
H A Dfs.cpp1399 _haiku_build_dup2(int fd1, int fd2) argument
1401 if (is_unknown_or_system_descriptor(fd1))
1402 return dup2(fd1, fd2);
/haiku-fatelf/src/libs/stdc++/legacy/
H A Dlibiberty.h52 extern int fdmatch PARAMS ((int fd1, int fd2));
/haiku-fatelf/headers/build/
H A DBeOSBuildCompatibility.h114 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 Dlibiberty.h141 extern int fdmatch PARAMS ((int fd1, int fd2));
/haiku-fatelf/headers/posix/
H A Dunistd.h165 extern int dup2(int fd1, int fd2);
/haiku-fatelf/src/tools/docbook/libxml2/
H A Druntest.c605 int fd1, fd2; local
609 fd1 = open(r1, RD_FLAGS);
610 if (fd1 < 0)
614 close(fd1);
618 res1 = read(fd1, bytes1, 4096);
621 close(fd1);
628 close(fd1);
633 close(fd1);

Completed in 256 milliseconds