Date: Tue, 28 Jan 1997 11:50:44 +0200 (EET) From: Jukka Ukkonen <jau@jau.thunderbolt.fi> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/2603: Added POSIX.4/POSIX.1b constants in unistd.h Message-ID: <199701280950.LAA13914@jau.thunderbolt.fi> Resent-Message-ID: <199701281000.CAA03558@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 2603 >Category: bin >Synopsis: Added POSIX.4/POSIX.1b constants in unistd.h >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jan 28 02:00:01 PST 1997 >Last-Modified: >Originator: Jukka Ukkonen >Organization: Private person >Release: FreeBSD 2.1-STABLE i386 >Environment: OS version and hardware are not important in this context. >Description: The system could define POSIX.4/POSIX.1b style constants in <unistd.h> describing the supported services. >How-To-Repeat: Nothing to repeat - a new feature. >Fix: The attached patch assumes that the system will include either my own or someone else's implementations of POSIX.4 style shm_*() and sched_*() interfaces. If either of these interfaces is not included you should drop the related #define from the following patch. All the other defines are supported by any 4.4BSD system by default. --- /usr/include/unistd.h.orig Tue Dec 24 12:39:59 1996 +++ /usr/include/unistd.h Sat Dec 28 16:41:42 1996 @@ -48,6 +48,13 @@ #define NULL 0 /* null pointer constant */ #endif +#define _POSIX_SHARED_MEMORY_OBJECTS /* shm_*() interface */ +#define _POSIX_PRIORITY_SCHEDULING /* sched_*() interface */ +#define _POSIX_FSYNC +#define _POSIX_MAPPED_FILES +#define _POSIX_MEMORY_PROTECTION +#define _POSIX_MEMLOCK_RANGE + __BEGIN_DECLS __dead void _exit __P((int)) __dead2; >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701280950.LAA13914>