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

Subversion Repositories or1k

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

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 lampret
/* 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
 
7
int _DEFUN(_read,(file, ptr, len),
8
           int file _AND
9
           char *ptr _AND
10
           int len)
11
{
12
  return 0;
13
}
14
 
15
 
16
int _DEFUN(_lseek,(file, ptr, dir),
17
          int file _AND
18
          int ptr _AND
19
          int dir)
20
{
21
  return 0;
22
}
23
 
24
int _DEFUN(_close,(file),
25
          int file)
26
{
27
  return -1;
28
}
29
 
30
int isatty(file)
31
     int file;
32
{
33
  return 1;
34
}
35
 
36
int _DEFUN(_fstat,(file, st),
37
          int file _AND
38
          struct stat *st)
39
{
40
  st->st_mode = S_IFCHR;
41
  return 0;
42
}
43
 
44
int
45
_open (path, flags)
46
     const char *path;
47
     int flags;
48
{
49
  return 0;
50
}

powered by: WebSVN 2.1.0

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