From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6911 Path: news.gmane.org!not-for-mail From: Trutz Behn Newsgroups: gmane.linux.lib.musl.general Subject: [PATCH] make fsync, fdatasync and msync cancellation points Date: Wed, 28 Jan 2015 18:46:54 +0100 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1422467238 28370 80.91.229.3 (28 Jan 2015 17:47:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Jan 2015 17:47:18 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6924-gllmg-musl=m.gmane.org@lists.openwall.com Wed Jan 28 18:47:13 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1YGWhs-00027U-Rz for gllmg-musl@m.gmane.org; Wed, 28 Jan 2015 18:47:13 +0100 Original-Received: (qmail 21887 invoked by uid 550); 28 Jan 2015 17:47:10 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 21835 invoked from network); 28 Jan 2015 17:47:09 -0000 X-Virus-Scanned: Debian amavisd-new at mfilter12-d.gandi.net X-Originating-IP: 193.110.157.151 Xref: news.gmane.org gmane.linux.lib.musl.general:6911 Archived-At: --- src/mman/msync.c | 2 +- src/unistd/fdatasync.c | 2 +- src/unistd/fsync.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mman/msync.c b/src/mman/msync.c index bb20475b4de3..fcd8cdf9fc17 100644 --- a/src/mman/msync.c +++ b/src/mman/msync.c @@ -3,5 +3,5 @@ int msync(void *start, size_t len, int flags) { - return syscall(SYS_msync, start, len, flags); + return syscall_cp(SYS_msync, start, len, flags); } diff --git a/src/unistd/fdatasync.c b/src/unistd/fdatasync.c index dd4d41c75c7e..3895ae530c75 100644 --- a/src/unistd/fdatasync.c +++ b/src/unistd/fdatasync.c @@ -3,5 +3,5 @@ int fdatasync(int fd) { - return syscall(SYS_fdatasync, fd); + return syscall_cp(SYS_fdatasync, fd); } diff --git a/src/unistd/fsync.c b/src/unistd/fsync.c index dc4727cc1d17..7a1c80b5de0d 100644 --- a/src/unistd/fsync.c +++ b/src/unistd/fsync.c @@ -3,5 +3,5 @@ int fsync(int fd) { - return syscall(SYS_fsync, fd); + return syscall_cp(SYS_fsync, fd); } -- 2.2.2