From daveho@mandy.infocom.com  Fri Jun 30 08:13:00 1995
Received: from mandy.infocom.com (mandy.infocom.com [199.120.185.4])
          by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id IAA04678
          for <FreeBSD-gnats-submit@freebsd.org>; Fri, 30 Jun 1995 08:12:55 -0700
Received: (from daveho@localhost) by mandy.infocom.com (8.6.11/8.6.9) id KAA00752; Fri, 30 Jun 1995 10:10:11 -0500
Message-Id: <199506301510.KAA00752@mandy.infocom.com>
Date: Fri, 30 Jun 1995 10:10:11 -0500
From: daveho@infocom.com
Reply-To: daveho@infocom.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: constants in sys/sem.h in #ifdef KERNEL block
X-Send-Pr-Version: 3.2

>Number:         575
>Category:       misc
>Synopsis:       constants in sys/sem.h in #ifdef KERNEL block
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs (FreeBSD bugs mailing list)
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 30 08:20:01 1995
>Closed-Date:    Sat Jul 8 18:48:25 MET DST 1995
>Last-Modified:
>Originator:     Dave Hovemeyer
>Release:        FreeBSD 2.0-BUILT-19950603 i386
>Organization:
infocom, inc Boston, IN
>Environment:

	486DX2/66

>Description:

	In /usr/include/sys/sem.h, the constants SEM_R and SEM_A are
	surrounded by an #ifdef KERNEL block, making them inaccessible
	to user code.  I'm reading Stevens (_Advanced Programming in the
	UNIX Environment_).  I'm assuming that the SysV IPC examples
	should work in FreeBSD.

	Cursory inspection also reveals that SHM_R and SHM_A aren't
	defined anywhere.

	PS.  Thanks for a great OS!

>How-To-Repeat:

	n/a

>Fix:
	
	move constants out of #ifdef block

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: joerg 
State-Changed-When: Sat Jul 8 18:48:25 MET DST 1995 
State-Changed-Why:  
Suggested fix (plus another one sent in private mail) applied. 

>Unformatted:



