summaryrefslogtreecommitdiff
path: root/src/libstddjb/seek_cur.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/seek_cur.c')
-rw-r--r--src/libstddjb/seek_cur.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libstddjb/seek_cur.c b/src/libstddjb/seek_cur.c
new file mode 100644
index 0000000..cdfdac7
--- /dev/null
+++ b/src/libstddjb/seek_cur.c
@@ -0,0 +1,10 @@
+/* ISC license. */
+
+#include <sys/types.h>
+#include <unistd.h>
+#include <skalibs/djbunix.h>
+
+long seek_cur (int fd)
+{
+ return (long)lseek(fd, 0, SEEK_CUR) ;
+}