Searched refs:dupfd (Results 1 - 4 of 4) sorted by relevance
/external/mesa3d/src/gallium/winsys/nouveau/drm/ |
H A D | nouveau_drm_winsys.c | 68 int ret, dupfd; local 95 dupfd = fcntl(fd, F_DUPFD_CLOEXEC, 3); 97 ret = nouveau_drm_new(dupfd, &drm); 140 /* Use dupfd in hash table, to avoid errors if the original fd gets 144 util_hash_table_set(fd_tab, intptr_to_pointer(dupfd), screen); 155 close(dupfd);
|
/external/bison/lib/ |
H A D | dup2.c | 121 dupfd (int fd, int desired_fd) function 128 int r = dupfd (fd, desired_fd); 151 result = dupfd (fd, desired_fd);
|
H A D | fcntl.c | 50 dupfd (int oldfd, int newfd, int flags) function 181 result = dupfd (fd, target, 0); 222 result = dupfd (fd, target, O_CLOEXEC);
|
/external/openssh/ |
H A D | misc.c | 791 int nullfd, dupfd; local 793 if ((nullfd = dupfd = open(_PATH_DEVNULL, O_RDWR)) == -1) { 798 while (++dupfd <= STDERR_FILENO) { 800 if (fcntl(dupfd, F_GETFL) == -1 && errno == EBADF) { 801 if (dup2(nullfd, dupfd) == -1) {
|
Completed in 323 milliseconds