]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
syscalls: normalize exit
authorBrooks Davis <brooks@FreeBSD.org>
Mon, 29 Nov 2021 22:03:00 +0000 (22:03 +0000)
committerBrooks Davis <brooks@FreeBSD.org>
Mon, 29 Nov 2021 22:04:43 +0000 (22:04 +0000)
commitcffb55f0f37c5bddd1d203bfbe281bea8ab62cda
tree30be682b5455642a2236d7b9067cdb61dcb82973
parent7fb006e7d61e9883344dfb20b277c3c015ab67b1
syscalls: normalize exit

Declare the exit system call normally.  This results in the
implementation being named sys_exit rather than sys_sys_exit and
being decalred as returning an int.  Infact it does not return
at all because exit1 does not, so add an __unreachable() to let the
compiler know that.

Reviewed by: kib, imp
sys/kern/kern_exit.c
sys/kern/syscalls.master