diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2018-07-30 12:22:15 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2018-07-30 12:22:15 +0000 |
commit | 89f7541319ef9160e488b939e82c46161f181457 (patch) | |
tree | f5fe4b6682f7d21d11e8c57de615677c759ba3e2 /share/man | |
parent | ddc839531265c523fcba2ffe6f2c3faece95a538 (diff) |
Use FNONBLOCK instead of SS_NBIO to check/indicate that the I/O mode
for sockets is non-blocking.
This allows us to G/C SS_NBIO. Having to keep the two flags in sync
in a mp-safe way is complicated.
This change introduce a behavior change in sosplice(), it can now
always block. However this should not matter much due to the socket
lock being taken beforhand.
ok bluhm@, benno@, visa@
Diffstat (limited to 'share/man')
-rw-r--r-- | share/man/man9/socreate.9 | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/share/man/man9/socreate.9 b/share/man/man9/socreate.9 index 576a7c34247..1290f97dd0e 100644 --- a/share/man/man9/socreate.9 +++ b/share/man/man9/socreate.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: socreate.9,v 1.9 2017/09/01 15:52:03 jmc Exp $ +.\" $OpenBSD: socreate.9,v 1.10 2018/07/30 12:22:14 mpi Exp $ .\" .\" Copyright (c) 2006 Robert N. M. Watson .\" All rights reserved. @@ -26,7 +26,7 @@ .\" .\" $FreeBSD: src/share/man/man9/socket.9,v 1.2 2006/12/16 10:32:10 rwatson Exp $ .\" -.Dd $Mdocdate: September 1 2017 $ +.Dd $Mdocdate: July 30 2018 $ .Dt SOCREATE 9 .Os .Sh NAME @@ -47,7 +47,7 @@ .Ft int .Fn sobind "struct socket *so" "struct mbuf *nam" "struct proc *p" .Ft void -.Fn soclose "struct socket *so" +.Fn soclose "struct socket *so" "int flags" .Ft int .Fn soconnect "struct socket *so" "struct mbuf *nam" .Ft int @@ -308,10 +308,5 @@ if .Fn soconnect returns an error. .Pp -The -.Dv MSG_DONTWAIT -flag is not implemented for -.Fn sosend . -.Pp This manual page does not describe how to register socket upcalls or monitor a socket for readability/writability without using blocking I/O. |