summaryrefslogtreecommitdiff
path: root/src/libstddjb/seek_set.c
blob: 70f6b0d121df74f360daa1b568edb5e9f9e42c72 (plain)
1
2
3
4
5
6
7
8
9
10
/* ISC license. */

#include <sys/types.h>
#include <unistd.h>
#include <skalibs/djbunix.h>

int seek_set (int fd, long pos)
{
  return lseek(fd, (off_t) pos, SEEK_SET) ;
}