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]

Re: make IPC_INFO visible to ipc system utilities only


On Jun  8 13:30, Egor Duda wrote:
> 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.
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  What is the author trying to tell me here?!?

Corinna

> 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
> 


-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Co-Project Leader          mailto:cygwin@cygwin.com
Red Hat, Inc.


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