Page MenuHomeFreeBSD

openat(2), mq_open(2): do not refer to mode_t for variadic arguments
ClosedPublic

Authored by val_packett.cool on Sep 27 2019, 12:25 PM.
Referenced Files
Unknown Object (File)
Thu, Jul 30, 11:19 AM
Unknown Object (File)
Sat, Jul 25, 1:17 PM
Unknown Object (File)
Fri, Jul 24, 12:39 PM
Unknown Object (File)
Thu, Jul 23, 12:54 AM
Unknown Object (File)
Tue, Jul 21, 12:57 PM
Unknown Object (File)
Jul 3 2026, 3:06 AM
Unknown Object (File)
Jun 23 2026, 9:58 AM
Unknown Object (File)
Jun 22 2026, 5:11 AM
Subscribers

Details

Summary
  • 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

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable