diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-25 21:15:41 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-25 21:15:41 +0000 |
commit | 5783f1537989600c05141f2643ba6131b7cd31a1 (patch) | |
tree | 5e913fa393a5072540f089e022ff648fe23322f0 /lib | |
parent | 753c463deeff351ec891dd6d473ec0b9523cec1f (diff) |
pull in headers
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/arch/i386/gen/frexp.c | 5 | ||||
-rw-r--r-- | lib/libc/arch/i386/gen/isinf.c | 5 | ||||
-rw-r--r-- | lib/libc/arch/i386/gen/isnan.c | 5 | ||||
-rw-r--r-- | lib/libc/db/db/db.c | 8 | ||||
-rw-r--r-- | lib/libc/db/hash/hash_log2.c | 10 | ||||
-rw-r--r-- | lib/libc/db/hash/ndbm.c | 5 | ||||
-rw-r--r-- | lib/libc/gen/gethostname.c | 3 | ||||
-rw-r--r-- | lib/libc/gen/getpagesize.c | 3 | ||||
-rw-r--r-- | lib/libc/gen/pause.c | 5 | ||||
-rw-r--r-- | lib/libc/gen/sleep.c | 3 | ||||
-rw-r--r-- | lib/libc/gen/strtofflags.c | 5 |
11 files changed, 35 insertions, 22 deletions
diff --git a/lib/libc/arch/i386/gen/frexp.c b/lib/libc/arch/i386/gen/frexp.c index e391e7c420c..98b671a67ca 100644 --- a/lib/libc/arch/i386/gen/frexp.c +++ b/lib/libc/arch/i386/gen/frexp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: frexp.c,v 1.5 2003/06/02 20:18:30 millert Exp $ */ +/* $OpenBSD: frexp.c,v 1.6 2003/06/25 21:15:04 deraadt Exp $ */ /* * Copyright (c) 1992, 1993 @@ -34,11 +34,12 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: frexp.c,v 1.5 2003/06/02 20:18:30 millert Exp $"; +static char rcsid[] = "$OpenBSD: frexp.c,v 1.6 2003/06/25 21:15:04 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> #include <machine/ieee.h> +#include <math.h> /* * Split the given value into a fraction in the range [0.5, 1.0) and diff --git a/lib/libc/arch/i386/gen/isinf.c b/lib/libc/arch/i386/gen/isinf.c index a9baf7ba4d2..981d5b47569 100644 --- a/lib/libc/arch/i386/gen/isinf.c +++ b/lib/libc/arch/i386/gen/isinf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: isinf.c,v 1.5 2003/06/02 20:18:30 millert Exp $ */ +/* $OpenBSD: isinf.c,v 1.6 2003/06/25 21:15:04 deraadt Exp $ */ /* * Copyright (c) 1992, 1993 @@ -34,11 +34,12 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: isinf.c,v 1.5 2003/06/02 20:18:30 millert Exp $"; +static char rcsid[] = "$OpenBSD: isinf.c,v 1.6 2003/06/25 21:15:04 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> #include <machine/ieee.h> +#include <math.h> int isinf(d) diff --git a/lib/libc/arch/i386/gen/isnan.c b/lib/libc/arch/i386/gen/isnan.c index 932bdb20149..07c73c8edd4 100644 --- a/lib/libc/arch/i386/gen/isnan.c +++ b/lib/libc/arch/i386/gen/isnan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: isnan.c,v 1.2 2003/06/02 20:18:30 millert Exp $ */ +/* $OpenBSD: isnan.c,v 1.3 2003/06/25 21:15:04 deraadt Exp $ */ /* * Copyright (c) 1992, 1993 @@ -34,11 +34,12 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: isnan.c,v 1.2 2003/06/02 20:18:30 millert Exp $"; +static char rcsid[] = "$OpenBSD: isnan.c,v 1.3 2003/06/25 21:15:04 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> #include <machine/ieee.h> +#include <math.h> int isnan(d) diff --git a/lib/libc/db/db/db.c b/lib/libc/db/db/db.c index 52d450f8ddd..779b86ddf47 100644 --- a/lib/libc/db/db/db.c +++ b/lib/libc/db/db/db.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db.c,v 1.7 2003/06/02 20:18:33 millert Exp $ */ +/* $OpenBSD: db.c,v 1.8 2003/06/25 21:15:04 deraadt Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -33,7 +33,7 @@ #if 0 static char sccsid[] = "@(#)db.c 8.4 (Berkeley) 2/21/94"; #else -static const char rcsid[] = "$OpenBSD: db.c,v 1.7 2003/06/02 20:18:33 millert Exp $"; +static const char rcsid[] = "$OpenBSD: db.c,v 1.8 2003/06/25 21:15:04 deraadt Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -46,6 +46,8 @@ static const char rcsid[] = "$OpenBSD: db.c,v 1.7 2003/06/02 20:18:33 millert Ex #include <db.h> +static int __dberr(void); + DB * dbopen(fname, flags, mode, type, openinfo) const char *fname; @@ -76,7 +78,7 @@ dbopen(fname, flags, mode, type, openinfo) } static int -__dberr() +__dberr(void) { return (RET_ERROR); } diff --git a/lib/libc/db/hash/hash_log2.c b/lib/libc/db/hash/hash_log2.c index 64883f5d51d..ae3731e141a 100644 --- a/lib/libc/db/hash/hash_log2.c +++ b/lib/libc/db/hash/hash_log2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hash_log2.c,v 1.6 2003/06/02 20:18:34 millert Exp $ */ +/* $OpenBSD: hash_log2.c,v 1.7 2003/06/25 21:15:05 deraadt Exp $ */ /*- * Copyright (c) 1990, 1993, 1994 @@ -36,15 +36,17 @@ #if 0 static char sccsid[] = "@(#)hash_log2.c 8.4 (Berkeley) 11/7/95"; #else -static const char rcsid[] = "$OpenBSD: hash_log2.c,v 1.6 2003/06/02 20:18:34 millert Exp $"; +static const char rcsid[] = "$OpenBSD: hash_log2.c,v 1.7 2003/06/25 21:15:05 deraadt Exp $"; #endif #endif /* LIBC_SCCS and not lint */ #include <db.h> +#include "hash.h" +#include "page.h" +#include "extern.h" u_int32_t -__log2(num) - u_int32_t num; +__log2(u_int32_t num) { u_int32_t i, limit; diff --git a/lib/libc/db/hash/ndbm.c b/lib/libc/db/hash/ndbm.c index 15942883d4a..6187996e97f 100644 --- a/lib/libc/db/hash/ndbm.c +++ b/lib/libc/db/hash/ndbm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ndbm.c,v 1.16 2003/06/02 20:18:34 millert Exp $ */ +/* $OpenBSD: ndbm.c,v 1.17 2003/06/25 21:15:05 deraadt Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -36,7 +36,7 @@ #if 0 static char sccsid[] = "@(#)dbm.c 8.6 (Berkeley) 11/7/95"; #else -static const char rcsid[] = "$OpenBSD: ndbm.c,v 1.16 2003/06/02 20:18:34 millert Exp $"; +static const char rcsid[] = "$OpenBSD: ndbm.c,v 1.17 2003/06/25 21:15:05 deraadt Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -48,6 +48,7 @@ static const char rcsid[] = "$OpenBSD: ndbm.c,v 1.16 2003/06/02 20:18:34 millert #include <string.h> #include <ndbm.h> +#include <dbm.h> #include "hash.h" /* diff --git a/lib/libc/gen/gethostname.c b/lib/libc/gen/gethostname.c index 93379d0b135..9dc16b0c876 100644 --- a/lib/libc/gen/gethostname.c +++ b/lib/libc/gen/gethostname.c @@ -28,11 +28,12 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: gethostname.c,v 1.4 2003/06/02 20:18:34 millert Exp $"; +static char rcsid[] = "$OpenBSD: gethostname.c,v 1.5 2003/06/25 21:15:04 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> #include <sys/sysctl.h> +#include <unistd.h> int gethostname(name, namelen) diff --git a/lib/libc/gen/getpagesize.c b/lib/libc/gen/getpagesize.c index b72873ef291..20a7fb2f245 100644 --- a/lib/libc/gen/getpagesize.c +++ b/lib/libc/gen/getpagesize.c @@ -28,11 +28,12 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: getpagesize.c,v 1.3 2003/06/02 20:18:34 millert Exp $"; +static char rcsid[] = "$OpenBSD: getpagesize.c,v 1.4 2003/06/25 21:15:04 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> #include <sys/sysctl.h> +#include <unistd.h> int getpagesize() diff --git a/lib/libc/gen/pause.c b/lib/libc/gen/pause.c index c7fc83c0a67..60167039936 100644 --- a/lib/libc/gen/pause.c +++ b/lib/libc/gen/pause.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pause.c,v 1.3 2001/09/04 23:35:58 millert Exp $ */ +/* $OpenBSD: pause.c,v 1.4 2003/06/25 21:15:04 deraadt Exp $ */ /* * Written by Todd C. Miller <Todd.Miller@courtesan.com> @@ -6,10 +6,11 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static const char rcsid[] = "$OpenBSD: pause.c,v 1.3 2001/09/04 23:35:58 millert Exp $"; +static const char rcsid[] = "$OpenBSD: pause.c,v 1.4 2003/06/25 21:15:04 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include <signal.h> +#include <unistd.h> /* * Backwards compatible pause(3). diff --git a/lib/libc/gen/sleep.c b/lib/libc/gen/sleep.c index 7e9772ae317..2610b850adf 100644 --- a/lib/libc/gen/sleep.c +++ b/lib/libc/gen/sleep.c @@ -28,10 +28,11 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: sleep.c,v 1.8 2003/06/02 20:18:35 millert Exp $"; +static char rcsid[] = "$OpenBSD: sleep.c,v 1.9 2003/06/25 21:15:04 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/time.h> +#include <unistd.h> unsigned int sleep(seconds) diff --git a/lib/libc/gen/strtofflags.c b/lib/libc/gen/strtofflags.c index 468492a130f..569c0804263 100644 --- a/lib/libc/gen/strtofflags.c +++ b/lib/libc/gen/strtofflags.c @@ -1,4 +1,4 @@ -/* $OpenBSD: strtofflags.c,v 1.2 2003/06/02 20:18:35 millert Exp $ */ +/* $OpenBSD: strtofflags.c,v 1.3 2003/06/25 21:15:40 deraadt Exp $ */ /*- * Copyright (c) 1993 @@ -36,7 +36,7 @@ static const char rcsid[] = "$FreeBSD: src/lib/libc/gen/strtofflags.c,v 1.18 2000/06/17 11:09:24 joe Exp $"; #else static const char rcsid[] = - "$OpenBSD: strtofflags.c,v 1.2 2003/06/02 20:18:35 millert Exp $"; + "$OpenBSD: strtofflags.c,v 1.3 2003/06/25 21:15:40 deraadt Exp $"; #endif #endif /* not lint */ @@ -45,6 +45,7 @@ static const char rcsid[] = #include <stddef.h> #include <stdlib.h> +#include <unistd.h> #include <string.h> static const struct { |