4.104.114.84.95
Line | |
---|
1 | #if !defined(RTEMS_UNIX) |
---|
2 | |
---|
3 | /* |
---|
4 | * RTEMS Fake System Calls |
---|
5 | * |
---|
6 | * This file contains "fake" versions of the system call routines |
---|
7 | * which are reference by many libc implementations. Once a routine |
---|
8 | * has been implemented in terms of RTEMS services, it should be |
---|
9 | * taken out of this file. |
---|
10 | * |
---|
11 | * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. |
---|
12 | * On-Line Applications Research Corporation (OAR). |
---|
13 | * All rights assigned to U.S. Government, 1994. |
---|
14 | * |
---|
15 | * This material may be reproduced by or for the U.S. Government pursuant |
---|
16 | * to the copyright license under the clause at DFARS 252.227-7013. This |
---|
17 | * notice must appear in all copies of this file and its derivatives. |
---|
18 | * |
---|
19 | * $Id$ |
---|
20 | * |
---|
21 | */ |
---|
22 | |
---|
23 | #include <sys/types.h> |
---|
24 | #include <sys/stat.h> |
---|
25 | |
---|
26 | int |
---|
27 | __fstat(int _fd, struct stat* _sbuf) |
---|
28 | { |
---|
29 | return -1; |
---|
30 | } |
---|
31 | |
---|
32 | int |
---|
33 | __isatty(int _fd) |
---|
34 | { |
---|
35 | return 1; |
---|
36 | } |
---|
37 | |
---|
38 | int |
---|
39 | __close(int _fd) |
---|
40 | { |
---|
41 | /* return value usually ignored anyhow */ |
---|
42 | return 0; |
---|
43 | } |
---|
44 | |
---|
45 | int |
---|
46 | __open(const char *filename) |
---|
47 | { |
---|
48 | /* always fail */ |
---|
49 | return -1; |
---|
50 | } |
---|
51 | |
---|
52 | int |
---|
53 | __lseek(int _fd, off_t offset, int whence) |
---|
54 | { |
---|
55 | /* nothing is ever seekable */ |
---|
56 | return -1; |
---|
57 | } |
---|
58 | |
---|
59 | int stat( const char *path, struct stat *buf ) |
---|
60 | { |
---|
61 | /* always fail */ |
---|
62 | return -1; |
---|
63 | } |
---|
64 | |
---|
65 | int link( const char *existing, const char *new ) |
---|
66 | { |
---|
67 | /* always fail */ |
---|
68 | return -1; |
---|
69 | } |
---|
70 | |
---|
71 | int unlink( const char *path ) |
---|
72 | { |
---|
73 | /* always fail */ |
---|
74 | return -1; |
---|
75 | } |
---|
76 | |
---|
77 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.