From: Trutz Behn <me@trutz.be>
To: musl@lists.openwall.com
Subject: [PATCH] make fsync, fdatasync and msync cancellation points
Date: Wed, 28 Jan 2015 18:46:54 +0100 [thread overview]
Message-ID: <b44899c4721e1ccb3a06a4302720dfa3df9a7e5f.1422467206.git.me@trutz.be> (raw)
---
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
next reply other threads:[~2015-01-28 17:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-28 17:46 Trutz Behn [this message]
2015-01-31 3:06 ` Rich Felker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b44899c4721e1ccb3a06a4302720dfa3df9a7e5f.1422467206.git.me@trutz.be \
--to=me@trutz.be \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).