CVS commit: src/lib/libc/sys

2013-04-23 Thread Roland Dowdeswell
Module Name:src
Committed By:   elric
Date:   Tue Apr 23 23:39:13 UTC 2013

Modified Files:
src/lib/libc/sys: pipe.2

Log Message:
For pipe2(2), EINVAL won't be returned if the flag is O_NOSIGPIPE.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/lib/libc/sys/pipe.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/pipe.2
diff -u src/lib/libc/sys/pipe.2:1.28 src/lib/libc/sys/pipe.2:1.29
--- src/lib/libc/sys/pipe.2:1.28	Wed Jan 25 00:28:35 2012
+++ src/lib/libc/sys/pipe.2	Tue Apr 23 23:39:13 2013
@@ -1,4 +1,4 @@
-.\	$NetBSD: pipe.2,v 1.28 2012/01/25 00:28:35 christos Exp $
+.\	$NetBSD: pipe.2,v 1.29 2013/04/23 23:39:13 elric Exp $
 .\
 .\ Copyright (c) 1980, 1991, 1993
 .\	The Regents of the University of California.  All rights reserved.
@@ -135,7 +135,8 @@ will also fail if:
 .It Bq Er EINVAL
 .Fa flags
 is other than
-.Dv O_NONBLOCK
+.Dv O_NONBLOCK ,
+.Dv O_NOSIGPIPE
 or
 .Dv O_CLOEXEC .
 .El



CVS commit: src/share/man/man9

2013-04-23 Thread YAMAMOTO Takashi
Module Name:src
Committed By:   yamt
Date:   Wed Apr 24 00:51:58 UTC 2013

Modified Files:
src/share/man/man9: scanc.9

Log Message:
fix return value


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/share/man/man9/scanc.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man9/scanc.9
diff -u src/share/man/man9/scanc.9:1.2 src/share/man/man9/scanc.9:1.3
--- src/share/man/man9/scanc.9:1.2	Tue Nov  1 23:18:07 2011
+++ src/share/man/man9/scanc.9	Wed Apr 24 00:51:58 2013
@@ -1,6 +1,6 @@
-.\	$NetBSD: scanc.9,v 1.2 2011/11/01 23:18:07 wiz Exp $
+.\	$NetBSD: scanc.9,v 1.3 2013/04/24 00:51:58 yamt Exp $
 .\
-.\ Copyright (c)2011 YAMAMOTO Takashi,
+.\ Copyright (c)2011,2013 YAMAMOTO Takashi,
 .\ All rights reserved.
 .\
 .\ Redistribution and use in source and binary forms, with or without
@@ -25,7 +25,7 @@
 .\ SUCH DAMAGE.
 .\
 .\ 
-.Dd November 1, 2011
+.Dd April 24, 2013
 .Dt SCANC 9
 .Os
 .\ 
@@ -56,7 +56,11 @@ isn't zero or the string is exhausted, t
 .Sh RETURN VALUES
 The
 .Fn scanc
-function returns the number of characters skipped.
+function returns the length of the rest of the string,
+including the character which made the scan stop.
+If the
+.Fn scanc
+function exhausted the string, it returns 0.
 .\ 
 .Sh HISTORY
 The



CVS commit: src/share/man/man9

2013-04-23 Thread YAMAMOTO Takashi
Module Name:src
Committed By:   yamt
Date:   Wed Apr 24 00:56:14 UTC 2013

Modified Files:
src/share/man/man9: scanc.9

Log Message:
fix prototype


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/share/man/man9/scanc.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man9/scanc.9
diff -u src/share/man/man9/scanc.9:1.3 src/share/man/man9/scanc.9:1.4
--- src/share/man/man9/scanc.9:1.3	Wed Apr 24 00:51:58 2013
+++ src/share/man/man9/scanc.9	Wed Apr 24 00:56:14 2013
@@ -1,4 +1,4 @@
-.\	$NetBSD: scanc.9,v 1.3 2013/04/24 00:51:58 yamt Exp $
+.\	$NetBSD: scanc.9,v 1.4 2013/04/24 00:56:14 yamt Exp $
 .\
 .\ Copyright (c)2011,2013 YAMAMOTO Takashi,
 .\ All rights reserved.
@@ -38,7 +38,7 @@
 .\ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 .Ft int
 .Fn scanc \
-size_t size const u_char *cp const u_char table[] int mask
+u_int size const u_char *cp const u_char table[] int mask
 .\ 
 .Sh DESCRIPTION
 The