diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2015-09-14 10:44:41 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2015-09-14 10:44:41 +0000 |
commit | 24044e57bca88fb40cc7d16c630b2467e6ef69b8 (patch) | |
tree | 55abd4e3d195cffb68704fef54517185469e2b6e /lib/libc/gen/getnetgrent.c | |
parent | cf31c77017166a71e63b51a4ab1524cc3091daae (diff) |
Wrap <netgroup.h> so internal calls go direct and the symbols are all weak
Diffstat (limited to 'lib/libc/gen/getnetgrent.c')
-rw-r--r-- | lib/libc/gen/getnetgrent.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/gen/getnetgrent.c b/lib/libc/gen/getnetgrent.c index 749ebc9dbe4..ee90eae1be5 100644 --- a/lib/libc/gen/getnetgrent.c +++ b/lib/libc/gen/getnetgrent.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getnetgrent.c,v 1.25 2015/09/10 18:59:34 deraadt Exp $ */ +/* $OpenBSD: getnetgrent.c,v 1.26 2015/09/14 10:44:40 guenther Exp $ */ /* * Copyright (c) 1994 Christos Zoulas @@ -619,6 +619,7 @@ endnetgrent(void) _ng_db = NULL; } } +DEF_WEAK(endnetgrent); void @@ -657,6 +658,7 @@ setnetgrent(const char *ng) _nghead = _nglist; _ng_sl_free(sl, 1); } +DEF_WEAK(setnetgrent); int @@ -673,6 +675,7 @@ getnetgrent(const char **host, const char **user, const char **domain) return 1; } +DEF_WEAK(getnetgrent); int @@ -729,3 +732,4 @@ innetgr(const char *grp, const char *host, const char *user, const char *domain) return found; } +DEF_WEAK(innetgr); |