Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Feb 1996 16:54:02 -0500 (EST)
From:      "John Capo" <jc@irbs.com>
To:        tpatel@ecpi.com (Tushar Patel)
Cc:        freebsd-isp@freebsd.org
Subject:   Re: Semaphore operation
Message-ID:  <199602202154.QAA14674@goombay.irbs.com>
In-Reply-To: <199602201222.MAA14593@ecpi.com> from "Tushar Patel" at Feb 20, 96 12:22:54 pm

next in thread | previous in thread | raw e-mail | index | archive | help
Tushar Patel writes:
> 
> Is there anything in the FreeBSD which will allow me to do semaphore 
> operation?
> 
> Like the semop() systemcall on the sun.
> 

goombay 241% man semop

SEMOP(2)                   UNIX Programmer's Manual                   SEMOP(2)

NAME
     semop - atomic array of operations on a semaphore set

SYNOPSIS
     #include <sys/types.h>
     #include <sys/ipc.h>
     #include <sys/sem.h>

     int
     semop(int semid, struct sembuf array[], unsigned nops)

etc....

You need to build a kernel with the SystemV options enabled.  Look
in /sys/i386/conf/LINT for the particulars.


John Capo                                                   jc@irbs.com
IRBS Engineering                       High performance FreeBSD systems
(305) 792-9551                      Internet Consulting - ISP Solutions



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199602202154.QAA14674>