xref: /netbsd/distrib/utils/libhack/getnetgr.c (revision bf9ec67e)
1 /*	$NetBSD: getnetgr.c,v 1.4 2001/06/15 17:26:51 tsutsui Exp $	*/
2 
3 #include <sys/cdefs.h>
4 
5 #ifdef __weak_alias
6 #define endnetgrent		_endnetgrent
7 #define innetgr			_innetgr
8 #define getnetgrent		_getnetgrent
9 #define setnetgrent		_setnetgrent
10 #endif
11 
12 #include <netgroup.h>
13 
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
20 
21 /*
22  * Just stub these out, so it looks like
23  * we are not in any any netgroups.
24  */
25 
26 void
27 endnetgrent()
28 {
29 }
30 
31 void
32 setnetgrent(ng)
33 	const char	*ng;
34 {
35 }
36 
37 int
38 getnetgrent(host, user, domain)
39 	const char	**host;
40 	const char	**user;
41 	const char	**domain;
42 {
43 	return 0;
44 }
45 
46 int
47 innetgr(grp, host, user, domain)
48 	const char	*grp, *host, *user, *domain;
49 {
50 	return 0;
51 }
52