diff options
author | guenther <> | 2015-09-14 07:38:38 +0000 |
---|---|---|
committer | guenther <> | 2015-09-14 07:38:38 +0000 |
commit | 4b86b5390157b27ef6f13cfffac669a4ca39ca45 (patch) | |
tree | 3e8e48085acccfec6ea84d7f7dfa4ec85ac6335f /src/lib/libc/net/getprotoent.c | |
parent | 631e2e1c0de0d507d6c3ef3349cce9c9003dac9b (diff) | |
download | openbsd-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.c | 5 |
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 | } |
50 | DEF_WEAK(setprotoent_r); | ||
50 | 51 | ||
51 | void | 52 | void |
52 | endprotoent_r(struct protoent_data *pd) | 53 | endprotoent_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 | } |
66 | DEF_WEAK(endprotoent_r); | ||
65 | 67 | ||
66 | int | 68 | int |
67 | getprotoent_r(struct protoent *pe, struct protoent_data *pd) | 69 | getprotoent_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 | } |
145 | DEF_WEAK(getprotoent_r); | ||
143 | 146 | ||
144 | struct protoent_data _protoent_data; /* shared with getproto{,name}.c */ | 147 | struct protoent_data _protoent_data; /* shared with getproto{,name}.c */ |
145 | 148 | ||