Home
last modified time | relevance | path

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

1234567891011

/external/webkit/Tools/Scripts/webkitpy/layout_tests/port/
Dserver_process.py40 import fcntl
81 fl = fcntl.fcntl(fd, fcntl.F_GETFL)
82 fcntl.fcntl(fd, fcntl.F_SETFL, fl | os.O_NONBLOCK)
84 fl = fcntl.fcntl(fd, fcntl.F_GETFL)
85 fcntl.fcntl(fd, fcntl.F_SETFL, fl | os.O_NONBLOCK)
/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/webkit/Tools/Scripts/webkitpy/common/system/
Dfile_lock.py47 import fcntl
48 fcntl.flock(self._lock_file_descriptor, fcntl.LOCK_EX | fcntl.LOCK_NB)
55 import fcntl
56 fcntl.flock(self._lock_file_descriptor, fcntl.LOCK_UN)
/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/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/quake/quake/src/WinQuake/
Dsys_linux.cpp121 fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) & ~FNDELAY); in Sys_Quit()
145 fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) & ~FNDELAY); in Sys_Error()
389 fcntl(0, F_SETFL, fcntl (0, F_GETFL, 0) | FNDELAY); in main()
398 fcntl(0, F_SETFL, fcntl (0, F_GETFL, 0) | FNDELAY); in main()
/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/quake/quake/src/QW/client/
Dsys_linux.c130 fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) & ~FNDELAY); in Sys_Quit()
147 fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) & ~FNDELAY); in Sys_Error()
382 fcntl(0, F_SETFL, fcntl (0, F_GETFL, 0) | FNDELAY); in 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/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/chrome/browser/importer/
Dfirefox_profile_lock_posix.cc109 if (fcntl(lock_fd_, F_GETLK, &testlock) == -1) { in LockWithFcntl()
113 } else if (fcntl(lock_fd_, F_SETLK, &lock) == -1) { in LockWithFcntl()
/external/valgrind/main/memcheck/tests/linux/
Dtimerfd-syscall.c300 fcntl(tfd, F_SETFL, fcntl(tfd, F_GETFL, 0) | O_NONBLOCK); in main()
310 fcntl(tfd, F_SETFL, fcntl(tfd, F_GETFL, 0) & ~O_NONBLOCK); in main()
/external/valgrind/main/auxprogs/
Dvalgrind-listener.c108 res = fcntl(sd, F_GETFL); in set_nonblocking()
109 res = fcntl(sd, F_SETFL, res | O_NONBLOCK); in set_nonblocking()
119 res = fcntl(sd, F_GETFL); in set_blocking()
120 res = fcntl(sd, F_SETFL, res & ~O_NONBLOCK); in set_blocking()

1234567891011