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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [newlib/] [libc/] [sys/] [sysnec810/] [misc.c] - Blame information for rev 455

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

Line No. Rev Author Line
1 148 jeremybenn
#include <_ansi.h>
2
#include <sys/types.h>
3
#include <sys/stat.h>
4
 
5
extern int _write (int, void*, unsigned int);
6
 
7
int
8
_open() {
9
  return -1;
10
}
11
 
12
int
13
_close() {
14
  return -1;
15
}
16
 
17
int
18
_lseek() {
19
  return 0;
20
}
21
 
22
int
23
_read() {
24
  return 0;
25
}
26
 
27
int
28
isatty() {
29
  return 1;
30
}
31
 
32
int
33
_DEFUN(_fstat,(file, st),
34
       int file _AND
35
       struct stat *st)
36
{
37
  st->st_mode = S_IFCHR;
38
  return 0;
39
}
40
 

powered by: WebSVN 2.1.0

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