summaryrefslogtreecommitdiffstats
path: root/seek_set.c
blob: 56088a363482076347a28890cd60010d8a473a8b (plain)
1
2
3
4
5
6
7
8
#include <sys/types.h>
#include <unistd.h>
#include "seek.h"

#define SET 0 /* sigh */

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