Skip to content

Commit f5a460c

Browse files
authored
Merge pull request #731 from fjtrujy/fsync_return
Return an error for `fsync` as it is not implemented
2 parents 5adf42b + d833c73 commit f5a460c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ee/libcglue/src/glue.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1146,8 +1146,8 @@ long fpathconf(int fd, int name)
11461146

11471147
#ifdef F_fsync
11481148
int fsync(int fd) {
1149-
// TODO: implement in terms of sync
1150-
return 0;
1149+
errno = ENOSYS;
1150+
return -1; /* not supported */
11511151
}
11521152
#endif
11531153

0 commit comments

Comments
 (0)