aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/syscalls.master
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2018-11-09 21:01:16 +0000
committerBrooks Davis <brooks@FreeBSD.org>2018-11-09 21:01:16 +0000
commit9a38df59e98c6d3cfd2b34f460cd90c337d1913f (patch)
tree8534f72520a9705d69cb4697a6cbcb69dbee0d2d /sys/kern/syscalls.master
parentc4698dec73a4a95ae8649be552485e874758346c (diff)
downloadsrc-9a38df59e98c6d3cfd2b34f460cd90c337d1913f.tar.gz
src-9a38df59e98c6d3cfd2b34f460cd90c337d1913f.zip
Fix freebsd32 mknod(at).
As dev_t is now a 64-bit integer, it requires special handling as a system call argument. 64-bit arguments are split between two 64-bit integers due to the way arguments are promoted to allow reuse of most system call implementations. They must be reassembled before use. Further, 64-bit arguments at an odd offset (counting from zero) are padded and slid to the next slot on powerpc and mips. Fix the non-COMPAT11 system call by adding a freebsd32_mknodat() and appropriately padded declerations. The COMPAT11 system calls are fully compatible with the 64-bit implementations so remove the freebsd32_ versions. Use uint32_t consistently as the type of the old dev_t. This matches the old definition. Reviewed by: kib MFC after: 3 days Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D17928
Notes
Notes: svn path=/head/; revision=340302
Diffstat (limited to 'sys/kern/syscalls.master')
-rw-r--r--sys/kern/syscalls.master2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master
index 3756bf5c797c..384f297dac27 100644
--- a/sys/kern/syscalls.master
+++ b/sys/kern/syscalls.master
@@ -163,7 +163,7 @@
int mknod(
_In_z_ const char *path,
int mode,
- int dev
+ uint32_t dev
);
}
15 AUE_CHMOD STD {