[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: POSIX semaphore for GNU/Hurd
From: |
Neal H. Walfield |
Subject: |
Re: POSIX semaphore for GNU/Hurd |
Date: |
02 Nov 2002 19:49:31 -0500 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 |
It seems I overlooked this attachment in my last email. Sorry.
> #ifndef _SEMAPHORE_H
> #define _SEMAPHORE_H 1
>
> #include <pthread.h>
POSIX says you must include <fcntl.h> and <sys/types.h>.
>
> __BEGIN_DECLS
>
> struct __sem_t
> {
> unsigned int count;
> pthread_mutex_t count_lock;
> pthread_cond_t lock;
> };
This should be in a bits file.
> __END_DECLS
Please include declarations for sem_open and sem_close even if they
are only stubs.
> #endif /* pthread.h */
You may want to update this comment too.