]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC 306564: Expose kernel-only errno values if _WANT_KERNEL_ERRNO is defined.
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 9 Jan 2017 00:09:19 +0000 (00:09 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 9 Jan 2017 00:09:19 +0000 (00:09 +0000)
commit0256bf26068688ccabda9a55524335449fc32250
tree3d185aad3958c9a044187d23e83b7acf2daf102c
parentf9d89bf67871e1de1e88200606ca918106fb2921
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.

git-svn-id: svn://svn.freebsd.org/base/stable/10@311708 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/sys/errno.h
usr.bin/kdump/kdump.c