Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Wed, 17 Oct 2001 14:02:54 GMT From: David Message-Id: <200110171402.f9HE2sE17587@sdf.lonestar.org> To: cygwin AT cygwin DOT com Subject: cygipc should not include cygipc in sem.h Hello, I couldn't find a separate list for cygutils on http://www.neuro.gatech.edu/users/cwilson/cygutils/index.html and I want to point out that including the semum union in sem.h makes the package incompatable with sun unix which expects the union to be declared in the application program. See below. I get compiler errors if I include sem.h in a program which defines the semun union, and I get compilier prototype errors if I try to hand semctl anything other than a union with the name semun. David semctl(2) System Calls semctl(2) NAME semctl - semaphore control operations SYNOPSIS #include #include #include int semctl(int semid, int semnum, int cmd, ...); DESCRIPTION semctl() provides a variety of semaphore control operations as specified by cmd. The fourth argument is optional, depending upon the operation requested. If required it is of type union semun, which must be explicitly declared by the application program. union semun { int val; struct semid_ds *buf; ushort *array } _a_r_g; SunOS 5.5.1 Last change: 24 Mar 1994 3 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/