diff options
author | David Leonard <d@cvs.openbsd.org> | 2000-03-23 22:14:04 +0000 |
---|---|---|
committer | David Leonard <d@cvs.openbsd.org> | 2000-03-23 22:14:04 +0000 |
commit | f3b7b8412c7db74a298cea1e7397f3327225ca24 (patch) | |
tree | 5cbc7cb9fd68f3f82ea1468a93760eb48f7976fa /lib/libc/gen | |
parent | 29d06a85e3dc22e007befa5117c923ea4f6af2ad (diff) |
oops, return values are int
Diffstat (limited to 'lib/libc/gen')
-rw-r--r-- | lib/libc/gen/getgrent.3 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/gen/getgrent.3 b/lib/libc/gen/getgrent.3 index 445f9751a58..77f31a4a1de 100644 --- a/lib/libc/gen/getgrent.3 +++ b/lib/libc/gen/getgrent.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getgrent.3,v 1.7 2000/03/23 22:09:01 d Exp $ +.\" $OpenBSD: getgrent.3,v 1.8 2000/03/23 22:14:03 d Exp $ .\" .\" Copyright (c) 1989, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -52,11 +52,11 @@ .Fn getgrent void .Ft struct group * .Fn getgrnam "const char *name" -.Ft struct group * +.Ft int .Fn getgrnam_r "const char *name" "struct group *grp" "char *buffer" "size_t bufsize" "struct group **result" .Ft struct group * .Fn getgrgid "gid_t gid" -.Ft struct group * +.Ft int .Fn getgrgid_r "gid_t gid" "struct group *grp" "char *buffer" "size_t bufsize" "struct group **result" .Ft int .Fn setgroupent "int stayopen" @@ -168,6 +168,7 @@ and .Fn getgrnam_r store a null pointer at the location pointed to by .Fa result +and return the error number if an error occurs, or the requested entry is not found. .Sh FILES .Bl -tag -width /etc/group -compact |