diff options
author | Trutz Behn <me@trutz.be> | 2015-01-28 18:46:54 +0100 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2015-01-30 22:05:40 -0500 |
commit | 0b21a07c783d18051d86b1d6ddc04a8ea716a12f (patch) | |
tree | 5f1a454bdb773129421c8a282aecaa47f61ba1c0 /src/unistd | |
parent | 2d67ae923d11d766d9a6cea714fa487b52579f6a (diff) | |
download | musl-0b21a07c783d18051d86b1d6ddc04a8ea716a12f.zip musl-0b21a07c783d18051d86b1d6ddc04a8ea716a12f.tar.gz musl-0b21a07c783d18051d86b1d6ddc04a8ea716a12f.tar.bz2 |
make fsync, fdatasync, and msync cancellation points
these are mandatory cancellation points per POSIX, so their omission
was a conformance bug.
Diffstat (limited to 'src/unistd')
-rw-r--r-- | src/unistd/fdatasync.c | 2 | ||||
-rw-r--r-- | src/unistd/fsync.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/unistd/fdatasync.c b/src/unistd/fdatasync.c index dd4d41c..3895ae5 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 dc4727c..7a1c80b 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); } |