From af9952b29e5d6d96e1cd45aa9aadd3c1a639e220 Mon Sep 17 00:00:00 2001 From: tholo Date: Sun, 15 Sep 1996 10:09:06 +0000 Subject: [PATCH] Add a couple of syscalls; bring more prototypes into scope --- lib/libc/Makefile | 4 ++-- lib/libc/arch/i386/protolib.h | 3 ++- lib/libc/gen/getgrent.c | 4 +++- lib/libc/gen/getpwent.c | 3 ++- lib/libc/net/gethostnamadr.c | 3 ++- lib/libc/sys/protolib.c | 5 ++++- 6 files changed, 15 insertions(+), 7 deletions(-) diff --git a/lib/libc/Makefile b/lib/libc/Makefile index 1edd5bcc017..976270f17d0 100644 --- a/lib/libc/Makefile +++ b/lib/libc/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.8 1996/09/05 12:56:10 deraadt Exp $ +# $OpenBSD: Makefile,v 1.9 1996/09/15 10:09:06 tholo Exp $ # # All library objects contain sccsid strings by default; they may be # excluded as a space-saving measure. To produce a library that does @@ -18,7 +18,7 @@ LIB=c CFLAGS+=-DNLS -DLIBC_SCCS -DSYSLIBC_SCCS -I${.CURDIR}/include .if defined(YP) -CFLAGS+=-DYP +CFLAGS+=-DYP -I${.CURDIR}/yp .endif LINTFLAGS=-z LLIBS= diff --git a/lib/libc/arch/i386/protolib.h b/lib/libc/arch/i386/protolib.h index b76ca38f996..0eed605f6d6 100644 --- a/lib/libc/arch/i386/protolib.h +++ b/lib/libc/arch/i386/protolib.h @@ -28,7 +28,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $OpenBSD: protolib.h,v 1.1 1996/03/25 23:31:19 tholo Exp $ + * $OpenBSD: protolib.h,v 1.2 1996/09/15 10:09:08 tholo Exp $ */ #include @@ -41,6 +41,7 @@ /* PROTOLIB1 */ void *alloca(size_t); +int exect(const char *, char * const [], char * const []); double fabs(double); int __flt_rounds(void); fp_except fpgetmask(void); diff --git a/lib/libc/gen/getgrent.c b/lib/libc/gen/getgrent.c index fb63c7bd9b2..cc67b8196e9 100644 --- a/lib/libc/gen/getgrent.c +++ b/lib/libc/gen/getgrent.c @@ -33,10 +33,11 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: getgrent.c,v 1.4 1996/08/19 08:23:29 tholo Exp $"; +static char rcsid[] = "$OpenBSD: getgrent.c,v 1.5 1996/09/15 10:09:10 tholo Exp $"; #endif /* LIBC_SCCS and not lint */ #include +#include #include #include #include @@ -45,6 +46,7 @@ static char rcsid[] = "$OpenBSD: getgrent.c,v 1.4 1996/08/19 08:23:29 tholo Exp #include #include #include +#include "ypinternal.h" #endif static FILE *_gr_fp; diff --git a/lib/libc/gen/getpwent.c b/lib/libc/gen/getpwent.c index dc7d07cc809..8076fdb6e62 100644 --- a/lib/libc/gen/getpwent.c +++ b/lib/libc/gen/getpwent.c @@ -33,7 +33,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: getpwent.c,v 1.4 1996/09/15 09:31:02 tholo Exp $"; +static char rcsid[] = "$OpenBSD: getpwent.c,v 1.5 1996/09/15 10:09:11 tholo Exp $"; #endif /* LIBC_SCCS and not lint */ #include @@ -54,6 +54,7 @@ static char rcsid[] = "$OpenBSD: getpwent.c,v 1.4 1996/09/15 09:31:02 tholo Exp #include #include #include +#include "ypinternal.h" #endif static struct passwd _pw_passwd; /* password structure */ diff --git a/lib/libc/net/gethostnamadr.c b/lib/libc/net/gethostnamadr.c index cd327b6a0da..62e14693a47 100644 --- a/lib/libc/net/gethostnamadr.c +++ b/lib/libc/net/gethostnamadr.c @@ -52,7 +52,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: gethostnamadr.c,v 1.7 1996/08/19 08:28:40 tholo Exp $"; +static char rcsid[] = "$OpenBSD: gethostnamadr.c,v 1.8 1996/09/15 10:09:12 tholo Exp $"; #endif /* LIBC_SCCS and not lint */ #include @@ -70,6 +70,7 @@ static char rcsid[] = "$OpenBSD: gethostnamadr.c,v 1.7 1996/08/19 08:28:40 tholo #include #include #include +#include "ypinternal.h" #endif #define MAXALIASES 35 diff --git a/lib/libc/sys/protolib.c b/lib/libc/sys/protolib.c index b58089c55f2..16593444ef1 100644 --- a/lib/libc/sys/protolib.c +++ b/lib/libc/sys/protolib.c @@ -30,7 +30,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: protolib.c,v 1.3 1996/09/15 09:31:56 tholo Exp $"; +static char rcsid[] = "$OpenBSD: protolib.c,v 1.4 1996/09/15 10:09:13 tholo Exp $"; #endif /* LIBC_SCCS and not lint */ #include @@ -43,6 +43,7 @@ static char rcsid[] = "$OpenBSD: protolib.c,v 1.3 1996/09/15 09:31:56 tholo Exp #include #include #include +#include #include #include #include @@ -255,3 +256,5 @@ int shmget(key_t, int, int); /* 231 */ int minherit(caddr_t, size_t, int); /* 250 */ int rfork(int); /* 251 */ +int poll(struct pollfd *, unsigned long, int); /* 252 */ +int issetugid(void); /* 253 */ -- 2.20.1