From owner-freebsd-questions Tue Jun 27 10:12:10 2000 Delivered-To: freebsd-questions@freebsd.org Received: from wcug.wwu.edu (sloth.wcug.wwu.edu [140.160.164.200]) by hub.freebsd.org (Postfix) with SMTP id 51BD937B54E for ; Tue, 27 Jun 2000 10:12:07 -0700 (PDT) (envelope-from doc@wcug.wwu.edu) Received: (qmail 12443 invoked by uid 1074); 27 Jun 2000 17:12:00 -0000 Date: Tue, 27 Jun 2000 10:12:00 -0700 (PDT) From: David Daugherty X-Sender: doc@sloth To: Alan Batie Cc: questions@freebsd.org Subject: Re: semaphores In-Reply-To: <20000627100408.19017@aahz.passedge.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 27 Jun 2000, Alan Batie wrote: > I'm porting Solaris code and running into a discrepancy in > /usr/include/semaphore.h. To start with, on Solaris returns sem_t *, but > in FreeBSD it's declared just sem_t. And there's no man pages for virtually > any of the sem_ routines like sem_open, sem_wait, etc. I've got a bad > feeling this means they're not fully implemented... bash-2.03$ man -f semaphore ipcrm(1) - remove the specified message queues, semaphore sets, and shared memory segments sem_destroy(3) - destroy an unnamed semaphore sem_getvalue(3) - get the value of a semaphore sem_init(3) - initialize an unnamed semaphore sem_open(3), sem_close(3), sem_unlink(3) - named semaphore operations sem_post(3) - increment (unlock) a semaphore sem_wait(3), sem_trywait(3) - decrement (lock) a semaphore semctl(2) - control operations on a semaphore set semget(2) - obtain a semaphore id semop(2) - atomic array of operations on a semaphore set IPC::Semaphore(3) - SysV Semaphore IPC object class Thread::Semaphore(3) - thread-safe semaphores > I'm on 3.3-Release... I ran this on a 4.0-Stable so I'm unsure if you'd get the same on 3.3-Release. I don't see why not. David Software Engineer - NetManage Work email: david.daugherty@netmanage.com Home email: doc@wcug.wwu.edu ICQ 21106703 Washington State Resident To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message