Re: semInit
Re: semInit
- Subject: Re: semInit
- From: p3consulting <email@hidden>
- Date: Tue, 30 Dec 2003 12:03:06 +0100
We had to convert all of our semaphores to the heavyweight version. In
the interest of maintaining the compatibility of these libraries across
our systems I would like to keep the lightweight version. I need to
include the person who was actually working the issues before the
Christmas break. I think he said that the function stub exists in the
header but it does nothing.
Actually it returns -1, with a message "Function not implemented" from
perror.
However, you may be interested to take a look at PostgreSQL source code
to see how they solve the problem in their context,
./backend/port/pg_sema.c
(in short they use sem_open with O_CREAT | O_EXCL instead)
Other OpenSource projects could be source of inspiration also...
most of them have heavy x-platform problem solving history.
Pascal Pochet
P3 Consulting
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.