Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing posix_fallocate in uClibc Linux environment #36

Open
operutka opened this issue Oct 16, 2020 · 0 comments · May be fixed by #37
Open

Missing posix_fallocate in uClibc Linux environment #36

operutka opened this issue Oct 16, 2020 · 0 comments · May be fixed by #37

Comments

@operutka
Copy link

Hi! Recently, I stumbled upon this problem:

error[E0425]: cannot find function `posix_fallocate` in crate `libc`
   --> /home/operutka/.cargo/registry/src/github.com-1ecc6299db9ec823/fs2-0.4.3/src/unix.rs:103:30
    |
103 |     let ret = unsafe { libc::posix_fallocate(file.as_raw_fd(), 0, len as libc::off_t) };
    |                              ^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `SYS_fallocate`
    | 
   ::: /home/operutka/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.71/src/unix/uclibc/arm/mod.rs:924:1

When trying to build my project for a uClibc based Linux environment. Apparently, uClibc does not have the posix_fallocate function. Is there any easy way around this?

@operutka operutka linked a pull request Oct 19, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant