mirror of
https://github.com/fluencelabs/musl
synced 2025-06-12 06:21:39 +00:00
implement flockfile api, rework stdio locking
This commit is contained in:
@ -17,6 +17,7 @@ int vsnprintf(char *s, size_t n, const char *fmt, va_list ap)
|
||||
f.write = sn_write;
|
||||
f.buf_size = 1;
|
||||
f.buf = buf;
|
||||
f.owner = -1;
|
||||
if (n > INT_MAX) {
|
||||
errno = EOVERFLOW;
|
||||
return -1;
|
||||
|
Reference in New Issue
Block a user