Mail Archives: cygwin/2001/10/17/10:05:28
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 -