Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Jun 2000 10:12:00 -0700 (PDT)
From:      David Daugherty <doc@wcug.wwu.edu>
To:        Alan Batie <batie@aahz.passedge.com>
Cc:        questions@freebsd.org
Subject:   Re: semaphores
Message-ID:  <Pine.LNX.3.96.1000627101035.11398A-100000@sloth>
In-Reply-To: <20000627100408.19017@aahz.passedge.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.3.96.1000627101035.11398A-100000>