don't include <sys/cdefs.h>, it's a 'private' header
This commit is contained in:
parent
b5f782e810
commit
752ff8fb6c
|
@ -33,7 +33,7 @@
|
|||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
/*static char *sccsid = "from: @(#)strerror.c 5.6 (Berkeley) 5/4/91";*/
|
||||
static char *rcsid = "$Id: __strsignal.c,v 1.8 1995/04/24 16:37:34 cgd Exp $";
|
||||
static char *rcsid = "$Id: __strsignal.c,v 1.9 1995/06/15 00:07:11 jtc Exp $";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#ifdef NLS
|
||||
|
@ -45,6 +45,7 @@ static char *rcsid = "$Id: __strsignal.c,v 1.8 1995/04/24 16:37:34 cgd Exp $";
|
|||
|
||||
#define sys_siglist _sys_siglist
|
||||
|
||||
#include <stdio.h>
|
||||
#include <signal.h>
|
||||
#include <string.h>
|
||||
|
||||
|
|
|
@ -36,10 +36,9 @@
|
|||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
/*static char *sccsid = "from: @(#)bcopy.c 5.11 (Berkeley) 6/21/91";*/
|
||||
static char *rcsid = "$Id: bcopy.c,v 1.4 1994/10/19 03:08:23 cgd Exp $";
|
||||
static char *rcsid = "$Id: bcopy.c,v 1.5 1995/06/15 00:07:16 jtc Exp $";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <string.h>
|
||||
|
||||
/*
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
/*static char *sccsid = "from: @(#)ffs.c 5.4 (Berkeley) 5/17/90";*/
|
||||
static char *rcsid = "$Id: ffs.c,v 1.3 1993/08/26 00:51:38 jtc Exp $";
|
||||
static char *rcsid = "$Id: ffs.c,v 1.4 1995/06/15 00:07:20 jtc Exp $";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include <string.h>
|
||||
|
@ -41,6 +41,7 @@ static char *rcsid = "$Id: ffs.c,v 1.3 1993/08/26 00:51:38 jtc Exp $";
|
|||
/*
|
||||
* ffs -- vax ffs instruction
|
||||
*/
|
||||
int
|
||||
ffs(mask)
|
||||
register int mask;
|
||||
{
|
||||
|
|
|
@ -33,10 +33,9 @@
|
|||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
/*static char *sccsid = "from: @(#)memccpy.c 5.8 (Berkeley) 5/30/91";*/
|
||||
static char *rcsid = "$Id: memccpy.c,v 1.5 1993/08/26 00:51:40 jtc Exp $";
|
||||
static char *rcsid = "$Id: memccpy.c,v 1.6 1995/06/15 00:07:23 jtc Exp $";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <string.h>
|
||||
|
||||
void *
|
||||
|
|
|
@ -36,10 +36,9 @@
|
|||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
/*static char *sccsid = "from: @(#)memchr.c 5.6 (Berkeley) 1/26/91";*/
|
||||
static char *rcsid = "$Id: memchr.c,v 1.3 1993/08/26 00:51:41 jtc Exp $";
|
||||
static char *rcsid = "$Id: memchr.c,v 1.4 1995/06/15 00:07:27 jtc Exp $";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <string.h>
|
||||
|
||||
void *
|
||||
|
|
|
@ -36,10 +36,9 @@
|
|||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
/*static char *sccsid = "from: @(#)memcmp.c 5.6 (Berkeley) 1/26/91";*/
|
||||
static char *rcsid = "$Id: memcmp.c,v 1.3 1993/08/26 00:51:42 jtc Exp $";
|
||||
static char *rcsid = "$Id: memcmp.c,v 1.4 1995/06/15 00:07:32 jtc Exp $";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <string.h>
|
||||
|
||||
/*
|
||||
|
|
|
@ -36,10 +36,9 @@
|
|||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
/*static char *sccsid = "from: @(#)memset.c 5.6 (Berkeley) 1/26/91";*/
|
||||
static char *rcsid = "$Id: memset.c,v 1.3 1993/08/26 00:51:43 jtc Exp $";
|
||||
static char *rcsid = "$Id: memset.c,v 1.4 1995/06/15 00:07:35 jtc Exp $";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <string.h>
|
||||
|
||||
void *
|
||||
|
|
|
@ -31,14 +31,13 @@
|
|||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <string.h>
|
||||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
/*static const char sccsid[] = "from: @(#)strcasecmp.c 5.10 (Berkeley) 1/26/91";*/
|
||||
static char *rcsid = "$Id: strcasecmp.c,v 1.3 1993/08/26 00:51:45 jtc Exp $";
|
||||
static char *rcsid = "$Id: strcasecmp.c,v 1.4 1995/06/15 00:07:37 jtc Exp $";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include <string.h>
|
||||
|
||||
typedef unsigned char u_char;
|
||||
|
||||
/*
|
||||
|
|
|
@ -36,10 +36,9 @@
|
|||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
/*static char *sccsid = "from: @(#)strcmp.c 5.5 (Berkeley) 1/26/91";*/
|
||||
static char *rcsid = "$Id: strcmp.c,v 1.3 1993/08/26 00:51:47 jtc Exp $";
|
||||
static char *rcsid = "$Id: strcmp.c,v 1.4 1995/06/15 00:07:40 jtc Exp $";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <string.h>
|
||||
|
||||
/*
|
||||
|
|
|
@ -36,15 +36,15 @@
|
|||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
/*static char *sccsid = "from: @(#)strcoll.c 5.2 (Berkeley) 1/26/91";*/
|
||||
static char *rcsid = "$Id: strcoll.c,v 1.3 1993/08/26 00:51:48 jtc Exp $";
|
||||
static char *rcsid = "$Id: strcoll.c,v 1.4 1995/06/15 00:07:44 jtc Exp $";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <string.h>
|
||||
|
||||
/*
|
||||
* Compare strings according to LC_COLLATE category of current locale.
|
||||
*/
|
||||
int
|
||||
strcoll(s1, s2)
|
||||
const char *s1, *s2;
|
||||
{
|
||||
|
|
|
@ -33,10 +33,9 @@
|
|||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
/*static char *sccsid = "from: @(#)strcpy.c 5.7 (Berkeley) 2/24/91";*/
|
||||
static char *rcsid = "$Id: strcpy.c,v 1.3 1993/08/26 00:51:49 jtc Exp $";
|
||||
static char *rcsid = "$Id: strcpy.c,v 1.4 1995/06/15 00:07:47 jtc Exp $";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <string.h>
|
||||
|
||||
char *
|
||||
|
|
|
@ -36,10 +36,9 @@
|
|||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
/*static char *sccsid = "from: @(#)strcspn.c 5.6 (Berkeley) 1/26/91";*/
|
||||
static char *rcsid = "$Id: strcspn.c,v 1.3 1993/08/26 00:51:50 jtc Exp $";
|
||||
static char *rcsid = "$Id: strcspn.c,v 1.4 1995/06/15 00:07:51 jtc Exp $";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <string.h>
|
||||
|
||||
/*
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
/*static char *sccsid = "from: @(#)strdup.c 5.4 (Berkeley) 2/24/91";*/
|
||||
static char *rcsid = "$Id: strdup.c,v 1.5 1995/04/14 19:25:13 jtc Exp $";
|
||||
static char *rcsid = "$Id: strdup.c,v 1.6 1995/06/15 00:07:53 jtc Exp $";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include <stdlib.h>
|
||||
|
@ -43,11 +43,11 @@ char *
|
|||
strdup(str)
|
||||
const char *str;
|
||||
{
|
||||
int len;
|
||||
size_t len;
|
||||
char *copy;
|
||||
|
||||
len = strlen(str) + 1;
|
||||
if (!(copy = malloc((u_int)len)))
|
||||
if (!(copy = malloc(len)))
|
||||
return((char *)NULL);
|
||||
memcpy(copy, str, len);
|
||||
return(copy);
|
||||
|
|
|
@ -33,10 +33,9 @@
|
|||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
/*static char *sccsid = "from: @(#)strlen.c 5.5 (Berkeley) 1/26/91";*/
|
||||
static char *rcsid = "$Id: strlen.c,v 1.3 1993/08/26 00:51:53 jtc Exp $";
|
||||
static char *rcsid = "$Id: strlen.c,v 1.4 1995/06/15 00:08:00 jtc Exp $";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <string.h>
|
||||
|
||||
size_t
|
||||
|
|
|
@ -36,10 +36,9 @@
|
|||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
/*static char *sccsid = "from: @(#)strncat.c 5.6 (Berkeley) 1/26/91";*/
|
||||
static char *rcsid = "$Id: strncat.c,v 1.3 1993/08/26 00:51:54 jtc Exp $";
|
||||
static char *rcsid = "$Id: strncat.c,v 1.4 1995/06/15 00:08:07 jtc Exp $";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <string.h>
|
||||
|
||||
/*
|
||||
|
|
|
@ -33,10 +33,9 @@
|
|||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
/*static char *sccsid = "from: @(#)strncmp.c 5.6 (Berkeley) 1/26/91";*/
|
||||
static char *rcsid = "$Id: strncmp.c,v 1.3 1993/08/26 00:51:55 jtc Exp $";
|
||||
static char *rcsid = "$Id: strncmp.c,v 1.4 1995/06/15 00:08:14 jtc Exp $";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <string.h>
|
||||
|
||||
int
|
||||
|
|
|
@ -36,10 +36,9 @@
|
|||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
/*static char *sccsid = "from: @(#)strncpy.c 5.6 (Berkeley) 1/26/91";*/
|
||||
static char *rcsid = "$Id: strncpy.c,v 1.3 1993/08/26 00:51:56 jtc Exp $";
|
||||
static char *rcsid = "$Id: strncpy.c,v 1.4 1995/06/15 00:08:20 jtc Exp $";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <string.h>
|
||||
|
||||
/*
|
||||
|
|
|
@ -33,10 +33,9 @@
|
|||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
/*static char *sccsid = "from: @(#)strpbrk.c 5.8 (Berkeley) 1/26/91";*/
|
||||
static char *rcsid = "$Id: strpbrk.c,v 1.3 1993/08/26 00:51:57 jtc Exp $";
|
||||
static char *rcsid = "$Id: strpbrk.c,v 1.4 1995/06/15 00:08:25 jtc Exp $";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <string.h>
|
||||
|
||||
/*
|
||||
|
|
|
@ -31,15 +31,13 @@
|
|||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
/*static const char sccsid[] = "from: @(#)strsep.c 5.4 (Berkeley) 1/26/91";*/
|
||||
static char *rcsid = "$Id: strsep.c,v 1.3 1993/08/26 00:51:58 jtc Exp $";
|
||||
static char *rcsid = "$Id: strsep.c,v 1.4 1995/06/15 00:08:31 jtc Exp $";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include <string.h>
|
||||
|
||||
/*
|
||||
* Get next token from string *stringp, where tokens are nonempty
|
||||
* strings separated by characters from delim.
|
||||
|
|
|
@ -33,10 +33,9 @@
|
|||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
/*static char *sccsid = "from: @(#)strspn.c 5.8 (Berkeley) 1/26/91";*/
|
||||
static char *rcsid = "$Id: strspn.c,v 1.3 1993/08/26 00:52:00 jtc Exp $";
|
||||
static char *rcsid = "$Id: strspn.c,v 1.4 1995/06/15 00:08:37 jtc Exp $";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <string.h>
|
||||
|
||||
/*
|
||||
|
|
|
@ -36,10 +36,9 @@
|
|||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
/*static char *sccsid = "from: @(#)strstr.c 5.2 (Berkeley) 1/26/91";*/
|
||||
static char *rcsid = "$Id: strstr.c,v 1.3 1993/08/26 00:52:01 jtc Exp $";
|
||||
static char *rcsid = "$Id: strstr.c,v 1.4 1995/06/15 00:08:43 jtc Exp $";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <string.h>
|
||||
|
||||
/*
|
||||
|
|
|
@ -36,10 +36,9 @@
|
|||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
/*static char *sccsid = "from: @(#)strxfrm.c 5.2 (Berkeley) 1/26/91";*/
|
||||
static char *rcsid = "$Id: strxfrm.c,v 1.3 1993/08/26 00:52:02 jtc Exp $";
|
||||
static char *rcsid = "$Id: strxfrm.c,v 1.4 1995/06/15 00:08:51 jtc Exp $";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <string.h>
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue