- Timestamp:
- 2006-06-02T14:11:10Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6b5111a
- Parents:
- bb51e9a8
- Location:
- libc
- Files:
-
- 2 edited
-
generic/io/stream.c (modified) (2 diffs)
-
include/stdio.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
libc/generic/io/stream.c
rbb51e9a8 r37458472 118 118 } 119 119 120 static ssize_t write_null(void *param, const void *buf, size_t count) 121 { 122 return count; 123 } 124 125 120 126 fd_t open(const char *fname, int flags) 121 127 { … … 143 149 return c; 144 150 } 151 if (!strcmp(fname, "null")) { 152 streams[c].w = write_null; 153 return c; 154 } 145 155 } 146 156 -
libc/include/stdio.h
rbb51e9a8 r37458472 35 35 #define EOF (-1) 36 36 37 #include <io/stream.h> 38 37 39 extern int getchar(void); 38 40
Note:
See TracChangeset
for help on using the changeset viewer.
