diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-09-15 10:09:14 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-09-15 10:09:14 +0000 |
commit | 073a28f4d8ca1c9f8dbf945284e5f0ec6830d1b9 (patch) | |
tree | bfdc2c10cabe05e0a53242f7967bc806fdf7eb27 /lib/libc | |
parent | 3d910cc7eeaa72e04d3fc80ea16c51c19869701e (diff) |
Add a couple of syscalls; bring more prototypes into scope
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/Makefile | 4 | ||||
-rw-r--r-- | lib/libc/arch/i386/protolib.h | 3 | ||||
-rw-r--r-- | lib/libc/gen/getgrent.c | 4 | ||||
-rw-r--r-- | lib/libc/gen/getpwent.c | 3 | ||||
-rw-r--r-- | lib/libc/net/gethostnamadr.c | 3 | ||||
-rw-r--r-- | 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 <float.h> @@ -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 <sys/types.h> +#include <sys/param.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -45,6 +46,7 @@ static char rcsid[] = "$OpenBSD: getgrent.c,v 1.4 1996/08/19 08:23:29 tholo Exp #include <rpc/rpc.h> #include <rpcsvc/yp.h> #include <rpcsvc/ypclnt.h> +#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 <sys/param.h> @@ -54,6 +54,7 @@ static char rcsid[] = "$OpenBSD: getpwent.c,v 1.4 1996/09/15 09:31:02 tholo Exp #include <rpc/rpc.h> #include <rpcsvc/yp.h> #include <rpcsvc/ypclnt.h> +#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 <sys/param.h> @@ -70,6 +70,7 @@ static char rcsid[] = "$OpenBSD: gethostnamadr.c,v 1.7 1996/08/19 08:28:40 tholo #include <rpc/rpc.h> #include <rpcsvc/yp.h> #include <rpcsvc/ypclnt.h> +#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 <sys/types.h> @@ -43,6 +43,7 @@ static char rcsid[] = "$OpenBSD: protolib.c,v 1.3 1996/09/15 09:31:56 tholo Exp #include <sys/mount.h> #include <sys/msg.h> #include <sys/mman.h> +#include <sys/poll.h> #include <sys/ptrace.h> #include <sys/resource.h> #include <sys/sem.h> @@ -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 */ |