Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!think.com!linus!progress!tma From: tma@progress.COM (Tim Atchison) Newsgroups: comp.unix.aix Subject: cs system call on RS/6000 Summary: cs system call on RS/6000 Keywords: test-and-set cs tas RS/6000 Message-ID: <1990Dec6.183659.1712@progress.com> Date: 6 Dec 90 18:36:59 GMT Sender: news@progress.com (The News User) Organization: Progress Software Corp., Bedford, MA Lines: 20 Nntp-Posting-Host: manny I am looking for a test-and-set instruction (or something like it) on the IBM RS/6000. I know that the assembly code is proprietary, but I found a compare-and-set (cs) system call that looks like it does the same thing. Unfortunately, I can't find this command in my doc set. Could someone show me how to use this call ? The only information that I have is: int cs (int *dest, int compare, int value) It has the following logic: if (compare == *dest) {*dest = value; return(0);} else return(1); -------------------------------------------------------------------------------- Timothy M. Atchison UUCP: mit-eddie!progress!tma Progress Software Corp. Internet: tma@progress.com 5 Oak Park Bedford, MA 01730