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.