]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Revert the mode_t -> int changes and add a warning in the BUGS section instead.
authorimp <imp@FreeBSD.org>
Sat, 28 Sep 2019 17:15:48 +0000 (17:15 +0000)
committerimp <imp@FreeBSD.org>
Sat, 28 Sep 2019 17:15:48 +0000 (17:15 +0000)
commit075dc1b3fb693bf3076f03c87ce315b6328beee4
treed8cbbe49b310395112e6f31d6d902eee3f5a0ea8
parent0b490330a336d93791d0435688aea001673e93c4
Revert the mode_t -> int changes and add a warning in the BUGS section instead.

While FreeBSD's implementation of these expect an int inside of libc, that's an
implementation detail that we can hide from the user as it's the natural
promotion of the current mode_t type and before it is used in the kernel, it's
converted back to the narrower type that's the current definition of mode_t. As
such, documenting int is at best confusing and at worst misleading. Instead add
a note that these args are variadic and as such calling conventions may differ
from non-variadic arguments.
lib/libc/sys/mq_open.2
lib/libc/sys/open.2