blob: f44c03d519e9fb6cf11fe557ff6589e6d6701ab3 (
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
40
|
#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
_DEFUN(_fstat,(file, st),
int file _AND
struct stat *st)
{
st->st_mode = S_IFCHR;
return 0;
}
|