summary refs log tree commit diff
path: root/src/seek_set.c
blob: 19b82650492113de619564d2379dc7f98f508c0a (plain) (blame)
1
2
3
4
5
6
7
8
9
/* Public domain. */

#include <sys/types.h>
#include "seek.h"

#define SET 0 /* sigh */

int seek_set(int fd,seek_pos pos)
{ if (lseek(fd,(off_t) pos,SET) == -1) return -1; return 0; }