Revision 23113,
1.0 KB
checked in by andersk, 16 years ago
(diff) |
In libnss-nonlocal:
* Replace the magic buflen hack with explicit iteration over the nss
chain, so that getpwent/getgrent works with nscd enabled.
* Fix some memory leaks.
* Autotoolfiscate.
* Code cleanup.
|
Rev | Line | |
---|
[22686] | 1 | /* |
---|
| 2 | * nsswitch_internal.h |
---|
| 3 | * Prototypes for some internal glibc functions that we use. Shhh. |
---|
| 4 | */ |
---|
| 5 | |
---|
| 6 | #ifndef NSSWITCH_INTERNAL_H |
---|
| 7 | #define NSSWITCH_INTERNAL_H |
---|
| 8 | |
---|
[23113] | 9 | #include "config.h" |
---|
[22686] | 10 | |
---|
[23113] | 11 | /* glibc/config.h.in */ |
---|
| 12 | #if defined USE_REGPARMS && !defined PROF && !defined __BOUNDED_POINTERS__ |
---|
| 13 | # define internal_function __attribute__ ((regparm (3), stdcall)) |
---|
| 14 | #else |
---|
| 15 | # define internal_function |
---|
| 16 | #endif |
---|
[22686] | 17 | |
---|
[23113] | 18 | /* glibc/nss/nsswitch.h */ |
---|
| 19 | typedef struct service_user service_user; |
---|
[22686] | 20 | |
---|
[23113] | 21 | extern int __nss_next (service_user **ni, const char *fct_name, void **fctp, |
---|
| 22 | int status, int all_values); |
---|
| 23 | extern int __nss_database_lookup (const char *database, |
---|
| 24 | const char *alternative_name, |
---|
| 25 | const char *defconfig, service_user **ni); |
---|
| 26 | extern void *__nss_lookup_function (service_user *ni, const char *fct_name); |
---|
[22686] | 27 | |
---|
[23113] | 28 | /* glibc/nss/XXX-lookup.c */ |
---|
| 29 | extern int __nss_passwd_lookup (service_user **ni, const char *fct_name, |
---|
| 30 | void **fctp) internal_function; |
---|
| 31 | extern int __nss_group_lookup (service_user **ni, const char *fct_name, |
---|
| 32 | void **fctp) internal_function; |
---|
[22686] | 33 | |
---|
| 34 | #endif /* NSSWITCH_INTERNAL_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.