HomeSort by relevance Sort by last modified time
    Searched refs:old_fd (Results 1 - 9 of 9) sorted by null

  /bionic/libc/bionic/
dup2.cpp 32 int dup2(int old_fd, int new_fd) {
33 // If old_fd is equal to new_fd and a valid file descriptor, dup2 returns
34 // old_fd without closing it. This is not true of dup3, so we have to
36 if (old_fd == new_fd) {
37 if (fcntl(old_fd, F_GETFD) == -1) {
40 return old_fd;
43 return dup3(old_fd, new_fd, 0);
  /external/libchrome/base/test/
multiprocess_test_android.cc 57 int old_fd = it->first; local
59 if (dup2(old_fd, new_fd) < 0) {
62 close(old_fd);
  /external/drm_hwcomposer/
autofd.h 45 int old_fd = fd_; local
47 return old_fd;
  /system/update_engine/payload_generator/
block_mapping_unittest.cc 76 int old_fd = HANDLE_EINTR(open(old_part_path_.c_str(), O_RDONLY)); local
77 ScopedFdCloser old_fd_closer(&old_fd);
79 EXPECT_EQ(0, bm_.AddDiskBlock(old_fd, 0));
block_mapping.cc 149 int old_fd = HANDLE_EINTR(open(old_part.c_str(), O_RDONLY)); local
151 ScopedFdCloser old_fd_closer(&old_fd);
155 old_fd, 0, old_size / block_size, old_block_ids));
  /toolchain/binutils/binutils-2.25/libiberty/
pex-unix.c 398 /* Subroutine of pex_unix_exec_child. Move OLD_FD to a new file descriptor
400 saved copy to be close-on-exec. Move CHILD_FD into OLD_FD. If CHILD_FD
401 is -1, OLD_FD is to be closed. Return -1 on error. */
404 save_and_install_fd(int *pnew_fd, int *pflags, int old_fd, int child_fd)
408 flags = fcntl (old_fd, F_GETFD);
410 /* If we could not retrieve the flags, then OLD_FD was not open. */
414 if (child_fd >= 0 && dup2 (child_fd, old_fd) < 0)
417 /* If we wish to close OLD_FD, just mark it CLOEXEC. */
420 new_fd = old_fd;
421 if ((flags & FD_CLOEXEC) == 0 && fcntl (old_fd, F_SETFD, FD_CLOEXEC) < 0
    [all...]
  /external/autotest/client/common_lib/
logging_manager.py 637 # * old_fd: FD holding a copy of the managed FD before launching a new
642 my_context = {'old_fd': fd_copy, 'child_pid': child_pid}
658 old_fd = my_context['old_fd']
659 os.dup2(old_fd, self._fd)
660 os.close(old_fd)
  /external/opencv3/3rdparty/libtiff/
tif_open.c 528 int old_fd = tif->tif_fd; local
530 return old_fd;
  /external/pdfium/third_party/libtiff/
tif_open.c 528 int old_fd = tif->tif_fd; local
530 return old_fd;

Completed in 1258 milliseconds