File: seek_set.c

package info (click to toggle)
tinydyndns 0.4.2.debian1-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,432 kB
  • sloc: ansic: 10,256; sh: 291; makefile: 42
file content (8 lines) | stat: -rw-r--r-- 184 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
#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; }