Home
last modified time | relevance | path

Searched refs:fd_flags (Results 1 – 18 of 18) sorted by relevance

/external/libmicrohttpd/src/microspdy/
Dio_raw.c64 int fd_flags; in SPDYF_raw_new_session() local
69 fd_flags = fcntl (session->socket_fd, F_GETFL); in SPDYF_raw_new_session()
70 if ( -1 == fd_flags in SPDYF_raw_new_session()
71 || 0 != fcntl (session->socket_fd, F_SETFL, fd_flags | O_NONBLOCK)) in SPDYF_raw_new_session()
/external/fio/engines/
Dbinject.c26 int *fd_flags; member
113 bd->fd_flags[i] = fio_set_fd_nonblocking(bf->fd, "binject"); in fio_binject_getevents()
115 bd->fd_flags[i] = -1; in fio_binject_getevents()
159 if (bd->fd_flags[i] == -1) in fio_binject_getevents()
162 if (fcntl(bf->fd, F_SETFL, bd->fd_flags[i]) < 0) in fio_binject_getevents()
384 free(bd->fd_flags); in fio_binject_cleanup()
406 bd->fd_flags = malloc(sizeof(int) * td->o.nr_files); in fio_binject_init()
407 memset(bd->fd_flags, 0, sizeof(int) * td->o.nr_files); in fio_binject_init()
Dsg.c32 int *fd_flags; member
118 sd->fd_flags[i] = fio_set_fd_nonblocking(f->fd, "sg"); in fio_sgio_getevents()
120 sd->fd_flags[i] = -1; in fio_sgio_getevents()
195 if (sd->fd_flags[i] == -1) in fio_sgio_getevents()
198 if (fcntl(f->fd, F_SETFL, sd->fd_flags[i]) < 0) in fio_sgio_getevents()
468 free(sd->fd_flags); in fio_sgio_cleanup()
487 sd->fd_flags = malloc(sizeof(int) * td->o.nr_files); in fio_sgio_init()
488 memset(sd->fd_flags, 0, sizeof(int) * td->o.nr_files); in fio_sgio_init()
/external/scapy/scapy/arch/bpf/
Dsupersocket.py39 fd_flags = None variable in _L2bpfSocket
146 if self.fd_flags is None:
148 self.fd_flags = fcntl.fcntl(self.ins, fcntl.F_GETFL)
155 new_fd_flags = self.fd_flags | os.O_NONBLOCK
157 new_fd_flags = self.fd_flags & ~os.O_NONBLOCK
161 self.fd_flags = new_fd_flags
/external/vboot_reference/cgpt/
Dcgpt_nor.c212 int fd_flags = fcntl(1, F_GETFD); in ReadNorFlash() local
223 fcntl(1, F_SETFD, fd_flags); in ReadNorFlash()
237 int fd_flags = fcntl(1, F_GETFD); in WriteNorFlash() local
250 fcntl(1, F_SETFD, fd_flags); in WriteNorFlash()
/external/perf_data_converter/src/quipper/
Drun_command.cc25 int fd_flags = fcntl(fd, F_GETFD); in CloseFdOnExec() local
26 if (fd_flags == -1) { in CloseFdOnExec()
30 if (fcntl(fd, F_SETFD, fd_flags | FD_CLOEXEC)) { in CloseFdOnExec()
/external/libbrillo/brillo/streams/
Dfile_stream.cc298 int fd_flags = HANDLE_EINTR(fcntl(file_descriptor, F_GETFL)); in FromFileDescriptor() local
299 if (fd_flags < 0) { in FromFileDescriptor()
303 int file_access_mode = (fd_flags & O_ACCMODE); in FromFileDescriptor()
312 if ((fd_flags & O_NONBLOCK) == 0) { in FromFileDescriptor()
313 fd_flags |= O_NONBLOCK; in FromFileDescriptor()
314 if (HANDLE_EINTR(fcntl(file_descriptor, F_SETFL, fd_flags)) < 0) { in FromFileDescriptor()
/external/toolchain-utils/automation/common/
Dcommand_executer.py120 fd_flags = fcntl.fcntl(fd, fcntl.F_GETFL)
121 fcntl.fcntl(fd, fcntl.F_SETFL, fd_flags | os.O_NONBLOCK)
/external/e2fsprogs/lib/ext2fs/
Dunix_io.c640 int fd_flags; in unixfd_open() local
644 fd_flags = fcntl(fd, F_GETFD); in unixfd_open()
645 if (fd_flags == -1) in unixfd_open()
649 if (fd_flags & O_RDWR) in unixfd_open()
651 if (fd_flags & O_EXCL) in unixfd_open()
654 if (fd_flags & O_DIRECT) in unixfd_open()
/external/dhcpcd-6.8.2/
Dcontrol.c153 control_handle1(struct dhcpcd_ctx *ctx, int lfd, unsigned int fd_flags) in control_handle1() argument
179 l->flags = fd_flags; in control_handle1()
/external/googletest/googletest/src/
Dgtest-death-test.cc1041 int fd_flags; in ExecDeathTestSpawnChild() local
1043 GTEST_DEATH_TEST_CHECK_SYSCALL_(fd_flags = fcntl(close_fd, F_GETFD)); in ExecDeathTestSpawnChild()
1045 fd_flags | FD_CLOEXEC)); in ExecDeathTestSpawnChild()
/external/v8/testing/gtest/src/
Dgtest-death-test.cc1040 int fd_flags; in ExecDeathTestSpawnChild() local
1042 GTEST_DEATH_TEST_CHECK_SYSCALL_(fd_flags = fcntl(close_fd, F_GETFD)); in ExecDeathTestSpawnChild()
1044 fd_flags | FD_CLOEXEC)); in ExecDeathTestSpawnChild()
/external/libvpx/libvpx/third_party/googletest/src/src/
Dgtest-death-test.cc1042 int fd_flags; in ExecDeathTestSpawnChild() local
1044 GTEST_DEATH_TEST_CHECK_SYSCALL_(fd_flags = fcntl(close_fd, F_GETFD)); in ExecDeathTestSpawnChild()
1046 fd_flags | FD_CLOEXEC)); in ExecDeathTestSpawnChild()
/external/autotest/client/common_lib/
Dlogging_manager.py599 fd_flags = fcntl.fcntl(self._fd, fcntl.F_GETFD)
601 fd_flags | fcntl.FD_CLOEXEC)
/external/mesa3d/src/gtest/src/
Dgtest-death-test.cc1024 int fd_flags; in ExecDeathTestSpawnChild() local
1026 GTEST_DEATH_TEST_CHECK_SYSCALL_(fd_flags = fcntl(close_fd, F_GETFD)); in ExecDeathTestSpawnChild()
1028 fd_flags | FD_CLOEXEC)); in ExecDeathTestSpawnChild()
/external/google-breakpad/src/testing/gtest/src/
Dgtest-death-test.cc1029 int fd_flags; in ExecDeathTestSpawnChild() local
1031 GTEST_DEATH_TEST_CHECK_SYSCALL_(fd_flags = fcntl(close_fd, F_GETFD)); in ExecDeathTestSpawnChild()
1033 fd_flags | FD_CLOEXEC)); in ExecDeathTestSpawnChild()
/external/vulkan-validation-layers/tests/gtest-1.7.0/src/
Dgtest-death-test.cc1024 int fd_flags; in ExecDeathTestSpawnChild() local
1026 GTEST_DEATH_TEST_CHECK_SYSCALL_(fd_flags = fcntl(close_fd, F_GETFD)); in ExecDeathTestSpawnChild()
1028 fd_flags | FD_CLOEXEC)); in ExecDeathTestSpawnChild()
/external/vulkan-validation-layers/tests/gtest-1.7.0/fused-src/gtest/
Dgtest-all.cc7518 int fd_flags; in ExecDeathTestSpawnChild() local
7520 GTEST_DEATH_TEST_CHECK_SYSCALL_(fd_flags = fcntl(close_fd, F_GETFD)); in ExecDeathTestSpawnChild()
7522 fd_flags | FD_CLOEXEC)); in ExecDeathTestSpawnChild()