HomeSort by relevance Sort by last modified time
    Searched defs:new_fd (Results 1 - 13 of 13) sorted by null

  /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;
  /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/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 180 int fd, *new_fd; local
188 new_fd = (int *)malloc(sizeof(int));
189 if (!new_fd) {
194 *new_fd = fd;
196 dev->ctx = new_fd;
  /bionic/libc/bionic/
spawn.cpp 52 int new_fd; member in struct:__posix_spawn_file_action
62 if (fd != new_fd) {
63 if (dup2(fd, new_fd) == -1) _exit(127);
70 if (dup2(fd, new_fd) == -1) _exit(127);
293 int new_fd,
313 action->new_fd = new_fd;
338 int posix_spawn_file_actions_adddup2(posix_spawn_file_actions_t* actions, int fd, int new_fd) {
339 if (fd < 0 || new_fd < 0) return EBADF;
340 return posix_spawn_add_file_action(actions, kDup2, fd, new_fd, nullptr, 0, 0)
    [all...]
  /external/libchrome/base/memory/
shared_memory_posix.cc 379 const int new_fd = HANDLE_EINTR(dup(handle_to_dup)); local
380 if (new_fd < 0) {
389 new_handle->fd = new_fd;
  /frameworks/base/core/jni/
fd_utils.cpp 290 const int new_fd = TEMP_FAILURE_RETRY(open(file_path.c_str(), open_flags)); local
292 if (new_fd == -1) {
300 if (TEMP_FAILURE_RETRY(fcntl(new_fd, F_SETFD, fd_flags)) == -1) {
301 close(new_fd);
303 new_fd,
310 if (TEMP_FAILURE_RETRY(fcntl(new_fd, F_SETFL, fs_flags)) == -1) {
311 close(new_fd);
313 new_fd,
320 if (offset != -1 && TEMP_FAILURE_RETRY(lseek64(new_fd, offset, SEEK_SET)) == -1) {
321 close(new_fd);
    [all...]
  /toolchain/binutils/binutils-2.27/libiberty/
pex-unix.c 405 int new_fd, flags; local
412 new_fd = -1, flags = 0;
419 new_fd = old_fd;
427 new_fd = fcntl (old_fd, F_DUPFD_CLOEXEC, 3);
428 if (new_fd < 0)
433 new_fd = fcntl (old_fd, F_DUPFD, 3);
434 if (new_fd < 0)
436 if (fcntl (new_fd, F_SETFD, FD_CLOEXEC) < 0)
445 *pnew_fd = new_fd;
446 else if (new_fd != old_fd
    [all...]
  /external/libchrome/base/process/
launch_posix.cc 397 int new_fd = HANDLE_EINTR(dup2(null_fd.get(), STDIN_FILENO)); local
398 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);
  /system/netd/tests/
netd_test.cpp 804 int new_fd = accept(s, reinterpret_cast<struct sockaddr *>(&cliaddr), &sin_size); local
805 ASSERT_TRUE(new_fd > 0);
817 write(new_fd, garbage.data(), garbage.size());
818 close(new_fd);
    [all...]

Completed in 374 milliseconds