libc: separate syscall and non-syscall symbols

Put declerations of _ and __sys_ prefixed stubs at the top and
everything else at the bottom.  Sort the bottom list with sort(1).
This paves the way to generate the syscall symbol list.

Reviewed by:	kib
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D43386
This commit is contained in:
Brooks Davis 2024-01-11 18:27:20 +00:00
parent 6597ea4481
commit e2417a21a0

View file

@ -425,6 +425,7 @@ FBSD_1.7 {
}; };
FBSDprivate_1.0 { FBSDprivate_1.0 {
/* System call stubs */
___acl_aclcheck_fd; ___acl_aclcheck_fd;
__sys___acl_aclcheck_fd; __sys___acl_aclcheck_fd;
___acl_aclcheck_file; ___acl_aclcheck_file;
@ -536,8 +537,12 @@ FBSDprivate_1.0 {
__sys_connect; __sys_connect;
_cpuset; _cpuset;
__sys_cpuset; __sys_cpuset;
_cpuset_getdomain;
__sys_cpuset_getdomain;
_cpuset_getid; _cpuset_getid;
__sys_cpuset_getid; __sys_cpuset_getid;
_cpuset_setdomain;
__sys_cpuset_setdomain;
_cpuset_setid; _cpuset_setid;
__sys_cpuset_setid; __sys_cpuset_setid;
_cpuset_getaffinity; _cpuset_getaffinity;
@ -966,7 +971,6 @@ FBSDprivate_1.0 {
_sigtimedwait; _sigtimedwait;
__sys_sigtimedwait; __sys_sigtimedwait;
_sigwait; _sigwait;
__sigwait;
__sys_sigwait; __sys_sigwait;
_sigwaitinfo; _sigwaitinfo;
__sys_sigwaitinfo; __sys_sigwaitinfo;
@ -1040,14 +1044,13 @@ FBSDprivate_1.0 {
__sys_write; __sys_write;
_writev; _writev;
__sys_writev; __sys_writev;
__set_error_selector;
nlm_syscall; /* Things that aren't system calls (in sort(1) order) */
gssd_syscall;
__libc_interposing_slot; __libc_interposing_slot;
__libc_sigwait; __libc_sigwait;
_cpuset_getdomain; __set_error_selector;
__sys_cpuset_getdomain; __sigwait;
_cpuset_setdomain; gssd_syscall;
__sys_cpuset_setdomain; nlm_syscall;
rpctls_syscall; rpctls_syscall;
}; };