From 9281d180d13057917f618c35ef7433d2e4d4dd86 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 5 Jul 2000 19:23:36 +0000 Subject: Completely rearchitected the sysdeps directory. -Erik --- libc/sysdeps/linux/common/tell.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 libc/sysdeps/linux/common/tell.c (limited to 'libc/sysdeps/linux/common/tell.c') diff --git a/libc/sysdeps/linux/common/tell.c b/libc/sysdeps/linux/common/tell.c new file mode 100644 index 000000000..b58f3f944 --- /dev/null +++ b/libc/sysdeps/linux/common/tell.c @@ -0,0 +1,15 @@ +#define lseek __normal_lseek +#include +#include +#undef lseek + +static inline +_syscall3(off_t,lseek,int,fildes,off_t,offset,int,origin) + +off_t tell(int); + +off_t +tell (int fildes) +{ + return lseek (fildes, 0, SEEK_CUR); +} -- cgit v1.2.3