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

#define END 2 /* sigh */

int seek_end(fd) int fd;
{ if (lseek(fd,(off_t) 0,END) == -1) return -1; return 0; }