Minor bug in /usr/include/semaphore.h

From: Arrigo Triulzi <arrigo_at_lpac.ac.uk>
Date: Thu, 25 Jan 1996 11:53:02 GMT

Hello all,

        if you #include <semaphore.h> in a C++ program you will find
the following patch useful (needed under OSF/1 3.2c):

--- semaphore.h.orig Thu Jan 25 11:50:43 1996
+++ semaphore.h Thu Jan 25 11:51:33 1996
_at__at_ -97,7 +97,7 _at__at_
 
 _BEGIN_CPLUSPLUS
 int sem_init __((sem_t *sem, int pshared, unsigned int value));
-int sem_destory __((sem_t *sem));
+int sem_destroy __((sem_t *sem));
 sem_t *sem_open __((const char *name, int oflag, ...));
 /* sem_t *sem_open(const char *name, int oflag, mode_t mode, unsigned int value); */
 int sem_close __((sem_t *sem));

Ciao,

        Arrigo

--
Arrigo Triulzi <arrigo_at_lpac.ac.uk>  - +44-171-775-3247
London Parallel Applications Centre - London E1 4NS - UK
Received on Thu Jan 25 1996 - 13:07:39 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:46 NZDT