summaryrefslogtreecommitdiff
path: root/ucspi-tcp-0.88/seek_set.c
blob: d08d4f38b292fcba0c04717ee5563216fe136c5a (plain)
1
2
3
4
5
6
7
#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; }