diff options
author | rpj <rpj> | 1999-05-29 06:44:29 +0000 |
---|---|---|
committer | rpj <rpj> | 1999-05-29 06:44:29 +0000 |
commit | 0103da82bdf86764129c3b1e57c0496af1bb91ab (patch) | |
tree | 6bc26b5ecd6623422ec4ba46c6259f94cf699cf5 /semaphore.c | |
parent | 17b9298d9918a36c344741f20f165bc67b5b7769 (diff) |
./ChangeLog
Sat May 8 09:42:30 1999 Ross Johnson <rpj@ixobrychus.canberra.edu.au>
* pthread.def (sem_open): Add.
(sem_close): Add.
(sem_unlink): Add.
(sem_getvalue): Add.
* FAQ (Question 3): Add.
Thu Apr 8 01:16:23 1999 Ross Johnson <rpj@ixobrychus.canberra.edu.au>
* semaphore.c (sem_open): New function; returns an error (ENOSYS).
(sem_close): ditto.
(sem_unlink): ditto.
(sem_getvalue): ditto.
* semaphore.h (_POSIX_SEMAPHORES): define.
./tests/ChangeLog
Sat May 29 23:29:04 1999 Ross Johnson <rpj@ixobrychus.canberra.edu.au>
* runall.bat (condvar5): Add new test.
* runall.bat (condvar6): Add new test.
* Makefile (condvar5) : Add new test.
* Makefile (condvar6) : Add new test.
* condvar5.c: New test for pthread_cond_broadcast().
* condvar6.c: New test for pthread_cond_broadcast().
Diffstat (limited to 'semaphore.c')
-rw-r--r-- | semaphore.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/semaphore.c b/semaphore.c index cd463d3..0fcfc94 100644 --- a/semaphore.c +++ b/semaphore.c @@ -329,3 +329,36 @@ sem_post (sem_t * sem) return 0; } /* sem_post */ + + +int +sem_open (const char * name, int oflag, mode_t mode, unsigned int value) +{ + errno = ENOSYS; + return -1; +} /* sem_open */ + + +int +sem_close (sem_t * sem) +{ + errno = ENOSYS; + return -1; +} /* sem_close */ + + +int +sem_unlink (const char * name) +{ + errno = ENOSYS; + return -1; +} /* sem_unlink */ + + +int +sem_getvalue (sem_t * sem, int * sval) +{ + errno = ENOSYS; + return -1; +} /* sem_getvalue */ + |