aboutsummaryrefslogtreecommitdiffstats
path: root/com32/include/sys
diff options
context:
space:
mode:
authorhpa <hpa>2005-09-25 21:35:44 +0000
committerhpa <hpa>2005-09-25 21:35:44 +0000
commit85ab9fe14674567260cf94ecd4dc845f1988a08b (patch)
treee241d2eaf71df6dd6b7c268ff047781dfe6b9f7a /com32/include/sys
parent77477d3af776cbc8ffce61cb63ae7a27dbe0a941 (diff)
downloadsyslinux-85ab9fe14674567260cf94ecd4dc845f1988a08b.tar.gz
syslinux-85ab9fe14674567260cf94ecd4dc845f1988a08b.tar.xz
syslinux-85ab9fe14674567260cf94ecd4dc845f1988a08b.zip
Beginnings of a file-moving API
Diffstat (limited to 'com32/include/sys')
-rw-r--r--com32/include/sys/stat.h9
-rw-r--r--com32/include/sys/types.h2
2 files changed, 10 insertions, 1 deletions
diff --git a/com32/include/sys/stat.h b/com32/include/sys/stat.h
index c0afb914..ffc41059 100644
--- a/com32/include/sys/stat.h
+++ b/com32/include/sys/stat.h
@@ -40,4 +40,13 @@
#define S_IWOTH 00002
#define S_IXOTH 00001
+/* These are the only fields in struct stat we emulate */
+struct stat {
+ mode_t st_mode;
+ off_t st_size;
+};
+
+/* Only fstat() supported */
+int fstat(int, struct stat *);
+
#endif /* _SYS_STAT_H */
diff --git a/com32/include/sys/types.h b/com32/include/sys/types.h
index d7e9cba3..2ab518c0 100644
--- a/com32/include/sys/types.h
+++ b/com32/include/sys/types.h
@@ -11,6 +11,6 @@
typedef ptrdiff_t ssize_t;
typedef int mode_t;
-typedef int64_t off_t;
+typedef size_t off_t;
#endif