implement flockfile api, rework stdio locking

This commit is contained in:
Rich Felker
2011-03-12 21:55:45 -05:00
parent d8d19f4d46
commit 5eb0d33ec0
9 changed files with 66 additions and 15 deletions

View File

@ -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;