xiaoxiang781216 opened a new pull request #2591:
URL: https://github.com/apache/incubator-nuttx/pull/2591


   ## Summary
   since the softlink is a special node too(include/nuttx/fs.h):
   ```
   #define FSNODEFLAG_TYPE_MASK       0x0000000f /* Isolates type field      */
   #define   FSNODEFLAG_TYPE_DRIVER   0x00000000 /*   Character driver       */
   #define   FSNODEFLAG_TYPE_BLOCK    0x00000001 /*   Block driver           */
   #define   FSNODEFLAG_TYPE_MOUNTPT  0x00000002 /*   Mount point            */
   #define FSNODEFLAG_TYPE_SPECIAL    0x00000008 /* Special OS type          */
   #define   FSNODEFLAG_TYPE_NAMEDSEM 0x00000008 /*   Named semaphore        */
   #define   FSNODEFLAG_TYPE_MQUEUE   0x00000009 /*   Message Queue          */
   #define   FSNODEFLAG_TYPE_SHM      0x0000000a /*   Shared memory region   */
   #define   FSNODEFLAG_TYPE_MTD      0x0000000b /*   Named MTD driver       */
   #define   FSNODEFLAG_TYPE_SOFTLINK 0x0000000c /*   Soft link              */
   #define FSNODEFLAG_DELETED         0x00000010 /* Unlinked                 */
   
   #define INODE_IS_TYPE(i,t) \
     (((i)->i_flags & FSNODEFLAG_TYPE_MASK) == (t))
   #define INODE_IS_SPECIAL(i) \
     (((i)->i_flags & FSNODEFLAG_TYPE_SPECIAL) != 0)
   
   ## Impact
   No function change
   
   ## Testing
   
   


----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to