aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/sys/sysnec810/misc.c
blob: 348e7195b5c314f8c881becc51a27495c746d566 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include <_ansi.h>
#include <sys/types.h>
#include <sys/stat.h>

extern int _write (int, void*, unsigned int);

int
_open() {
  return -1;
}

int
_close() {
  return -1;
}

int
_lseek() {
  return 0;
}

int
_read() {
  return 0;
}

int
isatty() {
  return 1;
}

int
_fstat (int file,
       struct stat *st)
{
  st->st_mode = S_IFCHR;
  return 0;
}