Home
last modified time | relevance | path

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

12345678910>>...14

/external/bison/lib/
Dpipe2.c120 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()
Dfcntl.in.h88 # 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 - "
Dfcntl.c31 # 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()
Dcloexec.c43 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()
Ddup2.c100 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/
Dwarn-type-safety.c125 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()
135fcntl(0, F_SETLK, 10); // expected-warning {{argument type 'int' doesn't match specified 'fcntl' t… in test_argument_with_type_tag()
136fcntl(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/
Dfcntl.m41 # 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])
Dfcntl_h.m42 # Configure fcntl.h.
14 gl_NEXT_HEADERS([fcntl.h])
25 gl_WARN_ON_USE_PREPARE([[#include <fcntl.h>
26 ]], [fcntl openat])
Dfcntl-o.m41 # 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/
Dflock_tool.py9 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/
Dfcntl.h41 #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/
Dfcntl.h41 #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/
Dserver_process.py50 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/
Dcli-session.c115 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/
Dports.py8 import fcntl
53 fcntl.flock(fp_lock, fcntl.LOCK_EX)
73 fcntl.flock(fp_lock, fcntl.LOCK_UN)
/external/chromium_org/mojo/common/test/
Dmultiprocess_test_base_unittest.cc64 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/
Doslib-posix.c79 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/
Dfile_locking.c33 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/
Dpoll_posix.c34 ret = fcntl(pipefd[1], F_GETFL); in usbi_pipe()
39 ret = fcntl(pipefd[1], F_SETFL, ret | O_NONBLOCK); in usbi_pipe()
/external/dhcpcd/
Dcommon.c114 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/
Dprompt.c423 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()
Di4b.c194 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/
Dlock.c27 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/
Du_network.c176 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/
Du_network.c176 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()

12345678910>>...14