Rev 1519 | Rev 1610 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1519 | Rev 1536 | ||
---|---|---|---|
Line 49... | Line 49... | ||
49 | void * param; |
49 | void * param; |
50 | int phone; |
50 | int phone; |
51 | } stream_t; |
51 | } stream_t; |
52 | 52 | ||
53 | static int console_phone = -1; |
53 | static int console_phone = -1; |
54 | static stream_t streams[FDS] = {{0, 0, 0, -1}}; |
54 | static stream_t streams[FDS]; |
55 | 55 | ||
56 | static ssize_t write_stderr(void *param, const void *buf, size_t count) |
56 | static ssize_t write_stderr(void *param, const void *buf, size_t count) |
57 | { |
57 | { |
58 | return count; |
58 | return count; |
59 | } |
59 | } |
Line 114... | Line 114... | ||
114 | usleep(10000); |
114 | usleep(10000); |
115 | } |
115 | } |
116 | } |
116 | } |
117 | 117 | ||
118 | stream.w = write_stdout; |
118 | stream.w = write_stdout; |
- | 119 | stream.phone = console_phone; |
|
119 | stream.param = 0; |
120 | stream.param = 0; |
120 | return stream; |
121 | return stream; |
121 | } |
122 | } |
122 | 123 | ||
123 | static ssize_t write_null(void *param, const void *buf, size_t count) |
124 | static ssize_t write_null(void *param, const void *buf, size_t count) |