Re: sem_open really strange behavior

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/22/2010 02:46 PM, Cedric Roux wrote:
> Sergio Sobarzo wrote:
>> Thanks a lot Andrew,
>>
>> I read that paragraph thousand of times. However it is not an answer
>> why it works if a line is commented or not. I cannot figure an
>> acceptable explanation, that's why I thought it will be a gcc question.
> 
> It's because of the stack. Probably on your host (x86 I guess?)
> arguments to functions are passed on the stack.

Quite right.  I missed the line

If O_CREAT is specified in oflag, then two additional arguments must be
       supplied

... Sorry.

Andrew.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux