Page MenuHomeFreeBSD

Guard offsetof
AbandonedPublic

Authored by cy on Oct 14 2017, 7:41 AM.
Tags
None
Referenced Files
F171634499: D12667.diff
Sat, Sep 12, 8:09 AM
Unknown Object (File)
Sun, Sep 6, 12:56 AM
Unknown Object (File)
Sat, Sep 5, 4:36 PM
Unknown Object (File)
Sat, Sep 5, 9:58 AM
Unknown Object (File)
Sat, Sep 5, 2:16 AM
Unknown Object (File)
Fri, Sep 4, 7:08 PM
Unknown Object (File)
Thu, Sep 3, 11:32 PM
Unknown Object (File)
Wed, Sep 2, 6:04 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