source: trunk/libs/newlib/src/newlib/libc/sys/sysnec810/misc.c @ 444

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

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

File size: 350 bytes
Line 
1#include <_ansi.h>
2#include <sys/types.h>
3#include <sys/stat.h>
4
5extern int _write (int, void*, unsigned int);
6
7int
8_open() {
9  return -1;
10}
11
12int
13_close() {
14  return -1;
15}
16
17int
18_lseek() {
19  return 0;
20}
21
22int
23_read() {
24  return 0;
25}
26
27int
28isatty() {
29  return 1;
30}
31
32int
33_fstat (int file,
34       struct stat *st)
35{
36  st->st_mode = S_IFCHR;
37  return 0;
38}
39
Note: See TracBrowser for help on using the repository browser.