From ylo@fx7.cs.hut.fi  Sun Jan 22 11:07:40 1995
Received: from fx7.cs.hut.fi (fx7.cs.hut.fi [130.233.192.240]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id LAA10791 for <FreeBSD-gnats-submit@freebsd.org>; Sun, 22 Jan 1995 11:07:38 -0800
Received: (from ylo@localhost) by fx7.cs.hut.fi (8.6.9/8.6.9) id VAA11619; Sun, 22 Jan 1995 21:06:15 GMT
Message-Id: <199501222106.VAA11619@fx7.cs.hut.fi>
Date: Sun, 22 Jan 1995 21:06:15 GMT
From: Tatu Ylonen <ylo@fx7.cs.hut.fi>
Reply-To: ylo@fx7.cs.hut.fi
To: FreeBSD-gnats-submit@freebsd.org
Subject: EIDRM not defined in /usr/include/sys/errno.h
X-Send-Pr-Version: 3.2

>Number:         176
>Category:       kern
>Synopsis:       EIDRM not defined in errno.h
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    peter
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 22 11:10:00 1995
>Closed-Date:    Mon Apr 13 10:40:35 PDT 1998
>Last-Modified:  Mon Apr 13 10:46:30 PDT 1998
>Originator:     Tatu Ylonen
>Release:        FreeBSD 2.1.0-Development i386
>Organization:
Helsinki University of Technology, Finland
>Environment:
>Description:

	Errno value EIDRM is not defined in /usr/include/sys/errno.h.  Several
	SYSV IPC functions are expected to return this value.  Looking at the
	kernel sources, they now return EINVAL.

	Checking for EIDRM is important in many applications, and I believe
	that most applications that make use of SYSV IPC (other than just
	shared memory) need to use this error code.  It has been defined
	on all systems that I have seen, so no application code probably
	makes precautions for it not being defined.

>How-To-Repeat:
>Fix:
	
	Define EIDRM in errno.h.  Kernel code already has #ifdefs that will
	make use of EIDRM as soon as it is defined.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->peter 
Responsible-Changed-By: scrappy 
Responsible-Changed-When: Sun May 26 22:00:45 PDT 1996 
Responsible-Changed-Why:  
he mentions that SYSV IPC uses it, peter last worked on sysv_ipc.c... 
its a weak thread, I know :) 
State-Changed-From-To: open->closed 
State-Changed-By: sos 
State-Changed-When: Mon Apr 13 10:40:35 PDT 1998 
State-Changed-Why:  
Added EIDRM and also ENOMSG errno code. 
>Unformatted:


