From jau@jau.thunderbolt.fi  Tue Jan 28 01:51:22 1997
Received: from jau.thunderbolt.fi (root@jukkonen.dial.tele.fi [194.89.253.78])
          by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id BAA03279
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 28 Jan 1997 01:51:17 -0800 (PST)
Received: (from jau@localhost) by jau.thunderbolt.fi (8.7.5/8.6.12+CSC-2.1) id LAA13914; Tue, 28 Jan 1997 11:50:44 +0200 (EET)
Message-Id: <199701280950.LAA13914@jau.thunderbolt.fi>
Date: Tue, 28 Jan 1997 11:50:44 +0200 (EET)
From: Jukka Ukkonen <jau@jau.thunderbolt.fi>
Reply-To: jau@jau.thunderbolt.fi
To: FreeBSD-gnats-submit@freebsd.org
Subject: Added POSIX.4/POSIX.1b constants in unistd.h
X-Send-Pr-Version: 3.2

>Number:         2603
>Category:       bin
>Synopsis:       Added POSIX.4/POSIX.1b constants in unistd.h
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dougb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 28 02:00:01 PST 1997
>Closed-Date:    Sun Mar 02 14:45:16 PST 2003
>Last-Modified:  Sun Mar 02 14:45:16 PST 2003
>Originator:     Jukka Ukkonen
>Release:        FreeBSD 2.1-STABLE i386
>Organization:
Private person
>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;
>Release-Note:
>Audit-Trail:

From: Bruce Evans <bde@zeta.org.au>
To: FreeBSD-gnats-submit@freebsd.org, jau@jau.thunderbolt.fi
Cc:  Subject: Re: bin/2603: Added POSIX.4/POSIX.1b constants in unistd.h
Date: Tue, 28 Jan 1997 22:04:56 +1100

 >	The system could define POSIX.4/POSIX.1b style constants in
 >	<unistd.h> describing the supported services.
 
 They should be in <sys/unistd.h> with the other POSIX macros...
 
 >	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.
 
 ...mainly because some of them are system-dependent or configuration-
 dependent.
 
 Configuration-dependent options are handled poorly by compile-time macros.
 I plan to remove some of the optional ones, starting with the bogus ones in
 <sys/syslimits.h>.
 
 Bruce
Responsible-Changed-From-To: freebsd-bugs->dufault 
Responsible-Changed-By: dufault 
Responsible-Changed-When: Fri Aug 1 05:03:34 PDT 1997 
Responsible-Changed-Why:  
Take over rtprio/p1003.4 reports 

From: Joseph Holland King <gte743n@cad.gatech.edu>
To: FreeBSD-gnats-submit@freebsd.org
Cc:  
Subject: Re: bin/2603: Added POSIX.4/POSIX.1b constants in unistd.h
Date: Tue, 19 Nov 2002 01:52:41 -0500

 been open since 1997 is it still valid? or can it be closed?
 
 -- 
 Holland King        
 gte743n@cad.gatech.edu

From: Joseph Holland King <gte743n@cad.gatech.edu>
To: FreeBSD-gnats-submit@freebsd.org
Cc:  
Subject: Subject: Re: bin/2603: Added POSIX.4/POSIX.1b constants in unistd.h
Date: Mon, 17 Feb 2003 00:10:19 -0500

 This PR can be closed
 
 -- 
 Holland King        
 gte743n@cad.gatech.edu
State-Changed-From-To: open->closed 
State-Changed-By: dougb 
State-Changed-When: Sun Mar 2 14:44:07 PST 2003 
State-Changed-Why:  

Added to sys/unistd.h, revision 1.33 on 2002/09/21 by wollman. 


Responsible-Changed-From-To: dufault->dougb 
Responsible-Changed-By: dougb 
Responsible-Changed-When: Sun Mar 2 14:44:07 PST 2003 
Responsible-Changed-Why:  

dufault is no longer with us. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=2603 
>Unformatted:
