Menu

- Learn
- Documentation
  - Language Reference
  - Library Reference
  - Command-line Reference
  - Feature Overview
  - Articles
- Downloads
- Packages
- Community
  - Blog
  - Orgs using D
  - Twitter
  - Forums
  - IRC
  - Community Discord
  - Wiki
  - GitHub
  - Issues
  - Get involved
  - Contributors
  - Foundation
  - Security Team
  - Donate
  - Sponsors
- Resources
  - Tour
  - Books
  - Tutorials
  - Tools
  - Editors
  - IDEs
  - run.dlang.io
  - Visual D
  - Acknowledgments
  - D Style
  - Glossary
  - Sitemap

Search
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.

# core.sys.linux.fcntl

`FALLOC_FL_KEEP_SIZE`
  Allocates and initializes to zero the disk space within the specified range, but the file size will not be modified.
`FALLOC_FL_PUNCH_HOLE`
  Deallocates space (i.e. creates a hole)
`FALLOC_FL_NO_HIDE_STALE`
  Newly allocated blocks will be marked as initialized.
`FALLOC_FL_COLLAPSE_RANGE`
  Removes a byte range from a file, without leaving a hole
`FALLOC_FL_ZERO_RANGE`
  Zeroes space in the specified byte range
`FALLOC_FL_INSERT_RANGE`
  Increases the file space by inserting a hole without overwriting any existing data
`FALLOC_FL_UNSHARE_RANGE`
  Used to unshare shared blocks within the file size without overwriting any existing data
`F_OFD_GETLK`
  Queries the system if the lock could be placed
`F_OFD_SETLK`
  Acquires or releases an open file description lock
`F_OFD_SETLKW`
  Same as F_OFD_SETLK, but waits if a conflicting lock is held on the file

Copyright © 1999-2023 by the D Language Foundation | Page generated by Ddoc on Sat Jul 15 12:03:24 2023