1
0
Fork 0
qmail/seek_set.c
D. J. Bernstein af9625ddf9 qmail 1.01
2009-12-18 13:07:04 +01:00

7 lines
173 B
C

#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; }