Re: your mail

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Mon Feb 25 2002 - 08:16:09 EST


> > fd = sem_initialize();
> > mmap(fd, ...)
> > ..
> > munmap(..)
> >
> > which gives you a handle for the semaphore.
>
> No no no! Implemented exactly that (and posted to l-k IIRC), and it's
> *horrible* to use.

All Linus forgot was to sem_initialize("filename"); With that the rest
comes out for free.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Feb 28 2002 - 21:00:14 EST