delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/10/17/10:05:28

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <cupcake AT sdf DOT lonestar DOT org>
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 <sys/types.h>
     #include <sys/ipc.h>
     #include <sys/sem.h>

     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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019