]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Restore the API of the kf_sa_local and kf_sa_peer members.
authorjhb <jhb@FreeBSD.org>
Mon, 24 Sep 2018 18:20:38 +0000 (18:20 +0000)
committerjhb <jhb@FreeBSD.org>
Mon, 24 Sep 2018 18:20:38 +0000 (18:20 +0000)
commit82dcbd5dab0743c1b1b9b0d9d79b3a0fb55fc1fe
tree35648e4640e62c55acc5a7b9c1da948f5ee009b0
parent7815615253ce48bfdff26eb260391e078a55a402
Restore the API of the kf_sa_local and kf_sa_peer members.

In 11.x and earlier these were accessible as direct members of 'struct
kinfo_file'.  Existing code already knows about the new location of
these members as well, so wrapper macros did not work for these
fields.  Instead, define an anonymous struct containing the fields
from 'struct kinfo_file' in FreeBSD 11 that were not part of the
'kf_un' union.  This anonymous struct is then placed in an anonymous
union along with the new 'kf_un' union.  This preserves the API of
both structure layouts without requiring any wrapper macros.

PR: 231525
Reviewed by: kib
Approved by: re (gjb)
Differential Revision: https://reviews.freebsd.org/D17262
sys/sys/user.h