Skip to main content

Module to expose posix_fallocate(3), posix_fadvise(3) and fallocate(2)

Project description

fallocate exposes an interface to fallocate(2), posix_fallocate(3) and posix_fadvise(3).

Under Mac OS X the fallocate() method will use the apple equivalent of fallocate(2). Note that this might not be exactly the same.

When using the wrapper functions around the fallocate(2) call, this is the default, the arguments given to the function are slightly different then the c call.

This module has the arguments like:

fallocate(fd, offset, length, mode=0)

While in C the function looks like:

fallocate(fd, mode, offset, length)

The main reason for this is that the mode argument tends not to be used much and thus having the default as a keyword argument is much easier then having to specify 0 everytime.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fallocate-1.0.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file fallocate-1.0.tar.gz.

File metadata

  • Download URL: fallocate-1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for fallocate-1.0.tar.gz
Algorithm Hash digest
SHA256 bfacb9e47f62c3eb4f037056ead920dae6bfc35f0d5a47ccf8720cf25bd87e44
MD5 a5f1031f9c701bdbc35954dfb78e76d1
BLAKE2b-256 1fc430e474036bc7728da3c7298b94d87b83aa1d5c06667c4c5ce87bcf5b8469

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page