Page MenuHomeFreeBSD

Guard offsetof
AbandonedPublic

Authored by cy on Oct 14 2017, 7:41 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 28, 11:26 PM
Unknown Object (File)
Tue, Apr 28, 11:20 PM
Unknown Object (File)
Tue, Apr 28, 10:20 PM
Unknown Object (File)
Tue, Apr 28, 10:11 PM
Unknown Object (File)
Apr 15 2026, 1:51 AM
Unknown Object (File)
Apr 13 2026, 6:48 PM
Unknown Object (File)
Apr 11 2026, 11:24 AM
Unknown Object (File)
Apr 7 2026, 7:46 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