repo.or.cz
/
zpugcc
/
jano.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fixed bash/dash/sh issue (Ubuntu)
[zpugcc/jano.git]
/
toolchain
/
gcc
/
newlib
/
libc
/
sys
/
sysnec810
/
misc.c
blob
f44c03d519e9fb6cf11fe557ff6589e6d6701ab3
1
#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