Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen Sort sections and errors.
details: https://anonhg.NetBSD.org/src/rev/546b2543f1ec
branches: trunk
changeset: 764602:546b2543f1ec
user: wiz <wiz%NetBSD.org@localhost>
date: Thu Apr 28 16:34:01 2011 +0000
description:
Sort sections and errors.
diffstat:
lib/libc/gen/getgrent.3 | 30 +++++++++++++++---------------
lib/libc/gen/getpwent.3 | 42 +++++++++++++++++++++---------------------
2 files changed, 36 insertions(+), 36 deletions(-)
diffs (161 lines):
diff -r f47acbd1a196 -r 546b2543f1ec lib/libc/gen/getgrent.3
--- a/lib/libc/gen/getgrent.3 Thu Apr 28 16:23:41 2011 +0000
+++ b/lib/libc/gen/getgrent.3 Thu Apr 28 16:34:01 2011 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: getgrent.3,v 1.30 2010/03/22 19:30:53 joerg Exp $
+.\" $NetBSD: getgrent.3,v 1.31 2011/04/28 16:34:01 wiz Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -216,9 +216,19 @@
and
.Fn setgrent
functions have no return value.
+.Sh FILES
+.Bl -tag -width /etc/group -compact
+.It Pa /etc/group
+group database file
+.El
+.Sh COMPATIBILITY
+The historic function
+.Fn setgrfile ,
+which allowed the specification of alternative group databases, has
+been deprecated and is no longer available.
.Sh ERRORS
The following error codes may be set in
-.Va errno
+.Va errno
for
.Nm getgrent ,
.Nm getgrent_r ,
@@ -229,10 +239,10 @@
and
.Nm setgroupent :
.Bl -tag -width Er
+.It Bq Er EINTR
+A signal was caught during the database search.
.It Bq Er EIO
An I/O error has occurred.
-.It Bq Er EINTR
-A signal was caught during the database search.
.It Bq Er EMFILE
The limit on open files for this process has been reached.
.It Bq Er ENFILE
@@ -240,7 +250,7 @@
.El
.Pp
The following error code may be set in
-.Va errno
+.Va errno
for
.Nm getgrent_r ,
.Nm getgrnam_r ,
@@ -259,11 +269,6 @@
Other
.Dv errno
values may be set depending on the specific database backends.
-.Sh FILES
-.Bl -tag -width /etc/group -compact
-.It Pa /etc/group
-group database file
-.El
.Sh SEE ALSO
.Xr getpwent 3 ,
.Xr group 5 ,
@@ -313,11 +318,6 @@
.Fn getgrnam_r
appeared in
.Nx 3.0 .
-.Sh COMPATIBILITY
-The historic function
-.Fn setgrfile ,
-which allowed the specification of alternative group databases, has
-been deprecated and is no longer available.
.Sh BUGS
The functions
.Fn getgrent ,
diff -r f47acbd1a196 -r 546b2543f1ec lib/libc/gen/getpwent.3
--- a/lib/libc/gen/getpwent.3 Thu Apr 28 16:23:41 2011 +0000
+++ b/lib/libc/gen/getpwent.3 Thu Apr 28 16:34:01 2011 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: getpwent.3,v 1.37 2010/03/22 19:30:53 joerg Exp $
+.\" $NetBSD: getpwent.3,v 1.38 2011/04/28 16:35:05 wiz Exp $
.\"
.\" Copyright (c) 1988, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -236,9 +236,25 @@
variable
.Dv errno
to indicate the nature of the failure.
+.Sh FILES
+.Bl -tag -width /etc/master.passwd -compact
+.It Pa /etc/pwd.db
+The insecure password database file
+.It Pa /etc/spwd.db
+The secure password database file
+.It Pa /etc/master.passwd
+The current password file
+.It Pa /etc/passwd
+A Version 7 format password file
+.El
+.Sh COMPATIBILITY
+The historic function
+.Fn setpwfile
+which allowed the specification of alternative password databases,
+has been deprecated and is no longer available.
.Sh ERRORS
The following error codes may be set in
-.Va errno
+.Va errno
for
.Nm getpwent ,
.Nm getpwent_r ,
@@ -249,10 +265,10 @@
and
.Nm setpassent :
.Bl -tag -width Er
+.It Bq Er EINTR
+A signal was caught during the database search.
.It Bq Er EIO
An I/O error has occurred.
-.It Bq Er EINTR
-A signal was caught during the database search.
.It Bq Er EMFILE
The limit on open files for this process has been reached.
.It Bq Er ENFILE
@@ -260,7 +276,7 @@
.El
.Pp
The following error code may be set in
-.Va errno
+.Va errno
for
.Nm getpwent_r ,
.Nm getpwnam_r ,
@@ -279,17 +295,6 @@
Other
.Dv errno
values may be set depending on the specific database backends.
-.Sh FILES
-.Bl -tag -width /etc/master.passwd -compact
-.It Pa /etc/pwd.db
-The insecure password database file
-.It Pa /etc/spwd.db
-The secure password database file
-.It Pa /etc/master.passwd
-The current password file
-.It Pa /etc/passwd
-A Version 7 format password file
-.El
.Sh SEE ALSO
.Xr getlogin 2 ,
.Xr getgrent 3 ,
@@ -363,8 +368,3 @@
makes no attempt to suppress duplicate information if multiple
sources are specified in
.Xr nsswitch.conf 5 .
-.Sh COMPATIBILITY
-The historic function
-.Fn setpwfile
-which allowed the specification of alternative password databases,
-has been deprecated and is no longer available.
Home |
Main Index |
Thread Index |
Old Index