Page MenuHomeFreeBSD

Guard offsetof
AbandonedPublic

Authored by cy on Oct 14 2017, 7:41 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 15, 1:51 AM
Unknown Object (File)
Mon, Apr 13, 6:48 PM
Unknown Object (File)
Sat, Apr 11, 11:24 AM
Unknown Object (File)
Tue, Apr 7, 7:46 PM
Unknown Object (File)
Tue, Apr 7, 1:22 AM
Unknown Object (File)
Sun, Apr 5, 1:26 PM
Unknown Object (File)
Sat, Apr 4, 5:44 AM
Unknown Object (File)
Mar 25 2026, 4:02 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