Module Name: src
Committed By: yamt
Date: Thu Jun 2 01:04:18 UTC 2011
Modified Files:
src/lib/libc/sys: accept.2
Log Message:
compatibility note
To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/lib/libc/sys/accept.2
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/sys/accept.2
diff -u src/lib/libc/sys/accept.2:1.25 src/lib/libc/sys/accept.2:1.26
--- src/lib/libc/sys/accept.2:1.25 Fri Nov 17 23:59:33 2006
+++ src/lib/libc/sys/accept.2 Thu Jun 2 01:04:18 2011
@@ -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 @@
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