Re: Problem with semaphores and such.

2001-05-03 Thread Oleg Goldshmidt
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

Re: Problem with semaphores and such.

2001-05-02 Thread Shaul Karl
> > 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]> ===

Re: Problem with semaphores and such.

2001-05-02 Thread Oded Arbel
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

Re: Problem with semaphores and such.

2001-05-02 Thread Oleg Goldshmidt
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

Re: Problem with semaphores and such.

2001-05-02 Thread Oleg Goldshmidt
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

Problem with semaphores and such.

2001-05-02 Thread Oded Arbel
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;