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)
Feb 17 2024, 12:06 AM
Unknown Object (File)
Feb 16 2024, 8:05 PM
Unknown Object (File)
Jan 12 2024, 12:28 PM
Unknown Object (File)
Jan 10 2024, 1:33 AM
Unknown Object (File)
Dec 27 2023, 9:23 AM
Unknown Object (File)
Dec 15 2023, 6:21 AM
Unknown Object (File)
Dec 14 2023, 9:09 PM
Unknown Object (File)
Dec 11 2023, 4:52 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