]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Document varadic args as int, since you can't have short varadic args (they are
authorimp <imp@FreeBSD.org>
Fri, 27 Sep 2019 16:11:47 +0000 (16:11 +0000)
committerimp <imp@FreeBSD.org>
Fri, 27 Sep 2019 16:11:47 +0000 (16:11 +0000)
commit31c0d05e04cdf81651ba339ef07879d1dc2799fe
tree5bf9cb43b790beb3ae427808e0e3b5356bdb1fe3
parent8dec6dcec56f0c4e80b33b87dd0f972f0c08dc39
Document varadic args as int, since you can't have short varadic args (they are
promoted to ints).

- `mode_t` is `uint16_t` (`sys/sys/_types.h`)
- `openat` takes variadic args
- variadic args cannot be 16-bit, and indeed the code uses int
- the manpage currently kinda implies the argument is 16-bit by saying `mode_t`

Prompted by Rust things: https://github.com/tailhook/openat/issues/21
Submitted by: Greg V at unrelenting
Differential Revision: https://reviews.freebsd.org/D21816
lib/libc/sys/mq_open.2
lib/libc/sys/open.2