From: "KIM, HYUNG-IL" <hikim@dsic.co.kr>
Subject: Function Parameter Passing Error?
Date: Wed, 27 Sep 2000 09:49:22 +0900 [thread overview]
Message-ID: <4DSn8vBKAHA.379@nntp2.thrunet.com> (raw)
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?
reply other threads:[~2000-09-27 0:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox