Shaul Karl <[EMAIL PROTECTED]> writes:
> >
> > egrep -n semun $(find /usr/include -name \*.h) /dev/null
> >
>
> Why have you used /dev/null?
>
> (Wild guess: to have egrep find a file to work with in case find returns a null
>string?)
Yes, standard trick. Actually, I used egrep in emacs, an
>
> egrep -n semun $(find /usr/include -name \*.h) /dev/null
>
Why have you used /dev/null?
(Wild guess: to have egrep find a file to work with in case find returns a null
string?)
--
Shaul Karl <[EMAIL PROTECTED]>
===
Yes it does - thanks!
Now all I have to do is deal with the rest of my bugs ;-)
Oded
On 2 May 2001, Oleg Goldshmidt wrote:
> From: Oleg Goldshmidt <[EMAIL PROTECTED]>
> Oded Arbel <[EMAIL PROTECTED]> writes:
>
> > public:
> > CCritical(char* pathname) {
> > union semun semopt
Oded Arbel <[EMAIL PROTECTED]> writes:
> Hi list.
>
> I've jsut tried to compile a text book example for using semaphores on
> linux, and I've failed measrably. looking in google for answers produced
> nothing coherant, so I'm turning to you guys for help -
Another possibility (in addition to m
Oded Arbel <[EMAIL PROTECTED]> writes:
> public:
> CCritical(char* pathname) {
> union semun semopts;
This is an incomplete declaration, as the compiler tells you.
A union is a struct in which all members are allocated at the same
address. The declaration syntax is similar to
Hi list.
I've jsut tried to compile a text book example for using semaphores on
linux, and I've failed measrably. looking in google for answers produced
nothing coherant, so I'm turning to you guys for help -
This code
#include
#include
class CCritical {
key_t m_Key;