OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libc/] [sys/] [h8300hms/] [syscalls.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1010 ivang
/* Operating system stubs, set up for the MRI simulator */
2
 
3
#include <_ansi.h>
4
#include <sys/types.h>
5
#include <sys/stat.h>
6
#include <errno.h>
7
 
8
int _DEFUN(_read,(file, ptr, len),
9
           int file _AND
10
           char *ptr _AND
11
           int len)
12
{
13
  return 0;
14
}
15
 
16
 
17
int _DEFUN(_lseek,(file, ptr, dir),
18
          int file _AND
19
          int ptr _AND
20
          int dir)
21
{
22
  return 0;
23
}
24
 
25
int _DEFUN(_close,(file),
26
          int file)
27
{
28
  return -1;
29
}
30
 
31
int isatty(file)
32
     int file;
33
{
34
  return 1;
35
}
36
 
37
int _DEFUN(_fstat,(file, st),
38
          int file _AND
39
          struct stat *st)
40
{
41
  st->st_mode = S_IFCHR;
42
  return 0;
43
}
44
 
45
int
46
_open (path, flags)
47
     const char *path;
48
     int flags;
49
{
50
  return 0;
51
}
52
 
53
int
54
_unlink (path)
55
     const char *path;
56
{
57
  errno = EIO;
58
  return -1;
59
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.