blob: a1a36d02228b0c82abd19993699ddcd57c424013 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
/* Public domain. */
#include <sys/types.h>
#include <unistd.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; }
|