From owner-freebsd-bugs Fri Jun 30 08:20:02 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id IAA04933 for bugs-outgoing; Fri, 30 Jun 1995 08:20:02 -0700 Received: (from gnats@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id IAA04926 ; Fri, 30 Jun 1995 08:20:02 -0700 Date: Fri, 30 Jun 1995 08:20:02 -0700 Message-Id: <199506301520.IAA04926@freefall.cdrom.com> From: daveho@infocom.com Reply-To: daveho@infocom.com To: freebsd-bugs Subject: misc/575: constants in sys/sem.h in #ifdef KERNEL block In-Reply-To: Your message of Fri, 30 Jun 1995 10:10:11 -0500 <199506301510.KAA00752@mandy.infocom.com> Sender: bugs-owner@FreeBSD.org Precedence: bulk >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: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jun 30 08:20:01 1995 >Originator: Dave Hovemeyer >Organization: infocom, inc Boston, IN >Release: FreeBSD 2.0-BUILT-19950603 i386 >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 >Audit-Trail: >Unformatted: