aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/syscalls.master
diff options
context:
space:
mode:
authorMatthew D Fleming <mdf@FreeBSD.org>2011-04-18 16:32:22 +0000
committerMatthew D Fleming <mdf@FreeBSD.org>2011-04-18 16:32:22 +0000
commitd91f88f7f38078ac6dd4b0f0e77470d605d1518e (patch)
tree99ab3d40a9311d51c78c3b3e6b880d6ba7d2560c /sys/kern/syscalls.master
parentfe51d6c1d1917c1f168b85c590d7d0dac36d4a87 (diff)
downloadsrc-d91f88f7f38078ac6dd4b0f0e77470d605d1518e.tar.gz
src-d91f88f7f38078ac6dd4b0f0e77470d605d1518e.zip
Add the posix_fallocate(2) syscall. The default implementation in
vop_stdallocate() is filesystem agnostic and will run as slow as a read/write loop in userspace; however, it serves to correctly implement the functionality for filesystems that do not implement a VOP_ALLOCATE. Note that __FreeBSD_version was already bumped today to 900036 for any ports which would like to use this function. Also reserve space in the syscall table for posix_fadvise(2). Reviewed by: -arch (previous version)
Notes
Notes: svn path=/head/; revision=220791
Diffstat (limited to 'sys/kern/syscalls.master')
-rw-r--r--sys/kern/syscalls.master3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master
index e20973184a68..af958c956c83 100644
--- a/sys/kern/syscalls.master
+++ b/sys/kern/syscalls.master
@@ -944,5 +944,8 @@
529 AUE_NULL STD { int rctl_remove_rule(const void *inbufp, \
size_t inbuflen, void *outbufp, \
size_t outbuflen); }
+530 AUE_NULL STD { int posix_fallocate(int fd, \
+ off_t offset, off_t len); }
+531 AUE_NULL UNIMPL posix_fadvise
; Please copy any additions and changes to the following compatability tables:
; sys/compat/freebsd32/syscalls.master