diff options
author | kib <kib@FreeBSD.org> | 2017-07-13 09:27:11 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2017-07-13 09:27:11 +0000 |
commit | 668d59a23068fc4a8aa806b914d95c71e903e92f (patch) | |
tree | 2479fb648c9c841acba46263712cd58a9c7dc384 /lib/libc/stdio/fseek.c | |
parent | 55a89eef51d5a91be65f136631688b2c5b3371ab (diff) | |
download | FreeBSD-src-668d59a23068fc4a8aa806b914d95c71e903e92f.zip FreeBSD-src-668d59a23068fc4a8aa806b914d95c71e903e92f.tar.gz |
MFC r320472,r320508,r320509:
Make stdio deferred cancel-safe.
Diffstat (limited to 'lib/libc/stdio/fseek.c')
-rw-r--r-- | lib/libc/stdio/fseek.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/stdio/fseek.c b/lib/libc/stdio/fseek.c index 2897eeb..e933bda 100644 --- a/lib/libc/stdio/fseek.c +++ b/lib/libc/stdio/fseek.c @@ -60,9 +60,9 @@ fseek(FILE *fp, long offset, int whence) if (!__sdidinit) __sinit(); - FLOCKFILE(fp); + FLOCKFILE_CANCELSAFE(fp); ret = _fseeko(fp, (off_t)offset, whence, 1); - FUNLOCKFILE(fp); + FUNLOCKFILE_CANCELSAFE(); if (ret == 0) errno = serrno; return (ret); @@ -78,9 +78,9 @@ fseeko(FILE *fp, off_t offset, int whence) if (!__sdidinit) __sinit(); - FLOCKFILE(fp); + FLOCKFILE_CANCELSAFE(fp); ret = _fseeko(fp, offset, whence, 0); - FUNLOCKFILE(fp); + FUNLOCKFILE_CANCELSAFE(); if (ret == 0) errno = serrno; return (ret); |