gustavonihei commented on PR #6137: URL: https://github.com/apache/incubator-nuttx/pull/6137#issuecomment-1106728981
> > @pkarashchenko Could you please link a reference to the POSIX chapter that states that `stat_loc` may be `NULL`? > > I've updated PR description Thanks, I had skimmed that page, but I failed to find the information. The excerpt you pasted does not state that `stat_loc` may be `NULL`. It just determines the behavior when `stat_loc` is non-NULL. I tried looking at other implementations. In the Linux Kernel, if `stat_loc` (`stat_addr` in this case) is `NULL`, the kernel returns `-EFAULT` to the userspace: https://github.com/torvalds/linux/blob/master/kernel/exit.c#L1683 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org