Changeset 58daded in mainline for uspace/lib/c/generic/io/io.c
- Timestamp:
- 2018-07-16T09:13:43Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 802a8c8
- Parents:
- 0245896
- git-author:
- Jiri Svoboda <jiri@…> (2018-07-16 06:12:46)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-07-16 09:13:43)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/io.c
r0245896 r58daded 242 242 243 243 /** Set stream buffer. */ 244 void setvbuf(FILE *stream, void *buf, int mode, size_t size) 245 { 244 int setvbuf(FILE *stream, void *buf, int mode, size_t size) 245 { 246 if (mode != _IONBF && mode != _IOLBF && mode != _IOFBF) 247 return -1; 248 246 249 stream->btype = mode; 247 250 stream->buf = buf; … … 250 253 stream->buf_tail = stream->buf; 251 254 stream->buf_state = _bs_empty; 255 256 return 0; 252 257 } 253 258
Note:
See TracChangeset
for help on using the changeset viewer.