Subj : Re: posix semaphores on AIX To : comp.programming.threads From : Dragan Cvetkovic Date : Fri Jul 29 2005 11:01 am "jpknott@gmail.com" writes: > Are posix semaphores supported on AIX (5.1 - 5.2)? > > I am trying to port some thread-aware code which runs fine on linux and > Solaris. However, on AIX when I call sem_open I am getting -1, with > errno set to ENOSYS. > > It seems rather incredible that posix semaphores are simply not > implemented, so I am guessing that I am either linking incorrectly, or > perhaps not defining some critical macro when compiling. Well, POSIX semaphores are a relativelly new feature. As far as I can see, sem_open() is declared in /usr/include/semaphore.h, as they are supposed to be, but there is also a comment in that file stating: /* THIS FILE is for conformance to IEEE POSIX 1003.1c. * It describes required symbols for the Realtime option * which is NOT SUPPORTED. */ So, I guess, no sem_open() on AIX 5.2. Can't you port that to System V semaphores? Dragan -- Dragan Cvetkovic, To be or not to be is true. G. Boole No it isn't. L. E. J. Brouwer !!! Sender/From address is bogus. Use reply-to one !!! .