summaryrefslogtreecommitdiff
path: root/lib/libc/include
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>2004-10-05 04:45:54 +0000
committerlukem <lukem@NetBSD.org>2004-10-05 04:45:54 +0000
commit45a7a69275d882cb57e4cedabf4f0843775f9cd3 (patch)
tree3a238f8a1fc2ef73104291c543329ca3d28c2686 /lib/libc/include
parent557877d02431935863682904906a18d42b71beba (diff)
Overhaul the use of nsdispatch(3) by public APIs so that the back-end
methods use va_list in a manner that is directly related to the public API. This makes it much easier to write dynamic nsswitch backends for getpwent(3). Per my proposal on tech-userlevel. Implement getpwgid_r() and getpwnam_r() APIs per the POSIX 1003.1, 2004 Ed. These aren't fully reentrant or threadsafe yet, because the compat stuff currently uses non-reentrant data sources (getnetgrent(3), getpwent(3)), and there is probably some locking to be improved in the backends. This will be fixed in the near future. We also need to add _SC_GETPW_R_SIZE_MAX to sysconf(3). Fix the compat `+' prototype override so getpwnam(3) and getpwuid(3) DTRT. Improve the description of pw_class and pw_gecos.
Diffstat (limited to 'lib/libc/include')
-rw-r--r--lib/libc/include/namespace.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/include/namespace.h b/lib/libc/include/namespace.h
index bd0d6e6301d..39299aeb536 100644
--- a/lib/libc/include/namespace.h
+++ b/lib/libc/include/namespace.h
@@ -1,4 +1,4 @@
-/* $NetBSD: namespace.h,v 1.94 2004/10/04 04:16:26 lukem Exp $ */
+/* $NetBSD: namespace.h,v 1.95 2004/10/05 04:45:54 lukem Exp $ */
/*-
* Copyright (c) 1997-2004 The NetBSD Foundation, Inc.
@@ -255,7 +255,9 @@
#define getprotoent_r _getprotoent_r
#define getpwent _getpwent
#define getpwnam _getpwnam
+#define getpwnam_r _getpwnam_r
#define getpwuid _getpwuid
+#define getpwuid_r _getpwuid_r
#define getrpcbyname _getrpcbyname
#define getrpcbyname_r _getrpcbyname_r
#define getrpcbynumber _getrpcbynumber