Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Import fallocate in sys/linux/fcntl.d #1344

Merged
merged 1 commit into from Aug 23, 2015
Merged

Import fallocate in sys/linux/fcntl.d #1344

merged 1 commit into from Aug 23, 2015

Conversation

mrkline
Copy link
Contributor

@mrkline mrkline commented Aug 14, 2015

This adds prototypes for posix_fallocate (which was present but commented out) and the linux-specific fallocate (http://man7.org/linux/man-pages/man2/fallocate.2.html).


// Linux-specific fallocate
// (http://man7.org/linux/man-pages/man2/fallocate.2.html)
version( linux ) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this go into core.sys.linux.fcntl instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe you're right.

@mrkline mrkline changed the title Import fallocate in sys/posix/fcntl.d Import fallocate in sys/linux/fcntl.d Aug 14, 2015
@DmitryOlshansky
Copy link
Member

Please squash commits, otherwise LGTM

This adds prototypes for posix_fallocate (which was present but
commented out) and the linux-specific fallocate
(http://man7.org/linux/man-pages/man2/fallocate.2.html).
@mrkline
Copy link
Contributor Author

mrkline commented Aug 23, 2015

@DmitryOlshansky Done.

@DmitryOlshansky
Copy link
Member

Auto-merge toggled on

DmitryOlshansky added a commit that referenced this pull request Aug 23, 2015
Import fallocate in sys/linux/fcntl.d
@DmitryOlshansky DmitryOlshansky merged commit 3128c9c into dlang:master Aug 23, 2015
@mrkline mrkline deleted the import-fallocate branch March 24, 2016 23:45
burner pushed a commit to burner/druntime that referenced this pull request Jan 15, 2017
Pull dlang#1344 placed them with fallocate. While the three are often
used in conjunction, SEEK_DATA and SEEK_HOLE are from Linux's
unistd.h, to be used with lseek.
See http://man7.org/linux/man-pages/man2/lseek.2.html
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants