Changeset 37458472 in mainline for libc/generic/io/stream.c
- Timestamp:
- 2006-06-02T14:11:10Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6b5111a
- Parents:
- bb51e9a8
- File:
-
- 1 edited
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
Note:
See TracChangeset
for help on using the changeset viewer.