This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

make IPC_INFO visible to ipc system utilities only


Hi!

Currently IPC_INFO is defined whenever we include sys/sem.h, but struct
seminfo, which is returned by semctl(IPC_INFO) is defined only for
_KERNEL applications. This inconsistency breaks, for instance,
libmudflap builds. I believe there's no point to have IPC_INFO in
non-_KERNEL application as long as we can't get semctl(IPC_INFO) results
right anyway. Patch attached.

egor

2004-Jun-08  Egor Duda <deo@corpit.ru>

	* include/cygwin/ipc.h: Make IPC_INFO visible only for ipc system
	utilities, to make it consistent with declaration of struct seminfo.

Index: include/cygwin/ipc.h
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/include/cygwin/ipc.h,v
retrieving revision 1.6
diff -u -p -2 -r1.6 ipc.h
--- include/cygwin/ipc.h	3 Jun 2004 19:51:10 -0000	1.6
+++ include/cygwin/ipc.h	8 Jun 2004 07:27:29 -0000
@@ -49,5 +49,8 @@ struct ipc_perm
 #define IPC_SET  0x1001		/* Set options. */
 #define IPC_STAT 0x1002		/* Get options. */
+
+#ifdef _KERNEL
 #define IPC_INFO 0x1003		/* For ipcs(8). */
+#define
 
 #ifdef _KERNEL


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]