diff options
| author | deraadt <> | 2014-06-10 04:17:37 +0000 |
|---|---|---|
| committer | deraadt <> | 2014-06-10 04:17:37 +0000 |
| commit | d1cb2eb4f0f9779a6be2986e760ea8354285bed9 (patch) | |
| tree | fc570d82ae9eecf65c8e32d374796f1b5cee541b /src/lib/libc | |
| parent | e1b854f100e2e8f243d8afc553a6811b56a3ee4f (diff) | |
| download | openbsd-d1cb2eb4f0f9779a6be2986e760ea8354285bed9.tar.gz openbsd-d1cb2eb4f0f9779a6be2986e760ea8354285bed9.tar.bz2 openbsd-d1cb2eb4f0f9779a6be2986e760ea8354285bed9.zip | |
mop up ifndef KERNEL goo; ok miod
Diffstat (limited to 'src/lib/libc')
| -rw-r--r-- | src/lib/libc/string/bcmp.c | 6 | ||||
| -rw-r--r-- | src/lib/libc/string/bzero.c | 6 | ||||
| -rw-r--r-- | src/lib/libc/string/explicit_bzero.c | 6 | ||||
| -rw-r--r-- | src/lib/libc/string/ffs.c | 6 | ||||
| -rw-r--r-- | src/lib/libc/string/strcat.c | 6 | ||||
| -rw-r--r-- | src/lib/libc/string/strcmp.c | 6 | ||||
| -rw-r--r-- | src/lib/libc/string/strcpy.c | 6 | ||||
| -rw-r--r-- | src/lib/libc/string/strlen.c | 6 | ||||
| -rw-r--r-- | src/lib/libc/string/strncmp.c | 6 | ||||
| -rw-r--r-- | src/lib/libc/string/strncpy.c | 6 | ||||
| -rw-r--r-- | src/lib/libc/string/strnlen.c | 6 | ||||
| -rw-r--r-- | src/lib/libc/string/timingsafe_bcmp.c | 6 |
12 files changed, 12 insertions, 60 deletions
diff --git a/src/lib/libc/string/bcmp.c b/src/lib/libc/string/bcmp.c index fd5c93121e..f64672990c 100644 --- a/src/lib/libc/string/bcmp.c +++ b/src/lib/libc/string/bcmp.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bcmp.c,v 1.9 2008/03/19 03:00:23 ray Exp $ */ | 1 | /* $OpenBSD: bcmp.c,v 1.10 2014/06/10 04:17:37 deraadt Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * Copyright (c) 1987 Regents of the University of California. | 4 | * Copyright (c) 1987 Regents of the University of California. |
| @@ -29,11 +29,7 @@ | |||
| 29 | * SUCH DAMAGE. | 29 | * SUCH DAMAGE. |
| 30 | */ | 30 | */ |
| 31 | 31 | ||
| 32 | #if !defined(_KERNEL) && !defined(_STANDALONE) | ||
| 33 | #include <string.h> | 32 | #include <string.h> |
| 34 | #else | ||
| 35 | #include <lib/libkern/libkern.h> | ||
| 36 | #endif | ||
| 37 | 33 | ||
| 38 | /* | 34 | /* |
| 39 | * bcmp -- vax cmpc3 instruction | 35 | * bcmp -- vax cmpc3 instruction |
diff --git a/src/lib/libc/string/bzero.c b/src/lib/libc/string/bzero.c index 4d267d4f40..fdd3d9cc8d 100644 --- a/src/lib/libc/string/bzero.c +++ b/src/lib/libc/string/bzero.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bzero.c,v 1.7 2005/08/08 08:05:37 espie Exp $ */ | 1 | /* $OpenBSD: bzero.c,v 1.8 2014/06/10 04:17:37 deraadt Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * Copyright (c) 1987 Regents of the University of California. | 4 | * Copyright (c) 1987 Regents of the University of California. |
| @@ -29,11 +29,7 @@ | |||
| 29 | * SUCH DAMAGE. | 29 | * SUCH DAMAGE. |
| 30 | */ | 30 | */ |
| 31 | 31 | ||
| 32 | #if !defined(_KERNEL) && !defined(_STANDALONE) | ||
| 33 | #include <string.h> | 32 | #include <string.h> |
| 34 | #else | ||
| 35 | #include <lib/libkern/libkern.h> | ||
| 36 | #endif | ||
| 37 | 33 | ||
| 38 | /* | 34 | /* |
| 39 | * bzero -- vax movc5 instruction | 35 | * bzero -- vax movc5 instruction |
diff --git a/src/lib/libc/string/explicit_bzero.c b/src/lib/libc/string/explicit_bzero.c index fd2948ca44..5124df23ca 100644 --- a/src/lib/libc/string/explicit_bzero.c +++ b/src/lib/libc/string/explicit_bzero.c | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | /* $OpenBSD: explicit_bzero.c,v 1.1 2014/01/22 21:06:45 tedu Exp $ */ | 1 | /* $OpenBSD: explicit_bzero.c,v 1.2 2014/06/10 04:17:37 deraadt Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Public domain. | 3 | * Public domain. |
| 4 | * Written by Ted Unangst | 4 | * Written by Ted Unangst |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #if !defined(_KERNEL) && !defined(_STANDALONE) | ||
| 8 | #include <string.h> | 7 | #include <string.h> |
| 9 | #else | ||
| 10 | #include <lib/libkern/libkern.h> | ||
| 11 | #endif | ||
| 12 | 8 | ||
| 13 | /* | 9 | /* |
| 14 | * explicit_bzero - don't let the compiler optimize away bzero | 10 | * explicit_bzero - don't let the compiler optimize away bzero |
diff --git a/src/lib/libc/string/ffs.c b/src/lib/libc/string/ffs.c index 7dec1613a8..de4480a7ef 100644 --- a/src/lib/libc/string/ffs.c +++ b/src/lib/libc/string/ffs.c | |||
| @@ -1,15 +1,11 @@ | |||
| 1 | /* $OpenBSD: ffs.c,v 1.7 2005/08/08 08:05:37 espie Exp $ */ | 1 | /* $OpenBSD: ffs.c,v 1.8 2014/06/10 04:17:37 deraadt Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * Public domain. | 4 | * Public domain. |
| 5 | * Written by Dale Rahn. | 5 | * Written by Dale Rahn. |
| 6 | */ | 6 | */ |
| 7 | 7 | ||
| 8 | #if !defined(_KERNEL) && !defined(_STANDALONE) | ||
| 9 | #include <string.h> | 8 | #include <string.h> |
| 10 | #else | ||
| 11 | #include <lib/libkern/libkern.h> | ||
| 12 | #endif | ||
| 13 | 9 | ||
| 14 | /* | 10 | /* |
| 15 | * ffs -- vax ffs instruction | 11 | * ffs -- vax ffs instruction |
diff --git a/src/lib/libc/string/strcat.c b/src/lib/libc/string/strcat.c index 7cea5229fb..646c9c2090 100644 --- a/src/lib/libc/string/strcat.c +++ b/src/lib/libc/string/strcat.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: strcat.c,v 1.8 2005/08/08 08:05:37 espie Exp $ */ | 1 | /* $OpenBSD: strcat.c,v 1.9 2014/06/10 04:17:37 deraadt Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * Copyright (c) 1988 Regents of the University of California. | 4 | * Copyright (c) 1988 Regents of the University of California. |
| @@ -29,11 +29,7 @@ | |||
| 29 | * SUCH DAMAGE. | 29 | * SUCH DAMAGE. |
| 30 | */ | 30 | */ |
| 31 | 31 | ||
| 32 | #if !defined(_KERNEL) && !defined(_STANDALONE) | ||
| 33 | #include <string.h> | 32 | #include <string.h> |
| 34 | #else | ||
| 35 | #include <lib/libkern/libkern.h> | ||
| 36 | #endif | ||
| 37 | 33 | ||
| 38 | #if defined(APIWARN) | 34 | #if defined(APIWARN) |
| 39 | __warn_references(strcat, | 35 | __warn_references(strcat, |
diff --git a/src/lib/libc/string/strcmp.c b/src/lib/libc/string/strcmp.c index 816fd111ac..d1b6c50d79 100644 --- a/src/lib/libc/string/strcmp.c +++ b/src/lib/libc/string/strcmp.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: strcmp.c,v 1.7 2005/08/08 08:05:37 espie Exp $ */ | 1 | /* $OpenBSD: strcmp.c,v 1.8 2014/06/10 04:17:37 deraadt Exp $ */ |
| 2 | 2 | ||
| 3 | /*- | 3 | /*- |
| 4 | * Copyright (c) 1990 The Regents of the University of California. | 4 | * Copyright (c) 1990 The Regents of the University of California. |
| @@ -32,11 +32,7 @@ | |||
| 32 | * SUCH DAMAGE. | 32 | * SUCH DAMAGE. |
| 33 | */ | 33 | */ |
| 34 | 34 | ||
| 35 | #if !defined(_KERNEL) && !defined(_STANDALONE) | ||
| 36 | #include <string.h> | 35 | #include <string.h> |
| 37 | #else | ||
| 38 | #include <lib/libkern/libkern.h> | ||
| 39 | #endif | ||
| 40 | 36 | ||
| 41 | /* | 37 | /* |
| 42 | * Compare strings. | 38 | * Compare strings. |
diff --git a/src/lib/libc/string/strcpy.c b/src/lib/libc/string/strcpy.c index 71d90d4100..5a9001e431 100644 --- a/src/lib/libc/string/strcpy.c +++ b/src/lib/libc/string/strcpy.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: strcpy.c,v 1.8 2005/08/08 08:05:37 espie Exp $ */ | 1 | /* $OpenBSD: strcpy.c,v 1.9 2014/06/10 04:17:37 deraadt Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * Copyright (c) 1988 Regents of the University of California. | 4 | * Copyright (c) 1988 Regents of the University of California. |
| @@ -29,11 +29,7 @@ | |||
| 29 | * SUCH DAMAGE. | 29 | * SUCH DAMAGE. |
| 30 | */ | 30 | */ |
| 31 | 31 | ||
| 32 | #if !defined(_KERNEL) && !defined(_STANDALONE) | ||
| 33 | #include <string.h> | 32 | #include <string.h> |
| 34 | #else | ||
| 35 | #include <lib/libkern/libkern.h> | ||
| 36 | #endif | ||
| 37 | 33 | ||
| 38 | #if defined(APIWARN) | 34 | #if defined(APIWARN) |
| 39 | __warn_references(strcpy, | 35 | __warn_references(strcpy, |
diff --git a/src/lib/libc/string/strlen.c b/src/lib/libc/string/strlen.c index 12d9ec4dad..7e0e27b1d8 100644 --- a/src/lib/libc/string/strlen.c +++ b/src/lib/libc/string/strlen.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: strlen.c,v 1.7 2005/08/08 08:05:37 espie Exp $ */ | 1 | /* $OpenBSD: strlen.c,v 1.8 2014/06/10 04:17:37 deraadt Exp $ */ |
| 2 | 2 | ||
| 3 | /*- | 3 | /*- |
| 4 | * Copyright (c) 1990, 1993 | 4 | * Copyright (c) 1990, 1993 |
| @@ -29,11 +29,7 @@ | |||
| 29 | * SUCH DAMAGE. | 29 | * SUCH DAMAGE. |
| 30 | */ | 30 | */ |
| 31 | 31 | ||
| 32 | #if !defined(_KERNEL) && !defined(_STANDALONE) | ||
| 33 | #include <string.h> | 32 | #include <string.h> |
| 34 | #else | ||
| 35 | #include <lib/libkern/libkern.h> | ||
| 36 | #endif | ||
| 37 | 33 | ||
| 38 | size_t | 34 | size_t |
| 39 | strlen(const char *str) | 35 | strlen(const char *str) |
diff --git a/src/lib/libc/string/strncmp.c b/src/lib/libc/string/strncmp.c index 0aea80d7d9..0a4ddc1d9e 100644 --- a/src/lib/libc/string/strncmp.c +++ b/src/lib/libc/string/strncmp.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: strncmp.c,v 1.7 2005/08/08 08:05:37 espie Exp $ */ | 1 | /* $OpenBSD: strncmp.c,v 1.8 2014/06/10 04:17:37 deraadt Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * Copyright (c) 1989 The Regents of the University of California. | 4 | * Copyright (c) 1989 The Regents of the University of California. |
| @@ -29,11 +29,7 @@ | |||
| 29 | * SUCH DAMAGE. | 29 | * SUCH DAMAGE. |
| 30 | */ | 30 | */ |
| 31 | 31 | ||
| 32 | #if !defined(_KERNEL) && !defined(_STANDALONE) | ||
| 33 | #include <string.h> | 32 | #include <string.h> |
| 34 | #else | ||
| 35 | #include <lib/libkern/libkern.h> | ||
| 36 | #endif | ||
| 37 | 33 | ||
| 38 | int | 34 | int |
| 39 | strncmp(const char *s1, const char *s2, size_t n) | 35 | strncmp(const char *s1, const char *s2, size_t n) |
diff --git a/src/lib/libc/string/strncpy.c b/src/lib/libc/string/strncpy.c index 4426cbe2e3..5003a199a9 100644 --- a/src/lib/libc/string/strncpy.c +++ b/src/lib/libc/string/strncpy.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: strncpy.c,v 1.6 2005/08/08 08:05:37 espie Exp $ */ | 1 | /* $OpenBSD: strncpy.c,v 1.7 2014/06/10 04:17:37 deraadt Exp $ */ |
| 2 | 2 | ||
| 3 | /*- | 3 | /*- |
| 4 | * Copyright (c) 1990 The Regents of the University of California. | 4 | * Copyright (c) 1990 The Regents of the University of California. |
| @@ -32,11 +32,7 @@ | |||
| 32 | * SUCH DAMAGE. | 32 | * SUCH DAMAGE. |
| 33 | */ | 33 | */ |
| 34 | 34 | ||
| 35 | #if !defined(_KERNEL) && !defined(_STANDALONE) | ||
| 36 | #include <string.h> | 35 | #include <string.h> |
| 37 | #else | ||
| 38 | #include <lib/libkern/libkern.h> | ||
| 39 | #endif | ||
| 40 | 36 | ||
| 41 | /* | 37 | /* |
| 42 | * Copy src to dst, truncating or null-padding to always copy n bytes. | 38 | * Copy src to dst, truncating or null-padding to always copy n bytes. |
diff --git a/src/lib/libc/string/strnlen.c b/src/lib/libc/string/strnlen.c index a5e13ae04e..872cfa6cce 100644 --- a/src/lib/libc/string/strnlen.c +++ b/src/lib/libc/string/strnlen.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: strnlen.c,v 1.4 2012/04/26 01:22:31 matthew Exp $ */ | 1 | /* $OpenBSD: strnlen.c,v 1.5 2014/06/10 04:17:37 deraadt Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * Copyright (c) 2010 Todd C. Miller <Todd.Miller@courtesan.com> | 4 | * Copyright (c) 2010 Todd C. Miller <Todd.Miller@courtesan.com> |
| @@ -18,11 +18,7 @@ | |||
| 18 | 18 | ||
| 19 | #include <sys/types.h> | 19 | #include <sys/types.h> |
| 20 | 20 | ||
| 21 | #if !defined(_KERNEL) && !defined(_STANDALONE) | ||
| 22 | #include <string.h> | 21 | #include <string.h> |
| 23 | #else | ||
| 24 | #include <lib/libkern/libkern.h> | ||
| 25 | #endif | ||
| 26 | 22 | ||
| 27 | size_t | 23 | size_t |
| 28 | strnlen(const char *str, size_t maxlen) | 24 | strnlen(const char *str, size_t maxlen) |
diff --git a/src/lib/libc/string/timingsafe_bcmp.c b/src/lib/libc/string/timingsafe_bcmp.c index 9c4287cf63..0b736154ca 100644 --- a/src/lib/libc/string/timingsafe_bcmp.c +++ b/src/lib/libc/string/timingsafe_bcmp.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: timingsafe_bcmp.c,v 1.1 2010/09/24 13:33:00 matthew Exp $ */ | 1 | /* $OpenBSD: timingsafe_bcmp.c,v 1.2 2014/06/10 04:17:37 deraadt Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2010 Damien Miller. All rights reserved. | 3 | * Copyright (c) 2010 Damien Miller. All rights reserved. |
| 4 | * | 4 | * |
| @@ -15,11 +15,7 @@ | |||
| 15 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 15 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 16 | */ | 16 | */ |
| 17 | 17 | ||
| 18 | #if !defined(_KERNEL) && !defined(_STANDALONE) | ||
| 19 | #include <string.h> | 18 | #include <string.h> |
| 20 | #else | ||
| 21 | #include <lib/libkern/libkern.h> | ||
| 22 | #endif | ||
| 23 | 19 | ||
| 24 | int | 20 | int |
| 25 | timingsafe_bcmp(const void *b1, const void *b2, size_t n) | 21 | timingsafe_bcmp(const void *b1, const void *b2, size_t n) |
