/uspace/trunk/libc/generic/io/stream.c |
---|
117,6 → 117,12 |
return stream; |
} |
static ssize_t write_null(void *param, const void *buf, size_t count) |
{ |
return count; |
} |
fd_t open(const char *fname, int flags) |
{ |
int c = 0; |
142,7 → 148,11 |
streams[c].w = write_stderr; |
return c; |
} |
if (!strcmp(fname, "null")) { |
streams[c].w = write_null; |
return c; |
} |
} |
ssize_t write(int fd, const void *buf, size_t count) |