From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,bdde79d8dce65372,start X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2000-09-26 17:46:42 PST From: "KIM, HYUNG-IL" Subject: Function Parameter Passing Error? Date: Wed, 27 Sep 2000 09:49:22 +0900 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: <4DSn8vBKAHA.379@nntp2.thrunet.com> Newsgroups: comp.unix.tru64 Path: supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!cyclone-sf.pbi.net!206.13.28.125!cyclone-transit.snfc21.pbi.net!216.218.192.242!news.he.net!news-hog.berkeley.edu!ucberkeley!enews.sgi.com!news-xfer.nuri.net!newsfeed.thrunet.com!news.thrunet.com NNTP-Posting-Host: 210.221.126.101 Xref: supernews.google.com comp.unix.tru64:455 I make a program that have semaphore operations. That program passes SHM_P() semid and semnum as parameter. SHM_P(semid, semnum) does "semop". But first parameter(semid) changes wierd value when passing. for example, In Caller : SHM_P(345, 12) After Called, In Callee SHM_P() Function : SHM_P(-203944234, 12). after all semop() does unintent job. Is there some bug in Tru64? I have "cc" compiler, not gcc. Should I patch OS?