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)
Oct 12 2024, 9:38 AM
Unknown Object (File)
Oct 6 2024, 12:39 PM
Unknown Object (File)
Oct 6 2024, 8:32 AM
Unknown Object (File)
Oct 5 2024, 8:24 PM
Unknown Object (File)
Oct 5 2024, 7:47 PM
Unknown Object (File)
Sep 23 2024, 5:52 PM
Unknown Object (File)
Sep 20 2024, 11:55 PM
Unknown Object (File)
Sep 9 2024, 1:35 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