Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / distrib / utils / libhack / getnetgr.c
blob96c44c4ca2f2d0b4e80df99b99aec4e8f71de64c
1 /* $NetBSD: getnetgr.c,v 1.3 1999/03/13 19:08:44 sommerfe Exp $ */
3 #include <sys/cdefs.h>
5 #ifdef __weak_alias
6 #define endnetgrent _endnetgrent
7 #define innetgr _innetgr
8 #define getnetgrent _getnetgrent
9 #define setnetgrent _setnetgrent
10 #endif
12 #include <netgroup.h>
14 #ifdef __weak_alias
15 __weak_alias(endnetgrent,_endnetgrent)
16 __weak_alias(getnetgrent,_getnetgrent)
17 __weak_alias(innetgr,_innetgr)
18 __weak_alias(setnetgrent,_setnetgrent)
19 #endif
22 * Just stub these out, so it looks like
23 * we are not in any any netgroups.
26 void
27 endnetgrent()
31 void
32 setnetgrent(ng)
33 const char *ng;
37 int
38 getnetgrent(host, user, domain)
39 const char **host;
40 const char **user;
41 const char **domain;
43 return 0;
46 int
47 innetgr(grp, host, user, domain)
48 const char *grp, *host, *user, *domain;
50 return 0;