Welcome to mirror list, hosted at ThFree Co, Russian Federation.

lseek.c « sysmec « sys « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dad6c39a8358297cd3566b1b018966916d3ef151 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <_ansi.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/unistd.h>
#include "sys/syscall.h"

int errno;

int __trap0 ();

#define TRAP0(f, p1, p2, p3) __trap0(f, (p1), (p2), (p3))

off_t
_lseek (int file,
	off_t ptr,
	int dir)
{
  return TRAP0 (SYS_lseek, file, ptr, dir);
}