Home
last modified time | relevance | path

Searched refs:fcntl (Results 1 – 25 of 73) sorted by relevance

123

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_fcntl.py14 fcntl = import_module('fcntl') variable
43 fcntl.F_WRLCK, 0)
45 lockdata = struct.pack('hhlllii', fcntl.F_WRLCK, 0, 0, 0, 0, 0, 0)
49 lockdata = struct.pack('hh'+start_len+'hh', fcntl.F_WRLCK, 0, 0, 0, 0, 0)
71 rv = fcntl.fcntl(self.f.fileno(), fcntl.F_SETFL, os.O_NONBLOCK)
75 rv = fcntl.fcntl(self.f.fileno(), fcntl.F_SETLKW, lockdata)
83 rv = fcntl.fcntl(self.f, fcntl.F_SETFL, os.O_NONBLOCK)
85 rv = fcntl.fcntl(self.f, fcntl.F_SETLKW, lockdata)
92 cmd = fcntl.F_NOTIFY
94 flags = fcntl.DN_MULTISHOT
[all …]
Dtest_pty.py4 fcntl = import_module('fcntl') variable
85 orig_flags = fcntl.fcntl(master_fd, fcntl.F_GETFL)
86 fcntl.fcntl(master_fd, fcntl.F_SETFL, orig_flags | os.O_NONBLOCK)
94 fcntl.fcntl(master_fd, fcntl.F_SETFL, orig_flags)
Dtest_ioctl.py5 fcntl = import_module('fcntl') variable
15 r = fcntl.ioctl(tty, termios.TIOCGPGRP, " ")
34 r = fcntl.ioctl(tty, termios.TIOCGPGRP, " ")
51 r = fcntl.ioctl(tty, termios.TIOCGPGRP, buf, 1)
83 new_winsz = fcntl.ioctl(mfd, set_winsz_opcode_pos, our_winsz)
84 new_winsz = fcntl.ioctl(mfd, set_winsz_opcode_maybe_neg, our_winsz)
Dtest_signal.py261 import fcntl
265 flags = fcntl.fcntl(self.write, fcntl.F_GETFL, 0)
267 fcntl.fcntl(self.write, fcntl.F_SETFL, flags)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dposixfile.py117 import fcntl, os
133 cur_fl = fcntl.fcntl(file.fileno(), fcntl.F_GETFL, 0)
137 l_flags = fcntl.fcntl(file.fileno(), fcntl.F_SETFL, l_flags)
141 l_flags = fcntl.fcntl(file.fileno(), fcntl.F_SETFD, arg)
145 l_flags = fcntl.fcntl(file.fileno(), fcntl.F_GETFL, 0)
147 if fcntl.fcntl(file.fileno(), fcntl.F_GETFD, 0) & 1:
154 import struct, fcntl
156 if 'w' in how: l_type = fcntl.F_WRLCK
157 elif 'r' in how: l_type = fcntl.F_RDLCK
158 elif 'u' in how: l_type = fcntl.F_UNLCK
[all …]
DSimpleXMLRPCServer.py111 import fcntl
113 fcntl = None variable
595 if fcntl is not None and hasattr(fcntl, 'FD_CLOEXEC'):
596 flags = fcntl.fcntl(self.fileno(), fcntl.F_GETFD)
597 flags |= fcntl.FD_CLOEXEC
598 fcntl.fcntl(self.fileno(), fcntl.F_SETFD, flags)
Dasyncore.py604 import fcntl
648 flags = fcntl.fcntl(fd, fcntl.F_GETFL, 0)
650 fcntl.fcntl(fd, fcntl.F_SETFL, flags)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Ddup2.c23 if (fcntl(fd1, F_GETFL) < 0) in dup2()
25 if (fcntl(fd2, F_GETFL) >= 0) in dup2()
27 if (fcntl(fd1, F_DUPFD, fd2) < 0) in dup2()
/device/google/cuttlefish/host/commands/tapsetiff/
Dtapsetiff.py17 import fcntl
30 fcntl.ioctl(tun_fd, TUNSETIFF, ifr)
/device/google/cuttlefish/guest/hals/gps/
Dgps_thread.h60 fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) | O_NONBLOCK); in epoll_register()
/device/google/contexthub/util/stm32_flash/
Duart.c100 fl = fcntl(uart_handle->fd, F_GETFL, 0); in uart_init()
103 fl = fcntl(uart_handle->fd, F_SETFL, fl & ~O_NDELAY); in uart_init()
/device/google/cuttlefish/host/libs/screen_connector/
Dwayland_screen_connector.cpp31 int wayland_fd = fcntl(frames_fd, F_DUPFD_CLOEXEC, 3); in WaylandScreenConnector()
/device/google/cuttlefish/host/frontend/gcastv2/https/
DSupport.cpp27 int flags = fcntl(fd, F_GETFL, 0); in makeFdNonblocking()
29 DEBUG_ONLY(int res = )fcntl(fd, F_SETFL, flags | O_NONBLOCK); in makeFdNonblocking()
/device/generic/goldfish/gnss/
Dgnss_hw_conn.cpp35 ret = TEMP_FAILURE_RETRY(fcntl(fd, F_GETFL)); in epollCtlAdd()
39 ret = TEMP_FAILURE_RETRY(fcntl(fd, F_SETFL, ret | O_NONBLOCK)); in epollCtlAdd()
/device/linaro/bootloader/edk2/StdLib/Include/sys/
Dfcntl.h196 int fcntl(int, int, ...);
DEfiSysCall.h275 int fcntl (int Fd, int Cmd, ...);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dfcntlmodule.c52 ret = fcntl(fd, code, buf); in fcntl_fcntl()
70 ret = fcntl(fd, code, arg); in fcntl_fcntl()
286 ret = fcntl(fd, (code & LOCK_NB) ? F_SETLK : F_SETLKW, &l); in fcntl_flock()
367 ret = fcntl(fd, (code & LOCK_NB) ? F_SETLK : F_SETLKW, &l); in fcntl_lockf()
/device/linaro/bootloader/edk2/StdLib/LibC/Stdio/
Dfdopen.c76 if ((fdflags = fcntl(fd, F_GETFL, 0)) < 0) in __weak_alias()
/device/google/cuttlefish_vmm/aarch64-linux-gnu/etc/seccomp/
Dinput_device.policy46 fcntl: 1
Dwl_device.policy58 fcntl: arg1 == 3
/device/google/cuttlefish_vmm/x86_64-linux-gnu/etc/seccomp/
Dinput_device.policy48 fcntl: 1
Dwl_device.policy59 fcntl: arg1 == 3
Dxhci.policy57 fcntl: 1
/device/linaro/bootloader/edk2/StdLib/PosixLib/Gen/
Dopendir.c85 fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) in __opendir2()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Python/
Drandom.c255 attr = fcntl(fd, F_GETFD); in dev_urandom_python()
258 (void)fcntl(fd, F_SETFD, attr); in dev_urandom_python()

123