Home
last modified time | relevance | path

Searched refs:O_NONBLOCK (Results 1 – 25 of 128) sorted by relevance

123456

/dragonfly/crypto/libressl/crypto/bio/
H A Db_posix.c85 if (mode && !(flags & O_NONBLOCK)) in BIO_socket_nbio()
86 return (fcntl(s, F_SETFL, flags | O_NONBLOCK) != -1); in BIO_socket_nbio()
87 else if (!mode && (flags & O_NONBLOCK)) in BIO_socket_nbio()
88 return (fcntl(s, F_SETFL, flags & ~O_NONBLOCK) != -1); in BIO_socket_nbio()
/dragonfly/sys/sys/
H A Dfcntl.h71 #define O_NONBLOCK 0x0004 /* no delay */ macro
153 #define FNONBLOCK O_NONBLOCK /* kernel */
154 #define FNDELAY O_NONBLOCK /* compat */
155 #define O_NDELAY O_NONBLOCK /* compat */
/dragonfly/gnu/usr.bin/diff/libdiffutils/
H A Dfcntl.h724 #ifndef O_NONBLOCK
725 # define O_NONBLOCK O_NDELAY macro
732 # if O_NONBLOCK
736 # undef O_NONBLOCK
737 # define O_NONBLOCK 0x40000000
/dragonfly/contrib/xz/src/xz/
H A Dfile_io.c117 flags | O_NONBLOCK) == -1) in io_init()
523 if ((stdin_flags & O_NONBLOCK) == 0 in io_open_src_real()
525 stdin_flags | O_NONBLOCK) != -1) in io_open_src_real()
556 flags |= O_NONBLOCK; in io_open_src_real()
846 if ((stdout_flags & O_NONBLOCK) == 0 in io_open_dest_real()
848 stdout_flags | O_NONBLOCK) != -1) in io_open_dest_real()
892 flags |= O_NONBLOCK; in io_open_dest_real()
958 flags |= O_NONBLOCK; in io_open_dest_real()
/dragonfly/gnu/usr.bin/grep/libgreputils/
H A Dfcntl.h750 #ifndef O_NONBLOCK
751 # define O_NONBLOCK O_NDELAY macro
758 # if O_NONBLOCK
762 # undef O_NONBLOCK
763 # define O_NONBLOCK 0x40000000
/dragonfly/sbin/udevd/
H A Dudevd_socket.c115 ret = fcntl(s, F_SETFL, flags | O_NONBLOCK); in unblock_descriptor()
125 ret = fcntl(s, F_SETFL, flags & ~O_NONBLOCK); in block_descriptor()
/dragonfly/contrib/gdb-7/readline/
H A Dshell.c192 #ifdef O_NONBLOCK
193 bflags |= O_NONBLOCK;
H A Dinput.c73 #if !defined (O_NDELAY) && defined (O_NONBLOCK)
74 # define O_NDELAY O_NONBLOCK /* Posix style */
/dragonfly/contrib/dhcpcd/compat/
H A Dpidfile.c151 if ((fd = open(path, O_RDONLY | O_NONBLOCK)) == -1) in pidfile_read()
202 opts = O_WRONLY | O_CREAT | O_NONBLOCK; in pidfile_lock()
/dragonfly/usr.sbin/ppp/
H A Dprompt.c423 stat |= O_NONBLOCK; in prompt_TtyInit()
462 stat |= O_NONBLOCK; in prompt_TtyCommandMode()
482 stat &= ~O_NONBLOCK; in prompt_TtyTermMode()
495 stat &= ~O_NONBLOCK; in prompt_TtyOldMode()
/dragonfly/contrib/libarchive/libarchive/
H A Dfilter_fork_posix.c176 fcntl(*child_stdin, F_SETFL, O_NONBLOCK); in __archive_create_child()
178 fcntl(*child_stdout, F_SETFL, O_NONBLOCK); in __archive_create_child()
H A Darchive_read_disk_entry_from_file.c153 O_RDONLY | O_NONBLOCK); in archive_read_disk_entry_setup_path()
233 O_RDONLY | O_NONBLOCK | O_CLOEXEC); in archive_read_disk_entry_from_file()
235 fd = open(path, O_RDONLY | O_NONBLOCK | in archive_read_disk_entry_from_file()
875 O_RDONLY | O_NONBLOCK | O_CLOEXEC); in setup_sparse_fiemap()
877 *fd = open(path, O_RDONLY | O_NONBLOCK | O_CLOEXEC); in setup_sparse_fiemap()
996 *fd = open(path, O_RDONLY | O_NONBLOCK | O_CLOEXEC); in setup_sparse()
/dragonfly/usr.bin/vknet/
H A Dvknet.c294 tap_fd = open(buf, O_RDWR | O_NONBLOCK); in vknet_connect()
303 tap_fd = open(buf, O_RDWR | O_NONBLOCK); in vknet_connect()
306 } else if ((tap_fd = open(localSide, O_RDWR | O_NONBLOCK)) >= 0) { in vknet_connect()
/dragonfly/contrib/gdb-7/gdb/
H A Dinflow.c612 #ifdef O_NONBLOCK in child_terminal_info()
613 if (flags & O_NONBLOCK) in child_terminal_info()
615 flags &= ~O_NONBLOCK; in child_terminal_info()
/dragonfly/contrib/grep/lib/
H A Dopendirat.c39 | O_NONBLOCK | extra_flags); in opendirat()
H A Dopenat-proc.c77 O_SEARCH | O_DIRECTORY | O_NOCTTY | O_NONBLOCK); in openat_proc_name()
/dragonfly/usr.bin/chat/
H A Dchat.c102 #ifndef O_NONBLOCK
103 #define O_NONBLOCK O_NDELAY macro
446 if (fcntl(0, F_SETFL, flags | O_NONBLOCK) == -1) in sigalrm()
1039 if (fcntl(0, F_SETFL, status & ~O_NONBLOCK) == -1) in get_char()
1067 if (fcntl(0, F_SETFL, status & ~O_NONBLOCK) == -1) in put_char()
/dragonfly/sys/kern/
H A Dsys_pipe.c307 if (flags & O_NONBLOCK) in kern_pipe()
308 rf->f_flag |= O_NONBLOCK; in kern_pipe()
325 if (flags & O_NONBLOCK) in kern_pipe()
326 wf->f_flag |= O_NONBLOCK; in kern_pipe()
482 else if (fp->f_flag & O_NONBLOCK) in pipe_read()
724 else if (fp->f_flag & O_NONBLOCK) in pipe_write()
H A Dsys_mqueue.c656 if (mqattr->mq_flags & O_NONBLOCK) { in mq_receive1()
841 if (mqattr->mq_flags & O_NONBLOCK) { in mq_send1()
1043 nonblock = (attr.mq_flags & O_NONBLOCK); in sys_mq_setattr()
1058 mq->mq_attrib.mq_flags |= O_NONBLOCK; in sys_mq_setattr()
1060 mq->mq_attrib.mq_flags &= ~O_NONBLOCK; in sys_mq_setattr()
/dragonfly/lib/libc/sysvipc/
H A Dsockets.c97 fcntl(fd, F_SETFL, flags & ~O_NONBLOCK); in handle_new_connection()
114 fcntl(sock, F_SETFL, flags & ~O_NONBLOCK); in connect_to_daemon()
/dragonfly/contrib/wpa_supplicant/src/wps/
H A Dhttp_server.c255 if (fcntl(srv->fd, F_SETFL, O_NONBLOCK) < 0) in http_server_init()
281 fcntl(srv->fd, F_SETFL, O_NONBLOCK) < 0 || in http_server_init()
/dragonfly/sys/platform/vkernel64/platform/
H A Dinit.c553 O_RDWR|O_CREAT|O_EXLOCK|O_NONBLOCK, 0644); in init_sys_memory()
561 fd = open(imageFile, O_RDWR|O_CREAT|O_EXLOCK|O_NONBLOCK, 0644); in init_sys_memory()
1032 #define TAPDEV_OFLAGS (O_RDWR | O_NONBLOCK)
1150 fcntl(net_fd, F_SETFL, O_NONBLOCK); in unix_connect()
1393 fd = open(pid_file, O_RDWR|O_CREAT|O_EXLOCK|O_NONBLOCK, 0666); in writepid()
/dragonfly/lib/libutil/
H A Dflopen.c59 if (flags & O_NONBLOCK) in flopen()
/dragonfly/sbin/comcontrol/
H A Dcomcontrol.c66 fd = open(argv[1], O_RDONLY | O_NONBLOCK, 0); in main()
/dragonfly/bin/sh/
H A Dinput.c171 if (flags >= 0 && flags & O_NONBLOCK) { in preadfd()
172 flags &=~ O_NONBLOCK; in preadfd()

123456