Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!indetech!schmidt From: schmidt@indetech.com (Doug Schmidt) Newsgroups: comp.unix.questions Subject: initial value of semaphores Message-ID: <1990Jun30.221024.2060@indetech.com> Date: 30 Jun 90 22:10:24 GMT Reply-To: schmidt@indetech.UUCP (Doug Schmidt) Organization: Independence Technologies, Inc. Fremont, CA Lines: 20 After a successful system call to sem_id = semget (SEMKEY, 1, 0777 | IPC_CREAT); is the result of semctl (sem_id, 0, GETVAL, 0); guaranteed to be 0? (assuming there are no errors, etc.). In otherwords, what is the semval field of semaphores initialized to? TFM doesn't seem to indicate this, and neither do Bach's or Rochkind's books. thanks, Doug -- ____*_ Douglas C. Schmidt schmidt@indetech.com \ / / Independence Technologies {sun,sharkey,pacbell}!indetech!schmidt \/ / 42705 Lawrence Place FAX: 415 438-2034 \/ Fremont, CA 94538 Voice: 415 438-2023