mailing list of musl libc
 help / color / mirror / code / Atom feed
* [PATCH] make fsync, fdatasync and msync cancellation points
@ 2015-01-28 17:46 Trutz Behn
  2015-01-31  3:06 ` Rich Felker
  0 siblings, 1 reply; 2+ messages in thread
From: Trutz Behn @ 2015-01-28 17:46 UTC (permalink / raw)
  To: musl

---
 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



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] make fsync, fdatasync and msync cancellation points
  2015-01-28 17:46 [PATCH] make fsync, fdatasync and msync cancellation points Trutz Behn
@ 2015-01-31  3:06 ` Rich Felker
  0 siblings, 0 replies; 2+ messages in thread
From: Rich Felker @ 2015-01-31  3:06 UTC (permalink / raw)
  To: musl

On Wed, Jan 28, 2015 at 06:46:54PM +0100, Trutz Behn wrote:
> ---
>  src/mman/msync.c       | 2 +-
>  src/unistd/fdatasync.c | 2 +-
>  src/unistd/fsync.c     | 2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)

Committed this and the other three patches with minor edits to the log
message. Thanks!

Rich


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-31  3:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-28 17:46 [PATCH] make fsync, fdatasync and msync cancellation points Trutz Behn
2015-01-31  3:06 ` Rich Felker

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).