HomeSort by relevance Sort by last modified time
    Searched refs:new_fd (Results 1 - 15 of 15) 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
36 if (old_fd == new_fd) {
43 return dup3(old_fd, new_fd, 0);
  /external/ltp/testcases/kernel/syscalls/dup3/
dup3_02.c 47 static int new_fd; variable
57 {&old_fd, &new_fd, INVALID_FLAG, EINVAL}
109 new_fd = -1;
  /frameworks/base/core/jni/
fd_utils.cpp 232 const int new_fd = TEMP_FAILURE_RETRY(open(file_path.c_str(), open_flags)); local
234 if (new_fd == -1) {
239 if (TEMP_FAILURE_RETRY(fcntl(new_fd, F_SETFD, fd_flags)) == -1) {
240 close(new_fd);
241 PLOG(ERROR) << "Failed fcntl(" << new_fd << ", F_SETFD, " << fd_flags << ")";
245 if (TEMP_FAILURE_RETRY(fcntl(new_fd, F_SETFL, fs_flags)) == -1) {
246 close(new_fd);
247 PLOG(ERROR) << "Failed fcntl(" << new_fd << ", F_SETFL, " << fs_flags << ")";
251 if (offset != -1 && TEMP_FAILURE_RETRY(lseek64(new_fd, offset, SEEK_SET)) == -1) {
252 close(new_fd);
259 PLOG(ERROR) << "Failed dup2(" << fd << ", " << new_fd << ")"; local
    [all...]
  /external/toybox/toys/pending/
telnetd.c 55 int new_fd, pty_fd; member in struct:term_session
310 int pty_fd, new_fd, c = 0, w, master_fd = 0; local
326 tm->new_fd = 0;
350 if (tm->new_fd >= 0 && tm->buff2_avail < BUFSIZE) FD_SET(tm->new_fd, &rd);
353 if (tm->new_fd >= 0 && (tm->buff1_avail - tm->buff1_written) > 0)
354 FD_SET(tm->new_fd, &wr);
364 new_fd = accept(master_fd, NULL, NULL);
365 if (new_fd < 0) continue;
367 fcntl(new_fd, F_SETFD, FD_CLOEXEC)
    [all...]
  /external/bison/lib/
spawni.c 256 int new_fd = open_not_cancel (action->action.open_action.path, local
261 if (new_fd == -1)
266 if (new_fd != action->action.open_action.fd)
268 if (dup2 (new_fd, action->action.open_action.fd)
273 if (close_not_cancel (new_fd) != 0)
  /system/update_engine/payload_generator/
block_mapping.cc 150 int new_fd = HANDLE_EINTR(open(new_part.c_str(), O_RDONLY)); local
152 ScopedFdCloser new_fd_closer(&new_fd);
157 new_fd, 0, new_size / block_size, new_block_ids));
  /toolchain/binutils/binutils-2.25/libiberty/
pex-unix.c 406 int new_fd, flags; local
413 new_fd = -1, flags = 0;
420 new_fd = old_fd;
428 new_fd = fcntl (old_fd, F_DUPFD_CLOEXEC, 3);
429 if (new_fd < 0)
434 new_fd = fcntl (old_fd, F_DUPFD, 3);
435 if (new_fd < 0)
437 if (fcntl (new_fd, F_SETFD, FD_CLOEXEC) < 0)
446 *pnew_fd = new_fd;
447 else if (new_fd != old_fd
    [all...]
  /external/libchrome/base/test/
multiprocess_test_android.cc 268 int new_fd; local
269 CHECK(iter.ReadInt(&new_fd));
271 if (new_fd != old_fd) {
272 if (dup2(old_fd, new_fd) < 0) {
437 int new_fd = it->second; local
438 if (dup2(old_fd, new_fd) < 0) {
  /external/openssh/
mux.c 314 int new_fd[3]; local
376 if ((new_fd[i] = mm_receive_fd(c->sock)) == -1) {
380 close(new_fd[j]);
398 new_fd[0], new_fd[1], new_fd[2]);
408 close(new_fd[0]);
409 close(new_fd[1]);
410 close(new_fd[2]);
435 if (cctx->want_tty && tcgetattr(new_fd[0], &cctx->tio) == -1
947 int new_fd[2]; local
    [all...]
  /external/fmtlib/fmt/
posix.cc 172 int new_fd = FMT_POSIX_CALL(dup(fd)); local
173 if (new_fd == -1)
175 return File(new_fd);
  /external/libchrome/sandbox/linux/seccomp-bpf/
syscall_unittest.cc 86 int new_fd; local
88 ASSERT_GE(new_fd = Syscall::Call(__NR_dup, 2), 0);
89 int close_return_value = IGNORE_EINTR(Syscall::Call(__NR_close, new_fd));
  /external/libchrome/base/memory/
shared_memory_posix.cc 484 const int new_fd = HANDLE_EINTR(dup(handle_to_dup)); local
485 if (new_fd < 0) {
494 new_handle->fd = new_fd;
  /external/libevent/
listener.c 396 evutil_socket_t new_fd = accept(fd, (struct sockaddr*)&ss, &socklen); local
397 if (new_fd < 0)
402 evutil_closesocket(new_fd);
407 evutil_make_socket_nonblocking(new_fd);
410 evutil_closesocket(new_fd);
418 cb(lev, new_fd, (struct sockaddr*)&ss, (int)socklen,
  /external/libchrome/base/process/
launch_posix.cc 386 int new_fd = HANDLE_EINTR(dup2(null_fd.get(), STDIN_FILENO)); local
387 if (new_fd != STDIN_FILENO) {
  /external/ppp/pppd/
sys-linux.c 266 /* new_fd is the fd of a tty */
267 static void set_ppp_fd (int new_fd)
269 ppp_fd = new_fd;
271 ppp_dev_fd = new_fd;
    [all...]

Completed in 2749 milliseconds