*BSD News Article 53220


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.kei.com!news.mathworks.com!newsfeed.internetmci.com!chi-news.cic.net!uwm.edu!msunews!netnews.upenn.edu!gradient.cis.upenn.edu!dherbst
From: dherbst@gradient.cis.upenn.edu (Darrel Herbst)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: test&set? Semaphores?
Date: 17 Oct 1995 15:43:46 GMT
Organization: University of Pennsylvania
Lines: 11
Message-ID: <460ivi$3j9@netnews.upenn.edu>
NNTP-Posting-Host: gradient.cis.upenn.edu
X-Newsreader: TIN [version 1.2 PL2-upenn1.3]

I'm doing a project that requires a test&set atomic function, but I
can't seem to find one similar to the cs system call in AIX.

Doing a man -k with semaphore points me to the System V IPC -- but
ipcs tells me that SysV IPC is not enabled on my machine -- is it a
separate package, and is that what I should be looking for?

What implementations are most commonly used for test&set on FreeBSD?

thanks in advance