summaryrefslogtreecommitdiff
path: root/file.h
diff options
context:
space:
mode:
authorJeffrey Armstrong <jeffrey.armstrong@approximatrix.com>2016-04-24 18:05:02 -0400
committerJeffrey Armstrong <jeffrey.armstrong@approximatrix.com>2016-04-24 18:05:02 -0400
commit6d6bb88a0215b87a4a47ed86a84ae3c75d399962 (patch)
tree46f948d27ab51504d783879cedea9a29560f7f5e /file.h
downloadsedt-6d6bb88a0215b87a4a47ed86a84ae3c75d399962.tar.gz
sedt-6d6bb88a0215b87a4a47ed86a84ae3c75d399962.zip
Initial import of 5.0 source code with minor changes to use termios on Linux.
Diffstat (limited to 'file.h')
-rw-r--r--file.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/file.h b/file.h
new file mode 100644
index 0000000..bb5d833
--- /dev/null
+++ b/file.h
@@ -0,0 +1,35 @@
+#if defined(VMS)
+#define Recsize 32*1024
+#define Blksize 32*1024
+#include <rms.h>
+struct File
+ {struct RAB *Handle;
+ char *Parsed_Name;
+ unsigned char Parsed_Name_Len;
+ int Point, Length, Access;
+ char Record[Recsize];
+ };
+#else
+#define Recsize 64
+#if defined(ATARI)
+#define Blksize 8192
+#else
+#if defined(MPE)
+#define Blksize 512
+#else
+#define Blksize 2048
+#endif
+#endif
+#if defined(MPE)
+struct File
+ {FILE *Handle;
+ int Point, Length, Access;
+ char Record[Recsize];
+ };
+#else
+struct File
+ {int Handle, Point, Length, Access;
+ char Record[Recsize];
+ };
+#endif
+#endif