Page MenuHomeFreeBSD

Guard offsetof
AbandonedPublic

Authored by cy on Oct 14 2017, 7:41 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 10, 9:35 AM
Unknown Object (File)
Fri, May 10, 3:27 AM
Unknown Object (File)
Thu, May 9, 5:55 PM
Unknown Object (File)
Dec 23 2023, 2:05 AM
Unknown Object (File)
Dec 13 2023, 3:41 PM
Unknown Object (File)
Sep 24 2023, 2:35 PM
Unknown Object (File)
Aug 29 2023, 10:52 PM
Unknown Object (File)
Aug 16 2023, 3:00 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