diff options
author | guenther <> | 2015-09-12 14:56:50 +0000 |
---|---|---|
committer | guenther <> | 2015-09-12 14:56:50 +0000 |
commit | bb3dc274c59720dc1e231a536edf176cf9687b2e (patch) | |
tree | 6a69eda4ad5fbf1a3d11bcb1b69836678c8514d4 | |
parent | 816e64a6d2b32b5c4a058d38acc0834a669372c8 (diff) | |
download | openbsd-bb3dc274c59720dc1e231a536edf176cf9687b2e.tar.gz openbsd-bb3dc274c59720dc1e231a536edf176cf9687b2e.tar.bz2 openbsd-bb3dc274c59720dc1e231a536edf176cf9687b2e.zip |
Wrap <unistd.h> so that internal calls go direct and they're all weak symbols
Delete unused 'fd' argument from internal function oldttyname()
-rw-r--r-- | src/lib/libc/crypt/crypt.c | 4 | ||||
-rw-r--r-- | src/lib/libc/crypt/cryptutil.c | 4 | ||||
-rw-r--r-- | src/lib/libc/net/rcmd.c | 1 | ||||
-rw-r--r-- | src/lib/libc/net/rcmdsh.c | 3 | ||||
-rw-r--r-- | src/lib/libc/net/rresvport.c | 3 | ||||
-rw-r--r-- | src/lib/libc/net/ruserok.c | 1 |
6 files changed, 12 insertions, 4 deletions
diff --git a/src/lib/libc/crypt/crypt.c b/src/lib/libc/crypt/crypt.c index 95e69bbe99..40d5503544 100644 --- a/src/lib/libc/crypt/crypt.c +++ b/src/lib/libc/crypt/crypt.c | |||
@@ -1,7 +1,8 @@ | |||
1 | /* $OpenBSD: crypt.c,v 1.30 2015/07/18 01:18:50 jeremy Exp $ */ | 1 | /* $OpenBSD: crypt.c,v 1.31 2015/09/12 14:56:50 guenther Exp $ */ |
2 | 2 | ||
3 | #include <errno.h> | 3 | #include <errno.h> |
4 | #include <pwd.h> | 4 | #include <pwd.h> |
5 | #include <unistd.h> | ||
5 | 6 | ||
6 | char * | 7 | char * |
7 | crypt(const char *key, const char *setting) | 8 | crypt(const char *key, const char *setting) |
@@ -18,3 +19,4 @@ crypt(const char *key, const char *setting) | |||
18 | errno = EINVAL; | 19 | errno = EINVAL; |
19 | return (NULL); | 20 | return (NULL); |
20 | } | 21 | } |
22 | DEF_WEAK(crypt); | ||
diff --git a/src/lib/libc/crypt/cryptutil.c b/src/lib/libc/crypt/cryptutil.c index d750933ffb..20d68b3fd3 100644 --- a/src/lib/libc/crypt/cryptutil.c +++ b/src/lib/libc/crypt/cryptutil.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: cryptutil.c,v 1.10 2015/07/23 22:19:03 tedu Exp $ */ | 1 | /* $OpenBSD: cryptutil.c,v 1.11 2015/09/12 14:56:50 guenther Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> | 3 | * Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> |
4 | * | 4 | * |
@@ -50,6 +50,7 @@ fail: | |||
50 | errno = EACCES; | 50 | errno = EACCES; |
51 | return -1; | 51 | return -1; |
52 | } | 52 | } |
53 | DEF_WEAK(crypt_checkpass); | ||
53 | 54 | ||
54 | int | 55 | int |
55 | crypt_newhash(const char *pass, const char *pref, char *hash, size_t hashlen) | 56 | crypt_newhash(const char *pass, const char *pref, char *hash, size_t hashlen) |
@@ -95,3 +96,4 @@ crypt_newhash(const char *pass, const char *pref, char *hash, size_t hashlen) | |||
95 | err: | 96 | err: |
96 | return rv; | 97 | return rv; |
97 | } | 98 | } |
99 | DEF_WEAK(crypt_newhash); | ||
diff --git a/src/lib/libc/net/rcmd.c b/src/lib/libc/net/rcmd.c index 600565a235..bf68603649 100644 --- a/src/lib/libc/net/rcmd.c +++ b/src/lib/libc/net/rcmd.c | |||
@@ -292,4 +292,5 @@ bad: | |||
292 | sigprocmask(SIG_SETMASK, &oldmask, NULL); | 292 | sigprocmask(SIG_SETMASK, &oldmask, NULL); |
293 | return (-1); | 293 | return (-1); |
294 | } | 294 | } |
295 | DEF_WEAK(rcmd_af); | ||
295 | 296 | ||
diff --git a/src/lib/libc/net/rcmdsh.c b/src/lib/libc/net/rcmdsh.c index ab86475c84..ad3f79ecc5 100644 --- a/src/lib/libc/net/rcmdsh.c +++ b/src/lib/libc/net/rcmdsh.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rcmdsh.c,v 1.14 2015/03/23 22:29:32 halex Exp $ */ | 1 | /* $OpenBSD: rcmdsh.c,v 1.15 2015/09/12 14:56:50 guenther Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2001, MagniComp | 4 | * Copyright (c) 2001, MagniComp |
@@ -181,3 +181,4 @@ rcmdsh(char **ahost, int rport, const char *locuser, const char *remuser, | |||
181 | } | 181 | } |
182 | /* NOTREACHED */ | 182 | /* NOTREACHED */ |
183 | } | 183 | } |
184 | DEF_WEAK(rcmdsh); | ||
diff --git a/src/lib/libc/net/rresvport.c b/src/lib/libc/net/rresvport.c index 2ecbc0a67d..6b45000f7b 100644 --- a/src/lib/libc/net/rresvport.c +++ b/src/lib/libc/net/rresvport.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rresvport.c,v 1.10 2015/01/16 16:48:51 deraadt Exp $ */ | 1 | /* $OpenBSD: rresvport.c,v 1.11 2015/09/12 14:56:50 guenther Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 1995, 1996, 1998 Theo de Raadt. All rights reserved. | 3 | * Copyright (c) 1995, 1996, 1998 Theo de Raadt. All rights reserved. |
4 | * Copyright (c) 1983, 1993, 1994 | 4 | * Copyright (c) 1983, 1993, 1994 |
@@ -104,3 +104,4 @@ rresvport_af(int *alport, int af) | |||
104 | *alport = ntohs(*portp); | 104 | *alport = ntohs(*portp); |
105 | return (s); | 105 | return (s); |
106 | } | 106 | } |
107 | DEF_WEAK(rresvport_af); | ||
diff --git a/src/lib/libc/net/ruserok.c b/src/lib/libc/net/ruserok.c index eed76d97db..4e83b78bf6 100644 --- a/src/lib/libc/net/ruserok.c +++ b/src/lib/libc/net/ruserok.c | |||
@@ -174,6 +174,7 @@ again: | |||
174 | } | 174 | } |
175 | return (-1); | 175 | return (-1); |
176 | } | 176 | } |
177 | DEF_WEAK(iruserok_sa); | ||
177 | 178 | ||
178 | /* | 179 | /* |
179 | * XXX | 180 | * XXX |