… | |
… | |
949 | * call fdatasync, as that matches the expectation of its users best */ |
949 | * call fdatasync, as that matches the expectation of its users best */ |
950 | return fdatasync (fd); |
950 | return fdatasync (fd); |
951 | } |
951 | } |
952 | |
952 | |
953 | static int |
953 | static int |
954 | eio__fallocate (int fd, int mode, off_t offset, size_t nbytes) |
954 | eio__fallocate (int fd, int mode, off_t offset, size_t len) |
955 | { |
955 | { |
956 | #if HAVE_FALLOCATE |
956 | #if HAVE_FALLOCATE |
957 | return fallocate (fd, offset, nbytes, flags); |
957 | return fallocate (fd, mode, offset, len); |
958 | #else |
958 | #else |
959 | errno = ENOSYS; |
959 | errno = ENOSYS; |
960 | return -1; |
960 | return -1; |
961 | #endif |
961 | #endif |
962 | } |
962 | } |