diff options
| author | guenther <> | 2015-09-13 08:31:48 +0000 |
|---|---|---|
| committer | guenther <> | 2015-09-13 08:31:48 +0000 |
| commit | e85bde5645a66155108c2a88d25fa62993a3f2bb (patch) | |
| tree | 97578b890ec56dd23cc1e63d9bb8ef626aa1e803 /src/lib/libc/crypt/arc4random.c | |
| parent | ebfa003dc08f7a476a162f09b384b4b53bdac5af (diff) | |
| download | openbsd-e85bde5645a66155108c2a88d25fa62993a3f2bb.tar.gz openbsd-e85bde5645a66155108c2a88d25fa62993a3f2bb.tar.bz2 openbsd-e85bde5645a66155108c2a88d25fa62993a3f2bb.zip | |
Wrap <stdlib.h> so that calls go direct and the symbols not in the
C standard are all weak.
Apply __{BEGIN,END}_HIDDEN_DECLS to gdtoa{,imp}.h, hiding the
arch-specific __strtorx, __ULtox_D2A, __strtorQ, __ULtoQ_D2A symbols.
Diffstat (limited to 'src/lib/libc/crypt/arc4random.c')
| -rw-r--r-- | src/lib/libc/crypt/arc4random.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libc/crypt/arc4random.c b/src/lib/libc/crypt/arc4random.c index 5afc6a15ab..8a4ecc9e89 100644 --- a/src/lib/libc/crypt/arc4random.c +++ b/src/lib/libc/crypt/arc4random.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: arc4random.c,v 1.53 2015/09/10 18:53:50 bcook Exp $ */ | 1 | /* $OpenBSD: arc4random.c,v 1.54 2015/09/13 08:31:47 guenther Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * Copyright (c) 1996, David Mazieres <dm@uun.org> | 4 | * Copyright (c) 1996, David Mazieres <dm@uun.org> |
| @@ -186,6 +186,7 @@ arc4random(void) | |||
| 186 | _ARC4_UNLOCK(); | 186 | _ARC4_UNLOCK(); |
| 187 | return val; | 187 | return val; |
| 188 | } | 188 | } |
| 189 | DEF_WEAK(arc4random); | ||
| 189 | 190 | ||
| 190 | void | 191 | void |
| 191 | arc4random_buf(void *buf, size_t n) | 192 | arc4random_buf(void *buf, size_t n) |
| @@ -194,3 +195,4 @@ arc4random_buf(void *buf, size_t n) | |||
| 194 | _rs_random_buf(buf, n); | 195 | _rs_random_buf(buf, n); |
| 195 | _ARC4_UNLOCK(); | 196 | _ARC4_UNLOCK(); |
| 196 | } | 197 | } |
| 198 | DEF_WEAK(arc4random_buf); | ||
