summaryrefslogtreecommitdiff
path: root/lib/libc/sys
diff options
context:
space:
mode:
authoryamt <yamt@NetBSD.org>2011-06-02 01:04:18 +0000
committeryamt <yamt@NetBSD.org>2011-06-02 01:04:18 +0000
commitb905ccebe056d7b7efd117bea2bcce6c40ce9c74 (patch)
treea6176f234fffc16c3cb0c7e48c09023371143057 /lib/libc/sys
parenta8d23e5120a9178d5becff55853b790608082f8b (diff)
compatibility note
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/accept.213
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/libc/sys/accept.2 b/lib/libc/sys/accept.2
index 61f25cb9446..9c7ea975d5b 100644
--- a/lib/libc/sys/accept.2
+++ b/lib/libc/sys/accept.2
@@ -1,4 +1,4 @@
-.\" $NetBSD: accept.2,v 1.25 2006/11/17 23:59:33 rillig Exp $
+.\" $NetBSD: accept.2,v 1.26 2011/06/02 01:04:18 yamt Exp $
.\"
.\" Copyright (c) 1983, 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)accept.2 8.2 (Berkeley) 12/11/93
.\"
-.Dd November 18, 2006
+.Dd June 2, 2011
.Dt ACCEPT 2
.Os
.Sh NAME
@@ -135,6 +135,15 @@ or by calling
The call returns \-1 on error.
If it succeeds, it returns a non-negative
integer that is a descriptor for the accepted socket.
+.Sh COMPATIBILITY
+This implementation makes the new file descriptor inherit file flags
+(like
+.Dv O_NONBLOCK )
+from the listening socket.
+It's a traditional behaviour for BSD derivative systems.
+On the other hand, there are implementations which don't do so.
+Linux is an example of such implementations.
+Portable programs should not rely on either of the behaviours.
.Sh ERRORS
The
.Fn accept