summaryrefslogtreecommitdiffstats
path: root/seek.h
diff options
context:
space:
mode:
Diffstat (limited to 'seek.h')
-rw-r--r--seek.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/seek.h b/seek.h
new file mode 100644
index 0000000..06aad97
--- /dev/null
+++ b/seek.h
@@ -0,0 +1,15 @@
+#ifndef SEEK_H
+#define SEEK_H
+
+typedef unsigned long seek_pos;
+
+extern seek_pos seek_cur(int);
+
+extern int seek_set(int,seek_pos);
+extern int seek_end(int);
+
+extern int seek_trunc(int,seek_pos);
+
+#define seek_begin(fd) (seek_set((fd),(seek_pos) 0))
+
+#endif