From: Rob McCool 
Newsgroups: netscape.devs-nsapi
Subject: Re: sem_init function question
Date: Thu, 19 Dec 1996 13:05:03 -0800

> I don't think the name has to be a file name. May be it is a "copy and
> Paste" error in their header file comments (for the file name line)
> 
> I use it as a combination of a unique name (not a file name) and a
> unique number, and it seems to work fine. When I tried giving a file
> name, it failed to creat the sem for some reason (with the full path).
> 
> Can someone else also confirm this?

It is a file name, but not a full path name. The server takes the name
and the ID, and does:

sprintf(fullpath, "/tmp/%s.%d", name, id);

to get the full path of a file to use for the sem (when file locking is
being used to implement them).

--
Rob McCool, robm@netscape.com http://home.netscape.com/people/robm/
Stunt Programmer, Netscape Communications Corporation
It was working ten minutes ago, I swear...
Reproduced by permission of the author.