aboutsummaryrefslogtreecommitdiffstats
path: root/sdk/std/files.h
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2025-01-14 16:06:02 -0600
committerWilliam Harrington <kb0iic@berzerkula.org>2025-01-14 16:06:02 -0600
commit0cc9b20c15460213e488bf5e70963b941482f628 (patch)
treebb0143245583ec846630f39bfa2258dba640ccd7 /sdk/std/files.h
parent0e084ade5069756d487b5c948c48b777e37c00c9 (diff)
Add source.
Diffstat (limited to 'sdk/std/files.h')
-rw-r--r--sdk/std/files.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/sdk/std/files.h b/sdk/std/files.h
new file mode 100644
index 0000000..84ad33a
--- /dev/null
+++ b/sdk/std/files.h
@@ -0,0 +1,47 @@
+/*
+ * Portable support for file manipulation and access related functions.
+ * $Id$
+ * Copyright (c) 1997 by Tycho Softworks.
+ * For conditions of distribution and reuse see product license.
+ */
+
+#ifndef __STD_FILES_H__
+#define __STD_FILES_H__
+
+#ifndef __STD_TYPES_H__
+#include <std/types.h>
+#endif
+
+#include <stdio.h>
+#include <sys/stat.h>
+
+#ifndef UNISTD_H_MISSING
+#include <unistd.h>
+#endif
+
+#ifndef SYS_FCNTL_H_MISSING
+#include <sys/fcntl.h>
+#else
+#ifndef FCNTL_H_MISSING
+#include <fcntl.h>
+#endif
+#endif
+
+#ifndef IO_H_MISSING
+#include <io.h>
+#endif
+
+#ifndef __STD_TYPES_H__
+#include <std/types.h>
+#endif
+
+
+#ifdef OFF_T_MISSING
+typedef long off_t;
+#endif
+
+#ifdef FD_T_MISSING
+typedef int fd_t;
+#endif
+
+#endif