Home
last modified time | relevance | path

Searched refs:dupfd (Results 1 – 3 of 3) sorted by relevance

/external/mesa3d/src/gallium/winsys/nouveau/drm/
Dnouveau_drm_winsys.c48 int ret, dupfd; in nouveau_drm_screen_create() local
75 dupfd = os_dupfd_cloexec(fd); in nouveau_drm_screen_create()
77 ret = nouveau_drm_new(dupfd, &drm); in nouveau_drm_screen_create()
126 _mesa_hash_table_insert(fd_tab, intptr_to_pointer(dupfd), screen); in nouveau_drm_screen_create()
137 close(dupfd); in nouveau_drm_screen_create()
/external/python/cpython3/Lib/multiprocessing/
Dheap.py106 def rebuild_arena(size, dupfd): argument
107 return Arena(size, dupfd.detach())
/external/openssh/
Dmisc.c1208 int nullfd, dupfd; in sanitise_stdfd() local
1210 if ((nullfd = dupfd = open(_PATH_DEVNULL, O_RDWR)) == -1) { in sanitise_stdfd()
1215 while (++dupfd <= STDERR_FILENO) { in sanitise_stdfd()
1217 if (fcntl(dupfd, F_GETFL) == -1 && errno == EBADF) { in sanitise_stdfd()
1218 if (dup2(nullfd, dupfd) == -1) { in sanitise_stdfd()