libroot: sync() should not return any value
This commit is contained in:
@@ -189,7 +189,7 @@ extern ssize_t write_pos(int fd, off_t pos, const void *buffer,size_t count);
|
|||||||
extern ssize_t pwrite(int fd, const void *buffer, size_t count, off_t pos);
|
extern ssize_t pwrite(int fd, const void *buffer, size_t count, off_t pos);
|
||||||
extern off_t lseek(int fd, off_t offset, int whence);
|
extern off_t lseek(int fd, off_t offset, int whence);
|
||||||
|
|
||||||
extern int sync(void);
|
extern void sync(void);
|
||||||
extern int fsync(int fd);
|
extern int fsync(int fd);
|
||||||
|
|
||||||
extern int chown(const char *path, uid_t owner, gid_t group);
|
extern int chown(const char *path, uid_t owner, gid_t group);
|
||||||
|
|||||||
@@ -22,14 +22,9 @@ fsync(int fd)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int
|
void
|
||||||
sync(void)
|
sync(void)
|
||||||
{
|
{
|
||||||
int status = _kern_sync();
|
_kern_sync();
|
||||||
if (status < 0) {
|
|
||||||
__set_errno(status);
|
|
||||||
status = -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
return status;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user