﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
4	shmat wrong return code	Yuri Dario	bird	"shmat returns 0 instead of -1 for errors:

Index: lib/process/shmat.c
===================================================================
RCS file: /netlabs.cvs/libc/src/emx/src/lib/process/shmat.c,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 shmat.c
--- lib/process/shmat.c	2005/07/18 19:51:22	1.1.1.2
+++ lib/process/shmat.c	2005/10/24 14:56:24
@@ -49,6 +49,6 @@
     if (rc >= 0)
         LIBCLOG_RETURN_P(pvActual);
     errno = -rc;
-    LIBCLOG_ERROR_RETURN_P(NULL);
+    LIBCLOG_ERROR_RETURN_P(-1);
 }
 
"	defect	closed	normal	libc-0.6	libc		normal	fixed		
