File: seek_set.c

package info (click to toggle)
djbdns 1%3A1.05-4%2Blenny1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,584 kB
  • ctags: 1,126
  • sloc: ansic: 9,932; makefile: 1,020; sh: 219
file content (7 lines) | stat: -rw-r--r-- 164 bytes parent folder | download | duplicates (15)
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; }