Page MenuHomeFreeBSD

Guard offsetof
AbandonedPublic

Authored by cy on Oct 14 2017, 7:41 AM.
Tags
None
Referenced Files
F140881173: D12667.id33978.diff
Mon, Dec 29, 5:23 AM
Unknown Object (File)
Mon, Dec 1, 10:44 AM
Unknown Object (File)
Nov 21 2025, 12:41 AM
Unknown Object (File)
Nov 21 2025, 12:40 AM
Unknown Object (File)
Nov 21 2025, 12:34 AM
Unknown Object (File)
Nov 15 2025, 12:43 PM
Unknown Object (File)
Nov 15 2025, 11:27 AM
Unknown Object (File)
Nov 15 2025, 3:22 AM
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