/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/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;
|
/external/virglrenderer/vtest/ |
vtest_server.c | 73 int new_fd; local 83 new_fd = accept(sock, NULL, NULL); 84 return new_fd;
|
/external/adhd/cras/src/tests/ |
util_unittest.cc | 30 * new_fd */ 51 /* Send a character to the new_fd, and receive it from the read end 76 * new_fd */ 92 /* Send a character to the new_fd, and receive it from the read end 107 int new_fd; local 113 * new_fd */ 119 cras_recv_with_fds(sock[1], buf, strlen(msg), &new_fd, &num_fds)); 127 /* Send a character to the new_fd, and receive it from the read end 129 ASSERT_EQ(1, write(new_fd, "a", 1)); 134 close(new_fd); [all...] |
/external/nos/host/android/citadel/libnos_datagram/ |
citadel.c | 207 int fd, *new_fd; local 215 new_fd = (int *)malloc(sizeof(int)); 216 if (!new_fd) { 221 *new_fd = fd; 223 dev->ctx = new_fd;
|
/external/ltp/testcases/kernel/syscalls/memfd_create/ |
memfd_create03.c | 135 int new_fd; local 146 new_fd = sys_memfd_create("new_file", MFD_HUGETLB); 147 if (new_fd < 0) 151 new_mem = mmap(NULL, hps, 0, MAP_PRIVATE, new_fd, 0); 156 NULL, hps, 0, MAP_PRIVATE, new_fd, 0); 160 NULL, hps, 0, MAP_PRIVATE, new_fd, 0); 164 NULL, hps, 0, MAP_PRIVATE, new_fd, 0); 168 SAFE_CLOSE(new_fd);
|
/bionic/libc/bionic/ |
spawn.cpp | 54 int new_fd; member in struct:__posix_spawn_file_action 64 if (fd != new_fd) { 65 if (dup2(fd, new_fd) == -1) _exit(127); 72 if (dup2(fd, new_fd) == -1) _exit(127); 295 int new_fd, 315 action->new_fd = new_fd; 340 int posix_spawn_file_actions_adddup2(posix_spawn_file_actions_t* actions, int fd, int new_fd) { 341 if (fd < 0 || new_fd < 0) return EBADF; 342 return posix_spawn_add_file_action(actions, kDup2, fd, new_fd, nullptr, 0, 0) [all...] |
/external/libchrome/base/process/ |
launch_posix.cc | 400 int new_fd = HANDLE_EINTR(dup2(null_fd.get(), STDIN_FILENO)); local 401 if (new_fd != STDIN_FILENO) {
|
/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 | 399 evutil_socket_t new_fd = evutil_accept4_(fd, (struct sockaddr*)&ss, &socklen, lev->accept4_flags); local 400 if (new_fd < 0) 405 evutil_closesocket(new_fd); 410 evutil_closesocket(new_fd); 418 cb(lev, new_fd, (struct sockaddr*)&ss, (int)socklen, 425 evutil_closesocket(new_fd);
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
test_select_reuseport.c | 400 int new_fd = accept(srv_fd, NULL, 0); local 402 CHECK(new_fd == -1, "accept(srv_fd)", 403 "ev.data.u32:%u new_fd:%d errno:%d\n", 404 ev.data.u32, new_fd, errno); 406 nread = recv(new_fd, &rcv_cmd, sizeof(rcv_cmd), MSG_DONTWAIT); 408 "recv(new_fd)", 412 close(new_fd);
|
/external/u-boot/tools/ |
ifdtool.c | 494 int new_fd; local 498 new_fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | 500 if (new_fd < 0) 502 if (write(new_fd, image, size) != size) 504 close(new_fd);
|
/external/grpc-grpc/src/core/lib/iomgr/ |
ev_epoll1_linux.cc | 319 grpc_fd* new_fd = nullptr; local 323 new_fd = fd_freelist; 328 if (new_fd == nullptr) { 329 new_fd = static_cast<grpc_fd*>(gpr_malloc(sizeof(grpc_fd))); 330 new_fd->read_closure.Init(); 331 new_fd->write_closure.Init(); 332 new_fd->error_closure.Init(); 334 new_fd->fd = fd; 335 new_fd->read_closure->InitEvent(); 336 new_fd->write_closure->InitEvent() [all...] |
ev_epollex_linux.cc | 417 grpc_fd* new_fd = nullptr; local 421 new_fd = fd_freelist; 426 if (new_fd == nullptr) { 427 new_fd = static_cast<grpc_fd*>(gpr_malloc(sizeof(grpc_fd))); 428 new_fd->read_closure.Init(); 429 new_fd->write_closure.Init(); 430 new_fd->error_closure.Init(); 433 new_fd->fd = fd; 434 new_fd->salt = gpr_atm_no_barrier_fetch_add(&g_fd_salt, 1); 435 gpr_atm_rel_store(&new_fd->refst, (gpr_atm)1) [all...] |
ev_epollsig_linux.cc | 811 grpc_fd* new_fd = nullptr; local 815 new_fd = fd_freelist; 820 if (new_fd == nullptr) { 821 new_fd = static_cast<grpc_fd*>(gpr_malloc(sizeof(grpc_fd))); 822 gpr_mu_init(&new_fd->po.mu); 823 new_fd->read_closure.Init(); 824 new_fd->write_closure.Init(); 825 new_fd->error_closure.Init(); 828 /* Note: It is not really needed to get the new_fd->po.mu lock here. If this 831 gpr_mu_lock(&new_fd->po.mu) [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...] |
/bionic/libc/stdio/ |
stdio.cpp | 1214 int new_fd = fcntl(fds[child], F_DUPFD_CLOEXEC, 0); local 1215 if (new_fd == -1) return __popen_fail(fds); 1217 fds[child] = new_fd;
|