source: trunk/libs/newlib/src/newlib/libc/sys/sysmec/lseek.c

Last change on this file was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 296 bytes
Line 
1#include <_ansi.h>
2#include <sys/types.h>
3#include <sys/stat.h>
4#include <sys/unistd.h>
5#include "sys/syscall.h"
6
7int errno;
8
9int __trap0 ();
10
11#define TRAP0(f, p1, p2, p3) __trap0(f, (p1), (p2), (p3))
12
13off_t
14_lseek (int file,
15        off_t ptr,
16        int dir)
17{
18  return TRAP0 (SYS_lseek, file, ptr, dir);
19}
Note: See TracBrowser for help on using the repository browser.