You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/08/06 20:12:15 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 edited a comment on pull request #1522: Fix Breakage from 91ed14c in PR 1372 vfs/stat: Make the flag defintion more confirm POSIX standard.

xiaoxiang781216 edited a comment on pull request #1522:
URL: https://github.com/apache/incubator-nuttx/pull/1522#issuecomment-670167504


   Link flag can't or with dir flag: link flag tell you this is a link, If you want to know whether it is a directory, file, socket, block or char, you have to follow the link and ask the link target type:
   1.stat always follow the link and report the target type so never return link flag
   2.lstat never follow the link and report the type is link
   
   You can see Linux definition almost same with NuttX:
   https://github.com/bminor/glibc/blob/5f72f9800b250410cad3abfeeb09469ef12b2438/sysdeps/unix/sysv/linux/generic/bits/stat.h#L146
   BTW, is etc/ a mount point?
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org