Sync MirBSD main source tree against OpenBSD-current,
which should be fairly stable after the Hackathon now.
This commit is contained in:
11
missing.c
11
missing.c
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: missing.c,v 1.4 1999/06/15 01:18:35 millert Exp $ */
|
||||
/* $OpenBSD: missing.c,v 1.5 2003/05/16 18:49:46 jsyn Exp $ */
|
||||
|
||||
/*
|
||||
* Routines which may be missing on some machines
|
||||
@ -8,7 +8,6 @@
|
||||
#include "ksh_stat.h"
|
||||
#include "ksh_dir.h"
|
||||
|
||||
|
||||
#ifndef HAVE_MEMSET
|
||||
void *
|
||||
memset(d, c, n)
|
||||
@ -51,7 +50,6 @@ memmove(d, s, n)
|
||||
}
|
||||
#endif /* !HAVE_MEMMOVE && !HAVE_BCOPY */
|
||||
|
||||
|
||||
#ifndef HAVE_STRCASECMP
|
||||
/*
|
||||
* Case insensitive string compare routines, same semantics as str[n]cmp()
|
||||
@ -124,7 +122,6 @@ strncasecmp(s1, s2, n)
|
||||
}
|
||||
#endif /* HAVE_STRCASECMP */
|
||||
|
||||
|
||||
#ifndef HAVE_STRSTR
|
||||
char *
|
||||
strstr(s, p)
|
||||
@ -140,8 +137,7 @@ strstr(s, p)
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif /* HAVE_STRSTR */
|
||||
|
||||
#endif /* !HAVE_STRSTR */
|
||||
|
||||
#ifndef HAVE_STRERROR
|
||||
char *
|
||||
@ -190,7 +186,6 @@ strerror(err)
|
||||
}
|
||||
#endif /* !HAVE_STRERROR */
|
||||
|
||||
|
||||
#ifdef TIMES_BROKEN
|
||||
# include "ksh_time.h"
|
||||
# include "ksh_times.h"
|
||||
@ -292,4 +287,4 @@ dup2(oldd, newd)
|
||||
|
||||
return fcntl(oldd, F_DUPFD, newd);
|
||||
}
|
||||
#endif /* !HAVE_MEMSET */
|
||||
#endif /* !HAVE_DUP2 */
|
||||
|
Reference in New Issue
Block a user