Changeset 58daded in mainline
- Timestamp:
- 2018-07-16T09:13:43Z (7 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)
- Location:
- uspace/lib/c
- Files:
-
- 2 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 -
uspace/lib/c/include/stdio.h
r0245896 r58daded 170 170 extern void perror(const char *); 171 171 172 extern voidsetvbuf(FILE *, void *, int, size_t);172 extern int setvbuf(FILE *, void *, int, size_t); 173 173 extern void setbuf(FILE *, void *); 174 174
Note:
See TracChangeset
for help on using the changeset viewer.