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)
Wed, Dec 24, 6:25 PM
Unknown Object (File)
Tue, Dec 23, 12:07 AM
Unknown Object (File)
Sun, Dec 21, 11:14 PM
Unknown Object (File)
Wed, Dec 17, 2:48 PM
Unknown Object (File)
Fri, Dec 12, 8:27 PM
Unknown Object (File)
Oct 16 2025, 1:05 PM
Unknown Object (File)
Oct 16 2025, 1:05 PM
Unknown Object (File)
Oct 16 2025, 1:05 PM
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