diff options
Diffstat (limited to 'newlib/libc/stdio/getdelim.c')
-rw-r--r-- | newlib/libc/stdio/getdelim.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/stdio/getdelim.c b/newlib/libc/stdio/getdelim.c index 23fc502..41460ab 100644 --- a/newlib/libc/stdio/getdelim.c +++ b/newlib/libc/stdio/getdelim.c @@ -81,6 +81,7 @@ _DEFUN(__getdelim, (bufptr, n, delim, fp), CHECK_INIT (_REENT, fp); + __sfp_lock_acquire (); _flockfile (fp); numbytes = *n; @@ -130,6 +131,7 @@ _DEFUN(__getdelim, (bufptr, n, delim, fp), } _funlockfile (fp); + __sfp_lock_release (); /* if no input data, return failure */ if (ptr == buf) |