Browse Source

mop up ifndef KERNEL goo; ok miod

OPENBSD_5_6
deraadt 10 years ago
parent
commit
f909f7742d
12 changed files with 12 additions and 60 deletions
  1. +1
    -5
      src/lib/libc/string/bcmp.c
  2. +1
    -5
      src/lib/libc/string/bzero.c
  3. +1
    -5
      src/lib/libc/string/explicit_bzero.c
  4. +1
    -5
      src/lib/libc/string/ffs.c
  5. +1
    -5
      src/lib/libc/string/strcat.c
  6. +1
    -5
      src/lib/libc/string/strcmp.c
  7. +1
    -5
      src/lib/libc/string/strcpy.c
  8. +1
    -5
      src/lib/libc/string/strlen.c
  9. +1
    -5
      src/lib/libc/string/strncmp.c
  10. +1
    -5
      src/lib/libc/string/strncpy.c
  11. +1
    -5
      src/lib/libc/string/strnlen.c
  12. +1
    -5
      src/lib/libc/string/timingsafe_bcmp.c

+ 1
- 5
src/lib/libc/string/bcmp.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: bcmp.c,v 1.9 2008/03/19 03:00:23 ray Exp $ */
/* $OpenBSD: bcmp.c,v 1.10 2014/06/10 04:17:37 deraadt Exp $ */
/*
* Copyright (c) 1987 Regents of the University of California.
@ -29,11 +29,7 @@
* SUCH DAMAGE.
*/
#if !defined(_KERNEL) && !defined(_STANDALONE)
#include <string.h>
#else
#include <lib/libkern/libkern.h>
#endif
/*
* bcmp -- vax cmpc3 instruction


+ 1
- 5
src/lib/libc/string/bzero.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: bzero.c,v 1.7 2005/08/08 08:05:37 espie Exp $ */
/* $OpenBSD: bzero.c,v 1.8 2014/06/10 04:17:37 deraadt Exp $ */
/*
* Copyright (c) 1987 Regents of the University of California.
@ -29,11 +29,7 @@
* SUCH DAMAGE.
*/
#if !defined(_KERNEL) && !defined(_STANDALONE)
#include <string.h>
#else
#include <lib/libkern/libkern.h>
#endif
/*
* bzero -- vax movc5 instruction


+ 1
- 5
src/lib/libc/string/explicit_bzero.c View File

@ -1,14 +1,10 @@
/* $OpenBSD: explicit_bzero.c,v 1.1 2014/01/22 21:06:45 tedu Exp $ */
/* $OpenBSD: explicit_bzero.c,v 1.2 2014/06/10 04:17:37 deraadt Exp $ */
/*
* Public domain.
* Written by Ted Unangst
*/
#if !defined(_KERNEL) && !defined(_STANDALONE)
#include <string.h>
#else
#include <lib/libkern/libkern.h>
#endif
/*
* explicit_bzero - don't let the compiler optimize away bzero


+ 1
- 5
src/lib/libc/string/ffs.c View File

@ -1,15 +1,11 @@
/* $OpenBSD: ffs.c,v 1.7 2005/08/08 08:05:37 espie Exp $ */
/* $OpenBSD: ffs.c,v 1.8 2014/06/10 04:17:37 deraadt Exp $ */
/*
* Public domain.
* Written by Dale Rahn.
*/
#if !defined(_KERNEL) && !defined(_STANDALONE)
#include <string.h>
#else
#include <lib/libkern/libkern.h>
#endif
/*
* ffs -- vax ffs instruction


+ 1
- 5
src/lib/libc/string/strcat.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: strcat.c,v 1.8 2005/08/08 08:05:37 espie Exp $ */
/* $OpenBSD: strcat.c,v 1.9 2014/06/10 04:17:37 deraadt Exp $ */
/*
* Copyright (c) 1988 Regents of the University of California.
@ -29,11 +29,7 @@
* SUCH DAMAGE.
*/
#if !defined(_KERNEL) && !defined(_STANDALONE)
#include <string.h>
#else
#include <lib/libkern/libkern.h>
#endif
#if defined(APIWARN)
__warn_references(strcat,


+ 1
- 5
src/lib/libc/string/strcmp.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: strcmp.c,v 1.7 2005/08/08 08:05:37 espie Exp $ */
/* $OpenBSD: strcmp.c,v 1.8 2014/06/10 04:17:37 deraadt Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -32,11 +32,7 @@
* SUCH DAMAGE.
*/
#if !defined(_KERNEL) && !defined(_STANDALONE)
#include <string.h>
#else
#include <lib/libkern/libkern.h>
#endif
/*
* Compare strings.


+ 1
- 5
src/lib/libc/string/strcpy.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: strcpy.c,v 1.8 2005/08/08 08:05:37 espie Exp $ */
/* $OpenBSD: strcpy.c,v 1.9 2014/06/10 04:17:37 deraadt Exp $ */
/*
* Copyright (c) 1988 Regents of the University of California.
@ -29,11 +29,7 @@
* SUCH DAMAGE.
*/
#if !defined(_KERNEL) && !defined(_STANDALONE)
#include <string.h>
#else
#include <lib/libkern/libkern.h>
#endif
#if defined(APIWARN)
__warn_references(strcpy,


+ 1
- 5
src/lib/libc/string/strlen.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: strlen.c,v 1.7 2005/08/08 08:05:37 espie Exp $ */
/* $OpenBSD: strlen.c,v 1.8 2014/06/10 04:17:37 deraadt Exp $ */
/*-
* Copyright (c) 1990, 1993
@ -29,11 +29,7 @@
* SUCH DAMAGE.
*/
#if !defined(_KERNEL) && !defined(_STANDALONE)
#include <string.h>
#else
#include <lib/libkern/libkern.h>
#endif
size_t
strlen(const char *str)


+ 1
- 5
src/lib/libc/string/strncmp.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: strncmp.c,v 1.7 2005/08/08 08:05:37 espie Exp $ */
/* $OpenBSD: strncmp.c,v 1.8 2014/06/10 04:17:37 deraadt Exp $ */
/*
* Copyright (c) 1989 The Regents of the University of California.
@ -29,11 +29,7 @@
* SUCH DAMAGE.
*/
#if !defined(_KERNEL) && !defined(_STANDALONE)
#include <string.h>
#else
#include <lib/libkern/libkern.h>
#endif
int
strncmp(const char *s1, const char *s2, size_t n)


+ 1
- 5
src/lib/libc/string/strncpy.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: strncpy.c,v 1.6 2005/08/08 08:05:37 espie Exp $ */
/* $OpenBSD: strncpy.c,v 1.7 2014/06/10 04:17:37 deraadt Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -32,11 +32,7 @@
* SUCH DAMAGE.
*/
#if !defined(_KERNEL) && !defined(_STANDALONE)
#include <string.h>
#else
#include <lib/libkern/libkern.h>
#endif
/*
* Copy src to dst, truncating or null-padding to always copy n bytes.


+ 1
- 5
src/lib/libc/string/strnlen.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: strnlen.c,v 1.4 2012/04/26 01:22:31 matthew Exp $ */
/* $OpenBSD: strnlen.c,v 1.5 2014/06/10 04:17:37 deraadt Exp $ */
/*
* Copyright (c) 2010 Todd C. Miller <Todd.Miller@courtesan.com>
@ -18,11 +18,7 @@
#include <sys/types.h>
#if !defined(_KERNEL) && !defined(_STANDALONE)
#include <string.h>
#else
#include <lib/libkern/libkern.h>
#endif
size_t
strnlen(const char *str, size_t maxlen)


+ 1
- 5
src/lib/libc/string/timingsafe_bcmp.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: timingsafe_bcmp.c,v 1.1 2010/09/24 13:33:00 matthew Exp $ */
/* $OpenBSD: timingsafe_bcmp.c,v 1.2 2014/06/10 04:17:37 deraadt Exp $ */
/*
* Copyright (c) 2010 Damien Miller. All rights reserved.
*
@ -15,11 +15,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#if !defined(_KERNEL) && !defined(_STANDALONE)
#include <string.h>
#else
#include <lib/libkern/libkern.h>
#endif
int
timingsafe_bcmp(const void *b1, const void *b2, size_t n)


Loading…
Cancel
Save