Page MenuHomeFreeBSD

Guard offsetof
AbandonedPublic

Authored by cy on Oct 14 2017, 7:41 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Aug 1, 1:58 AM
Unknown Object (File)
Fri, Jul 31, 8:36 PM
Unknown Object (File)
Sat, Jul 25, 3:59 PM
Unknown Object (File)
Jun 26 2026, 6:33 AM
Unknown Object (File)
Apr 28 2026, 11:26 PM
Unknown Object (File)
Apr 28 2026, 11:20 PM
Unknown Object (File)
Apr 28 2026, 10:20 PM
Unknown Object (File)
Apr 28 2026, 10:11 PM
Subscribers

Details

Summary

While implementing a gets_s(3) libc function, which requires rsize_t from stddef.h, offsetof from sys/stddef.h conflicts with the one in stddef.h. This diff proposes to add a guard around offsetof similar to the ptrdiff_t guard implemented by r221476 and r270277

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 12042