summaryrefslogtreecommitdiff
path: root/seek_set.c
blob: f54066445841b237cdf7a8c26144ec4bb0943edc (plain)
1
2
3
4
5
6
7
#include <sys/types.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; }