diff options
Diffstat (limited to 'usr/src/lib/libresolv2/include/netgroup.h')
-rw-r--r-- | usr/src/lib/libresolv2/include/netgroup.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/usr/src/lib/libresolv2/include/netgroup.h b/usr/src/lib/libresolv2/include/netgroup.h index 36cc9a742f..e4be459fdf 100644 --- a/usr/src/lib/libresolv2/include/netgroup.h +++ b/usr/src/lib/libresolv2/include/netgroup.h @@ -1,26 +1,26 @@ -/* - * Copyright 2002 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. - */ - -#pragma ident "%Z%%M% %I% %E% SMI" - -#ifdef ORIGINAL_ISC_CODE #ifndef netgroup_h #define netgroup_h +#ifndef __GLIBC__ -int getnetgrent(const char **machinep, const char **userp, - const char **domainp); - -int getnetgrent_r(char **machinep, char **userp, char **domainp, - char *buffer, int buflen); - -void setnetgrent(const char *netgroup); +/* + * The standard is crazy. These values "belong" to getnetgrent() and + * shouldn't be altered by the caller. + */ +int getnetgrent __P((/* const */ char **, /* const */ char **, + /* const */ char **)); -void endnetgrent(void); +int getnetgrent_r __P((char **, char **, char **, char *, int)); -int innetgr(const char *netgroup, const char *machine, - const char *user, const char *domain); +void endnetgrent __P((void)); +#ifdef __osf__ +int innetgr __P((char *, char *, char *, char *)); +void setnetgrent __P((char *)); +#else +void setnetgrent __P((const char *)); +int innetgr __P((const char *, const char *, const char *, const char *)); +#endif #endif -#endif /* ORIGINAL_ISC_CODE */ +#endif + +/*! \file */ |