summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/getprotoent.c
diff options
context:
space:
mode:
authorguenther <>2015-09-14 07:38:38 +0000
committerguenther <>2015-09-14 07:38:38 +0000
commit4b86b5390157b27ef6f13cfffac669a4ca39ca45 (patch)
tree3e8e48085acccfec6ea84d7f7dfa4ec85ac6335f /src/lib/libc/net/getprotoent.c
parent631e2e1c0de0d507d6c3ef3349cce9c9003dac9b (diff)
downloadopenbsd-4b86b5390157b27ef6f13cfffac669a4ca39ca45.tar.gz
openbsd-4b86b5390157b27ef6f13cfffac669a4ca39ca45.tar.bz2
openbsd-4b86b5390157b27ef6f13cfffac669a4ca39ca45.zip
Finish wrapping <netdb.h> so that calls go direct and the symbols are all weak
Diffstat (limited to 'src/lib/libc/net/getprotoent.c')
-rw-r--r--src/lib/libc/net/getprotoent.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libc/net/getprotoent.c b/src/lib/libc/net/getprotoent.c
index 7431566f85..a218863d07 100644
--- a/src/lib/libc/net/getprotoent.c
+++ b/src/lib/libc/net/getprotoent.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: getprotoent.c,v 1.12 2014/10/11 03:12:13 doug Exp $ */ 1/* $OpenBSD: getprotoent.c,v 1.13 2015/09/14 07:38:38 guenther Exp $ */
2/* 2/*
3 * Copyright (c) 1983, 1993 3 * Copyright (c) 1983, 1993
4 * The Regents of the University of California. All rights reserved. 4 * The Regents of the University of California. All rights reserved.
@@ -47,6 +47,7 @@ setprotoent_r(int f, struct protoent_data *pd)
47 rewind(pd->fp); 47 rewind(pd->fp);
48 pd->stayopen |= f; 48 pd->stayopen |= f;
49} 49}
50DEF_WEAK(setprotoent_r);
50 51
51void 52void
52endprotoent_r(struct protoent_data *pd) 53endprotoent_r(struct protoent_data *pd)
@@ -62,6 +63,7 @@ endprotoent_r(struct protoent_data *pd)
62 pd->line = NULL; 63 pd->line = NULL;
63 pd->stayopen = 0; 64 pd->stayopen = 0;
64} 65}
66DEF_WEAK(endprotoent_r);
65 67
66int 68int
67getprotoent_r(struct protoent *pe, struct protoent_data *pd) 69getprotoent_r(struct protoent *pe, struct protoent_data *pd)
@@ -140,6 +142,7 @@ again:
140 *q = NULL; 142 *q = NULL;
141 return (0); 143 return (0);
142} 144}
145DEF_WEAK(getprotoent_r);
143 146
144struct protoent_data _protoent_data; /* shared with getproto{,name}.c */ 147struct protoent_data _protoent_data; /* shared with getproto{,name}.c */
145 148