summaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-08-28 03:39:49 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2016-08-28 03:39:49 +0200
commit5debddf8aff9cc647cd9eeb89c06a550fbf816e7 (patch)
tree9e515f19fe1c48f2ba3b2b9d058abd34c17864ca /sys/include
parenta8ffbcabead96e4ebaab861b2837c2d770409702 (diff)
ape: add d_stat struct in dirent struct allowing the avoidance of stats
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/ape/dirent.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/include/ape/dirent.h b/sys/include/ape/dirent.h
index 388860067..900e79a60 100644
--- a/sys/include/ape/dirent.h
+++ b/sys/include/ape/dirent.h
@@ -1,6 +1,11 @@
#ifndef __DIRENT_H
#define __DIRENT_H
#pragma lib "/$M/lib/ape/libap.a"
+
+#ifndef __STAT_H
+#include <sys/stat.h>
+#endif
+
/*
* this must be a power of 2 and a multiple of all the ones in the system
*/
@@ -8,6 +13,7 @@
struct dirent {
char d_name[MAXNAMLEN + 1];
+ struct stat d_stat;
};
typedef struct _dirdesc {