diff options
author | rmanfredi <rmanfredi@2592e710-e01b-42a5-8df0-11608a6cc53d> | 2015-04-17 07:20:44 +0000 |
---|---|---|
committer | rmanfredi <rmanfredi@2592e710-e01b-42a5-8df0-11608a6cc53d> | 2015-04-17 07:20:44 +0000 |
commit | 193718d68aee65912f5e4008ec3484d0deef9efb (patch) | |
tree | af5cd23817576ccb9ae9e8b6863acc54df0ea98a | |
parent | e0333f701196c073579f1cd8aa7511108019bb0f (diff) |
Removed BSD-specific DT_WHT from the struct dirent check for a d_type field.
git-svn-id: svn://svn.code.sf.net/p/dist/code/trunk/dist@185 2592e710-e01b-42a5-8df0-11608a6cc53d
-rw-r--r-- | mcon/U/d_dirent_d_type.U | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mcon/U/d_dirent_d_type.U b/mcon/U/d_dirent_d_type.U index e2ebb19..431d299 100644 --- a/mcon/U/d_dirent_d_type.U +++ b/mcon/U/d_dirent_d_type.U @@ -13,11 +13,13 @@ ?S:d_dirent_d_type: ?S: This variable conditionally defines the HAS_DIRENT_D_TYPE symbol, ?S: which indicates to the C program that struct dirent has an -?S: integer member d_type. +?S: integer member d_type. ?S:. ?C:HAS_DIRENT_D_TYPE: ?C: This symbol, if defined, indicates that struct dirent has an -?C: integer member d_type. +?C: integer member d_type. Note that DT_WHT is BSD-specific and may +?C: not be available. If DT_UNKNOWN is returned, the filesystem does +?C: not fill d_type even though it is present in the dir entry. ?C:. ?H:#$d_dirent_d_type HAS_DIRENT_D_TYPE /**/ ?H:. @@ -40,8 +42,7 @@ int main(void) | DT_BLK | DT_REG | DT_LNK - | DT_SOCK - | DT_WHT; + | DT_SOCK; return 0; } EOC |