From e28788f2a420e093ade000eeb0ba96634af0e177 Mon Sep 17 00:00:00 2001 From: dufault Date: Wed, 4 Mar 1998 10:27:00 +0000 Subject: Reviewed by: msmith, bde long ago POSIX.4 headers and sysctl variables. Nothing should change unless POSIX4 is defined or _POSIX_VERSION is set to 199309. --- include/Makefile | 17 ++++++++++++++--- include/limits.h | 18 +++++++++++++++++- include/signal.h | 5 +++++ 3 files changed, 36 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/Makefile b/include/Makefile index 6ce2fe1..9fe38c7 100644 --- a/include/Makefile +++ b/include/Makefile @@ -1,5 +1,5 @@ # From: @(#)Makefile 8.2 (Berkeley) 1/4/94 -# $Id: Makefile,v 1.71 1998/02/11 04:57:24 jdp Exp $ +# $Id: Makefile,v 1.72 1998/02/13 03:10:26 bde Exp $ # # Doing a make install builds /usr/include # @@ -14,7 +14,8 @@ FILES= a.out.h ar.h assert.h bitstring.h ctype.h db.h dirent.h disktab.h \ dlfcn.h elf.h err.h fnmatch.h fstab.h \ fts.h glob.h grp.h strhash.h histedit.h \ kvm.h limits.h link.h locale.h malloc.h memory.h mpool.h \ - ndbm.h netdb.h nl_types.h nlist.h paths.h pthread.h pthread_np.h pwd.h \ + ndbm.h netdb.h nl_types.h nlist.h \ + paths.h pthread.h pthread_np.h pwd.h \ ranlib.h regex.h regexp.h resolv.h rune.h runetype.h setjmp.h sgtty.h \ signal.h stab.h stddef.h stdio.h stdlib.h string.h stringlist.h \ strings.h struct.h sysexits.h tar.h time.h timers.h ttyent.h unistd.h \ @@ -32,9 +33,15 @@ RPCFILES= auth.h auth_unix.h clnt.h pmap_clnt.h pmap_prot.h pmap_rmt.h \ auth_des.h des.h des_crypt.h MFILES= float.h floatingpoint.h stdarg.h varargs.h + +# posix4/aio.h conflicts with dysons and isn't installed: +PFILES= mqueue.h posix4.h sched.h semaphore.h \ + # aio.h + LFILES= errno.h fcntl.h poll.h syslog.h termios.h -LDIRS= msdosfs net netns netatalk netinet netipx netkey nfs pccard sys vm \ +LDIRS= msdosfs net netns netatalk netinet netipx netkey nfs \ + pccard posix4 sys vm \ # netccitt netiso LNOHEADERDIRS= isofs ufs @@ -87,6 +94,10 @@ beforeinstall: ${SHARED} .for i in ${MFILES} ln -sf machine/$i ${DESTDIR}/usr/include/$i .endfor +.for i in ${PFILES} + ln -sf posix4/$i ${DESTDIR}/usr/include/$i +.endfor + copies: .for i in ${LDIRS} ${LNOHEADERDIRS} machine diff --git a/include/limits.h b/include/limits.h index 2e2b293..df120e6 100644 --- a/include/limits.h +++ b/include/limits.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)limits.h 8.2 (Berkeley) 1/4/94 - * $Id$ + * $Id: limits.h,v 1.5 1997/12/27 22:56:41 steve Exp $ */ #ifndef _LIMITS_H_ @@ -60,6 +60,22 @@ #define _POSIX2_EXPR_NEST_MAX 32 #define _POSIX2_LINE_MAX 2048 #define _POSIX2_RE_DUP_MAX 255 + +#ifdef POSIX4_VISIBLE + +#define _POSIX_AIO_LISTIO_MAX 2 +#define _POSIX_AIO_MAX 1 +#define _POSIX_DELAYTIMER_MAX 32 +#define _POSIX_MQ_OPEN_MAX 8 +#define _POSIX_MQ_PRIO_MAX 32 +#define _POSIX_RTSIG_MAX 8 +#define _POSIX_SEM_NSEMS_MAX 256 +#define _POSIX_SEM_VALUE_MAX 32767 +#define _POSIX_SIGQUEUE_MAX 32 +#define _POSIX_TIMER_MAX 32 + +#endif + #endif /* !_ANSI_SOURCE */ #if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) || defined(_XOPEN_SOURCE) diff --git a/include/signal.h b/include/signal.h index aea7322..dd6dc8a 100644 --- a/include/signal.h +++ b/include/signal.h @@ -63,6 +63,11 @@ int signanosleep __P((const struct timespec *, struct timespec *, int sigpending __P((sigset_t *)); int sigprocmask __P((int, const sigset_t *, sigset_t *)); int sigsuspend __P((const sigset_t *)); +#ifdef POSIX4_VISIBLE +int sigqueue __P((_BSD_PID_T_, int, const union sigval)); +int sigtimedwait __P((const sig_set_t *, siginfo_t *)); +int sigwaitinfo __P((const sig_set_t *, siginfo_t *)); +#endif #ifndef _POSIX_SOURCE int killpg __P((_BSD_PID_T_, int)); int sigaltstack __P((const struct sigaltstack *, struct sigaltstack *)); -- cgit v1.1