summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/common/tell.c
blob: b58f3f9442f3f5ff3d183d59f8917bf5b32c9ae2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#define lseek __normal_lseek
#include <unistd.h>
#include <syscall.h>
#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);
}