about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2015-07-09 17:07:35 +0000
committerRich Felker <dalias@aerifal.cx>2015-07-09 17:07:35 +0000
commit11894f6d3a80be950a490dc7dfab349f057a545f (patch)
treea46c086dd63f5976690a8915881d6e3967c2c190 /include
parente8cbe0bad4284906230a53af4c91ad2b9713d03b (diff)
downloadmusl-11894f6d3a80be950a490dc7dfab349f057a545f.tar.gz
musl-11894f6d3a80be950a490dc7dfab349f057a545f.tar.xz
musl-11894f6d3a80be950a490dc7dfab349f057a545f.zip
fix incorrect void return type for syncfs function
being nonstandard, the closest thing to a specification for this
function is its man page, which documents it as returning int. it can
fail with EBADF if the file descriptor passed is invalid.
Diffstat (limited to 'include')
-rw-r--r--include/unistd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/unistd.h b/include/unistd.h
index 0fe75d52..760a1652 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -185,7 +185,7 @@ int setresgid(gid_t, gid_t, gid_t);
 int getresuid(uid_t *, uid_t *, uid_t *);
 int getresgid(gid_t *, gid_t *, gid_t *);
 char *get_current_dir_name(void);
-void syncfs(int);
+int syncfs(int);
 int euidaccess(const char *, int);
 int eaccess(const char *, int);
 #endif