/external/clang/test/Sema/ |
D | warn-type-safety.c | 127 static const int F_DUPFD_tag __attribute__(( type_tag_for_datatype(fcntl,int) )) = F_DUPFD; 128 static const int F_SETLK_tag __attribute__(( type_tag_for_datatype(fcntl,struct flock *) )) = F_SET… 130 int fcntl(int fd, int cmd, ...) __attribute__(( argument_with_type_tag(fcntl,3,2) )); 134 fcntl(0, F_DUPFD, 10); // no-warning in test_argument_with_type_tag() 135 fcntl(0, F_SETLK, f); // no-warning in test_argument_with_type_tag() 137 …fcntl(0, F_SETLK, 10); // expected-warning {{argument type 'int' doesn't match specified 'fcntl' t… in test_argument_with_type_tag() 138 …fcntl(0, F_DUPFD, f); // expected-warning {{argument type 'struct flock *' doesn't match specifie… in test_argument_with_type_tag() 142 fcntl(0, b ? F_DUPFD : F_SETLK, 10); // no-warning in test_tag_expresssion() 143 fcntl(0, b + F_DUPFD, 10); // no-warning in test_tag_expresssion() 144 fcntl(0, (b, F_DUPFD), 10); // expected-warning {{expression result unused}} in test_tag_expresssion()
|
/external/bison/lib/ |
D | pipe2.c | 120 if ((fcntl_flags = fcntl (fd[1], F_GETFL, 0)) < 0 in pipe2() 121 || fcntl (fd[1], F_SETFL, fcntl_flags | O_NONBLOCK) == -1 in pipe2() 122 || (fcntl_flags = fcntl (fd[0], F_GETFL, 0)) < 0 in pipe2() 123 || fcntl (fd[0], F_SETFL, fcntl_flags | O_NONBLOCK) == -1) in pipe2() 131 if ((fcntl_flags = fcntl (fd[1], F_GETFD, 0)) < 0 in pipe2() 132 || fcntl (fd[1], F_SETFD, fcntl_flags | FD_CLOEXEC) == -1 in pipe2() 133 || (fcntl_flags = fcntl (fd[0], F_GETFD, 0)) < 0 in pipe2() 134 || fcntl (fd[0], F_SETFD, fcntl_flags | FD_CLOEXEC) == -1) in pipe2()
|
D | fcntl.in.h | 88 # undef fcntl 89 # define fcntl rpl_fcntl 91 _GL_FUNCDECL_RPL (fcntl, int, (int fd, int action, ...)); 92 _GL_CXXALIAS_RPL (fcntl, int, (int fd, int action, ...)); 95 _GL_FUNCDECL_SYS (fcntl, int, (int fd, int action, ...)); 97 _GL_CXXALIAS_SYS (fcntl, int, (int fd, int action, ...)); 99 _GL_CXXALIASWARN (fcntl); 101 # undef fcntl 103 _GL_WARN_ON_USE (fcntl, "fcntl is not always POSIX compliant - "
|
D | fcntl.c | 31 # define rpl_fcntl fcntl 33 #undef fcntl 194 int flags = fcntl (fd, F_GETFD); in rpl_fcntl() 200 result = fcntl (fd, action, target); in rpl_fcntl() 201 if (0 <= result && fcntl (fd, F_SETFD, flags) == -1) in rpl_fcntl() 235 result = fcntl (fd, action, target); in rpl_fcntl() 256 int flags = fcntl (result, F_GETFD); in rpl_fcntl() 257 if (flags < 0 || fcntl (result, F_SETFD, flags | FD_CLOEXEC) == -1) in rpl_fcntl() 302 result = fcntl (fd, action, p); in rpl_fcntl()
|
D | cloexec.c | 43 int flags = fcntl (desc, F_GETFD, 0); in set_cloexec_flag() 50 || fcntl (desc, F_SETFD, newflags) != -1) in set_cloexec_flag() 82 return fcntl (fd, F_DUPFD_CLOEXEC, 0); in dup_cloexec()
|
/external/bison/m4/ |
D | fcntl.m4 | 1 # fcntl.m4 serial 5 7 # For now, this module ensures that fcntl() 22 AC_CHECK_FUNCS_ONCE([fcntl]) 28 AC_CACHE_CHECK([whether fcntl handles F_DUPFD correctly], 31 #include <fcntl.h> 34 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1; 53 AC_CACHE_CHECK([whether fcntl understands F_DUPFD_CLOEXEC], 56 #include <fcntl.h> 76 dnl Replace fcntl() for supporting the gnulib-defined fchdir() function, 89 AC_CHECK_FUNCS_ONCE([fcntl])
|
D | fcntl_h.m4 | 2 # Configure fcntl.h. 14 gl_NEXT_HEADERS([fcntl.h]) 25 gl_WARN_ON_USE_PREPARE([[#include <fcntl.h> 26 ]], [fcntl openat])
|
/external/chromium-trace/catapult/catapult_base/catapult_base/ |
D | lock.py | 26 import fcntl # pylint: disable=import-error 27 LOCK_EX = fcntl.LOCK_EX 28 LOCK_SH = fcntl.LOCK_SH 29 LOCK_NB = fcntl.LOCK_NB 107 fcntl.flock(target_file.fileno(), flags) 117 fcntl.flock(target_file.fileno(), fcntl.LOCK_UN)
|
D | cloud_storage.py | 20 import fcntl 22 fcntl = None variable 225 if fcntl: 226 fcntl.flock(fd, fcntl.LOCK_EX) 230 if fcntl: 231 fcntl.flock(fd, fcntl.LOCK_UN)
|
/external/autotest/client/deps/lansim/src/py/ |
D | tuntap.py | 5 import fcntl 112 ifs = fcntl.ioctl(fd, pyiftun.TUNSETIFF, 129 ifs = fcntl.ioctl(self._sock, pyiftun.SIOCGIFMTU, 136 ifs = fcntl.ioctl(self._sock, pyiftun.SIOCGIFFLAGS, 143 ifs = fcntl.ioctl(self._sock, pyiftun.SIOCSIFFLAGS, 154 ifs = fcntl.ioctl(self._sock, pyiftun.SIOCGIFADDR, 170 ifs = fcntl.ioctl(self._sock, pyiftun.SIOCSIFADDR, 177 ifs = fcntl.ioctl(self._sock, pyiftun.SIOCSIFNETMASK, 187 ifs = fcntl.ioctl(self._sock, pyiftun.SIOCGIFHWADDR, 202 ifs = fcntl.ioctl(self._sock, pyiftun.SIOCSIFHWADDR,
|
/external/autotest/scheduler/ |
D | status_server.py | 1 import BaseHTTPServer, cgi, threading, urllib, fcntl, logging 106 old_flags = fcntl.fcntl(self.fileno(), fcntl.F_GETFD) 107 fcntl.fcntl(self.fileno(), fcntl.F_SETFD, old_flags | fcntl.FD_CLOEXEC)
|
/external/autotest/client/bin/ |
D | autotestd | 4 import sys, os, subprocess, fcntl 40 fcntl.flock(exit_file, fcntl.LOCK_EX) 49 fcntl.flock(exit_file, fcntl.LOCK_UN)
|
D | autotestd_monitor | 4 import sys, os, signal, time, subprocess, fcntl 46 fcntl.flock(exit_code_file, fcntl.LOCK_EX) 55 fcntl.flock(exit_code_file, fcntl.LOCK_UN)
|
/external/chromium-trace/catapult/devil/devil/utils/ |
D | cmd_helper.py | 19 import fcntl 21 fcntl = None variable 217 assert fcntl, 'fcntl module is required' 221 fl = fcntl.fcntl(child_fd, fcntl.F_GETFL) 222 fcntl.fcntl(child_fd, fcntl.F_SETFL, fl | os.O_NONBLOCK)
|
/external/bison/linux-lib/ |
D | fcntl.h | 41 #include_next <fcntl.h> 61 #include_next <fcntl.h> 400 # undef fcntl 401 # define fcntl rpl_fcntl macro 403 _GL_FUNCDECL_RPL (fcntl, int, (int fd, int action, ...)); 404 _GL_CXXALIAS_RPL (fcntl, int, (int fd, int action, ...)); 407 _GL_FUNCDECL_SYS (fcntl, int, (int fd, int action, ...)); 409 _GL_CXXALIAS_SYS (fcntl, int, (int fd, int action, ...)); 411 _GL_CXXALIASWARN (fcntl); 413 # undef fcntl [all …]
|
/external/bison/darwin-lib/ |
D | fcntl.h | 41 #include_next <fcntl.h> 61 #include_next <fcntl.h> 400 # undef fcntl 401 # define fcntl rpl_fcntl 403 _GL_FUNCDECL_RPL (fcntl, int, (int fd, int action, ...)); 404 _GL_CXXALIAS_RPL (fcntl, int, (int fd, int action, ...)); 407 _GL_FUNCDECL_SYS (fcntl, int, (int fd, int action, ...)); 409 _GL_CXXALIAS_SYS (fcntl, int, (int fd, int action, ...)); 411 _GL_CXXALIASWARN (fcntl); 413 # undef fcntl [all …]
|
/external/chromium-trace/catapult/telemetry/third_party/pyserial/serial/ |
D | serialposix.py | 15 import sys, os, fcntl, termios, struct, select, errno, time 27 FCNTL = fcntl 145 import array, fcntl 148 fcntl.ioctl(port.fd, IOSSIOSPEED, buf, 1) 449 s = fcntl.ioctl(self.fd, TIOCINQ, TIOCM_zero_str) 546 fcntl.ioctl(self.fd, TIOCSBRK) 548 fcntl.ioctl(self.fd, TIOCCBRK) 554 fcntl.ioctl(self.fd, TIOCMBIS, TIOCM_RTS_str) 556 fcntl.ioctl(self.fd, TIOCMBIC, TIOCM_RTS_str) 562 fcntl.ioctl(self.fd, TIOCMBIS, TIOCM_DTR_str) [all …]
|
/external/avahi/avahi-core/ |
D | fdutil.c | 36 if ((n = fcntl(fd, F_GETFD)) < 0) in avahi_set_cloexec() 42 return fcntl(fd, F_SETFD, n|FD_CLOEXEC); in avahi_set_cloexec() 50 if ((n = fcntl(fd, F_GETFL)) < 0) in avahi_set_nonblock() 56 return fcntl(fd, F_SETFL, n|O_NONBLOCK); in avahi_set_nonblock()
|
/external/autotest/client/cros/cellular/wardmodem/ |
D | at_channel.py | 5 import fcntl 76 flags = fcntl.fcntl(self._channel, fcntl.F_GETFL) 78 fcntl.fcntl(self._channel, fcntl.F_SETFL, flags)
|
D | at_channel_unittest.py | 9 import fcntl 40 flags = fcntl.fcntl(self._channel_file.fileno(), fcntl.F_GETFL) 42 fcntl.fcntl(self._channel_file.fileno(), fcntl.F_SETFL, flags)
|
/external/autotest/client/tests/kvm/scripts/ |
D | virtio_console_guest.py | 13 import fcntl, traceback, signal, time 386 fl = fcntl.fcntl(fd, fcntl.F_GETFL) 388 fcntl.fcntl(fd, fcntl.F_SETFL, fl | os.O_NONBLOCK) 390 fcntl.fcntl(fd, fcntl.F_SETFL, fl & ~os.O_NONBLOCK) 477 fcntl.fcntl(fd, fcntl.F_SETOWN, os.getpid()) 478 fl = fcntl.fcntl(fd, fcntl.F_GETFL) 482 fcntl.fcntl(fd, fcntl.F_SETFL, fl | os.O_ASYNC) 487 fcntl.fcntl(fd, fcntl.F_SETFL, fl & ~os.O_ASYNC)
|
/external/parameter-framework/asio-1.10.6/include/asio/detail/impl/ |
D | pipe_select_interrupter.ipp | 18 #include <fcntl.h> 43 ::fcntl(read_descriptor_, F_SETFL, O_NONBLOCK); 45 ::fcntl(write_descriptor_, F_SETFL, O_NONBLOCK); 48 ::fcntl(read_descriptor_, F_SETFD, FD_CLOEXEC); 49 ::fcntl(write_descriptor_, F_SETFD, FD_CLOEXEC);
|
/external/autotest/client/site_tests/firmware_TouchMTB/ |
D | keyboard_device.py | 7 import fcntl 69 fcntl.fcntl(fd, fcntl.F_SETFL, os.O_NONBLOCK)
|
/external/chromium-trace/catapult/devil/devil/android/ |
D | ports.py | 8 import fcntl 56 fcntl.flock(fp_lock, fcntl.LOCK_EX) 76 fcntl.flock(fp_lock, fcntl.LOCK_UN)
|
/external/vboot_reference/cgpt/ |
D | cgpt_nor.c | 212 int fd_flags = fcntl(1, F_GETFD); in ReadNorFlash() 214 fcntl(1, F_SETFD, FD_CLOEXEC); in ReadNorFlash() 223 fcntl(1, F_SETFD, fd_flags); in ReadNorFlash() 237 int fd_flags = fcntl(1, F_GETFD); in WriteNorFlash() 239 fcntl(1, F_SETFD, FD_CLOEXEC); in WriteNorFlash() 250 fcntl(1, F_SETFD, fd_flags); in WriteNorFlash()
|