diff options
author | jhb <jhb@FreeBSD.org> | 2017-01-09 00:09:19 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2017-01-09 00:09:19 +0000 |
commit | 44b120a071de01b874fb6d5ebb58459558d1d1f9 (patch) | |
tree | 3d185aad3958c9a044187d23e83b7acf2daf102c /contrib/diff/lib/exit.h | |
parent | 7cd474d3812c8f523e8024df5303a51d9ff52ba8 (diff) | |
download | FreeBSD-src-44b120a071de01b874fb6d5ebb58459558d1d1f9.zip FreeBSD-src-44b120a071de01b874fb6d5ebb58459558d1d1f9.tar.gz |
MFC 306564: Expose kernel-only errno values if _WANT_KERNEL_ERRNO is defined.
The kernel uses a few negative errno values for internal conditions
such as requesting a system call restart. Normally these errno values
are not exposed to userland. However, kdump needs access to these
values as some of then can be present in a ktrace system call return
record. Previously kdump was defining _KERNEL to gain access to ehse
values, but was then having to manually declare 'errno' (and doing it
incorrectly). Now, kdump uses _WANT_KERNEL_ERRNO instead of _KERNEL
and uses the system-provided declaration of errno.
Diffstat (limited to 'contrib/diff/lib/exit.h')
0 files changed, 0 insertions, 0 deletions