From 668d59a23068fc4a8aa806b914d95c71e903e92f Mon Sep 17 00:00:00 2001 From: kib Date: Thu, 13 Jul 2017 09:27:11 +0000 Subject: MFC r320472,r320508,r320509: Make stdio deferred cancel-safe. --- lib/libc/stdio/fseek.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/libc/stdio/fseek.c') 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); -- cgit v1.1