/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()
|
D | dup2.c | 100 return fcntl (fd, F_GETFL) == -1 ? -1 : fd; in rpl_dup2() 140 int result = fcntl (fd, F_GETFL) < 0 ? -1 : fd; in dup2() 145 result = fcntl (fd, F_DUPFD, desired_fd); in dup2()
|
/external/clang/test/Sema/ |
D | warn-type-safety.c | 125 static const int F_DUPFD_tag __attribute__(( type_tag_for_datatype(fcntl,int) )) = F_DUPFD; 126 static const int F_SETLK_tag __attribute__(( type_tag_for_datatype(fcntl,struct flock *) )) = F_SET… 128 int fcntl(int fd, int cmd, ...) __attribute__(( argument_with_type_tag(fcntl,3,2) )); 132 fcntl(0, F_DUPFD, 10); // no-warning in test_argument_with_type_tag() 133 fcntl(0, F_SETLK, f); // no-warning in test_argument_with_type_tag() 135 …fcntl(0, F_SETLK, 10); // expected-warning {{argument type 'int' doesn't match specified 'fcntl' t… in test_argument_with_type_tag() 136 …fcntl(0, F_DUPFD, f); // expected-warning {{argument type 'struct flock *' doesn't match specifie… in test_argument_with_type_tag() 140 fcntl(0, b ? F_DUPFD : F_SETLK, 10); // no-warning in test_tag_expresssion() 141 fcntl(0, b + F_DUPFD, 10); // no-warning in test_tag_expresssion() 142 fcntl(0, (b, F_DUPFD), 10); // expected-warning {{expression result unused}} in test_tag_expresssion()
|
/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])
|
D | fcntl-o.m4 | 1 # fcntl-o.m4 serial 4 14 dnl Persuade glibc <fcntl.h> to define O_NOATIME and O_NOFOLLOW. 23 AC_CACHE_CHECK([for working fcntl.h], [gl_cv_header_working_fcntl_h], 35 #include <fcntl.h>
|
/external/chromium_org/tools/gyp/pylib/gyp/ |
D | flock_tool.py | 9 import fcntl 43 op = struct.pack('hhllhhl', fcntl.F_WRLCK, 0, 0, 0, 0, 0, 0) 44 fcntl.fcntl(fd, fcntl.F_SETLK, op)
|
/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/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/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/ |
D | server_process.py | 50 import fcntl 148 fl = fcntl.fcntl(fd, fcntl.F_GETFL) 149 fcntl.fcntl(fd, fcntl.F_SETFL, fl | os.O_NONBLOCK) 151 fl = fcntl.fcntl(fd, fcntl.F_GETFL) 152 fcntl.fcntl(fd, fcntl.F_SETFL, fl | os.O_NONBLOCK)
|
/external/dropbear/ |
D | cli-session.c | 115 cli_ses.stdinflags = fcntl(STDIN_FILENO, F_GETFL, 0); in cli_session_init() 117 cli_ses.stdoutflags = fcntl(STDOUT_FILENO, F_GETFL, 0); in cli_session_init() 119 cli_ses.stderrflags = fcntl(STDERR_FILENO, F_GETFL, 0); in cli_session_init() 274 fcntl(cli_ses.stdincopy, F_SETFL, cli_ses.stdinflags); in cli_session_cleanup() 275 fcntl(cli_ses.stdoutcopy, F_SETFL, cli_ses.stdoutflags); in cli_session_cleanup() 276 fcntl(cli_ses.stderrcopy, F_SETFL, cli_ses.stderrflags); in cli_session_cleanup()
|
/external/chromium_org/build/android/pylib/ |
D | ports.py | 8 import fcntl 53 fcntl.flock(fp_lock, fcntl.LOCK_EX) 73 fcntl.flock(fp_lock, fcntl.LOCK_UN)
|
/external/chromium_org/mojo/common/test/ |
D | multiprocess_test_base_unittest.cc | 64 CHECK((fcntl(fd, F_GETFL) & O_NONBLOCK)); in TEST_F() 66 PCHECK(fcntl(fd, F_SETFL, 0) == 0); in TEST_F() 94 CHECK((fcntl(fd, F_GETFL) & O_NONBLOCK)); in MOJO_MULTIPROCESS_TEST_CHILD_MAIN() 96 PCHECK(fcntl(fd, F_SETFL, 0) == 0); in MOJO_MULTIPROCESS_TEST_CHILD_MAIN()
|
/external/qemu/ |
D | oslib-posix.c | 79 f = fcntl(fd, F_GETFL); 80 fcntl(fd, F_SETFL, f | O_NONBLOCK); 87 f = fcntl(fd, F_GETFD); in qemu_set_cloexec() 88 fcntl(fd, F_SETFD, f | FD_CLOEXEC); in qemu_set_cloexec()
|
/external/valgrind/main/memcheck/tests/ |
D | file_locking.c | 33 return fcntl(fd, F_SETLK, &fl) >= 0; in lock_file() 49 flags = fcntl(fd, F_GETFD); in open_lock_and_map() 51 if (fcntl(fd, F_SETFD, flags | FD_CLOEXEC) < 0) in open_lock_and_map()
|
/external/chromium_org/third_party/libusb/src/libusb/os/ |
D | poll_posix.c | 34 ret = fcntl(pipefd[1], F_GETFL); in usbi_pipe() 39 ret = fcntl(pipefd[1], F_SETFL, ret | O_NONBLOCK); in usbi_pipe()
|
/external/dhcpcd/ |
D | common.c | 114 if ((flags = fcntl(fd, F_GETFD, 0)) == -1 || in set_cloexec() 115 fcntl(fd, F_SETFD, flags | FD_CLOEXEC) == -1) in set_cloexec() 128 if ((flags = fcntl(fd, F_GETFL, 0)) == -1 || in set_nonblock() 129 fcntl(fd, F_SETFL, flags | O_NONBLOCK) == -1) in set_nonblock()
|
/external/libppp/src/ |
D | prompt.c | 423 stat = fcntl(fd, F_GETFL, 0); in prompt_TtyInit() 426 fcntl(fd, F_SETFL, stat); in prompt_TtyInit() 462 stat = fcntl(p->fd_in, F_GETFL, 0); in prompt_TtyCommandMode() 465 fcntl(p->fd_in, F_SETFL, stat); in prompt_TtyCommandMode() 482 stat = fcntl(p->fd_in, F_GETFL, 0); in prompt_TtyTermMode() 485 fcntl(p->fd_in, F_SETFL, stat); in prompt_TtyTermMode() 495 stat = fcntl(p->fd_in, F_GETFL, 0); in prompt_TtyOldMode() 498 fcntl(p->fd_in, F_SETFL, stat); in prompt_TtyOldMode()
|
D | i4b.c | 194 oldflag = fcntl(p->fd, F_GETFL, 0); in i4b_Raw() 197 fcntl(p->fd, F_SETFL, oldflag | O_NONBLOCK); in i4b_Raw() 225 if ((oldflag = fcntl(p->fd, F_GETFL, 0)) != -1) in i4b_Cooked() 226 fcntl(p->fd, F_SETFL, oldflag & ~O_NONBLOCK); in i4b_Cooked() 411 oldflag = fcntl(p->fd, F_GETFL, 0); in i4b_Create() 423 fcntl(p->fd, F_SETFL, oldflag & ~O_NONBLOCK); in i4b_Create()
|
/external/ppp/pppd/plugins/radius/ |
D | lock.c | 27 res = fcntl(fd, F_SETLK, &fl); in do_lock_exclusive() 45 return fcntl(fd, F_SETLK, &fl); in do_unlock()
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/ |
D | u_network.c | 176 int old = fcntl(s, F_GETFL, 0); in u_socket_block() 182 fcntl(s, F_SETFL, old & ~O_NONBLOCK); in u_socket_block() 184 fcntl(s, F_SETFL, old | O_NONBLOCK); in u_socket_block()
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_network.c | 176 int old = fcntl(s, F_GETFL, 0); in u_socket_block() 182 fcntl(s, F_SETFL, old & ~O_NONBLOCK); in u_socket_block() 184 fcntl(s, F_SETFL, old | O_NONBLOCK); in u_socket_block()
|