summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/tell.c
blob: e02001d0daf335f39ec8d146e891d3a772b767e3 (plain)
1
2
3
4
5
6
7
8
9
10
#include <errno.h>
#include <unistd.h>
#include <syscall.h>

off_t tell(int);

off_t tell (int fildes)
{
  return lseek (fildes, 0, SEEK_CUR);
}