/external/mesa3d/src/gallium/auxiliary/vl/ |
vl_winsys_drm.c | 45 int new_fd; local 51 if (fd < 0 || (new_fd = fcntl(fd, F_DUPFD_CLOEXEC, 3)) < 0) 54 if (pipe_loader_drm_probe_fd(&vscreen->dev, new_fd)) 72 close(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/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;
|
/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));
|
/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/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)
|
/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;
|
/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...] |
/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/process/ |
launch_posix.cc | 386 int new_fd = HANDLE_EINTR(dup2(null_fd.get(), STDIN_FILENO)); local 387 if (new_fd != STDIN_FILENO) {
|
/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/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/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,
|
/system/netd/tests/ |
netd_test.cpp | 755 int new_fd = accept(s, reinterpret_cast<struct sockaddr *>(&cliaddr), &sin_size); local 756 ASSERT_TRUE(new_fd > 0); 768 write(new_fd, garbage.data(), garbage.size()); 769 close(new_fd); [all...] |
/external/openssh/ |
mux.c | 317 int new_fd[3]; local 379 if ((new_fd[i] = mm_receive_fd(c->sock)) == -1) { 383 close(new_fd[j]); 401 new_fd[0], new_fd[1], new_fd[2]); 411 close(new_fd[0]); 412 close(new_fd[1]); 413 close(new_fd[2]); 438 if (cctx->want_tty && tcgetattr(new_fd[0], &cctx->tio) == -1 950 int new_fd[2]; local [all...] |