2 # additional routines and headers for libc
6 sysdep_routines += errno-loc
10 sysdep_routines += sys_open sys_open64 sys_openat sys_openat64 \
11 sys_fstat sys_fstat64 sys_fstatat sys_fstatat64 sys_lstat \
12 sys_lstat64 sys_stat sys_stat64 sys_sendfilev sys_sendfilev64 \
13 sys_getcwd sys_pipe sys_mknod sys_access sys_accessat
14 headers := $(filter-out sys/vfs.h, $(headers))
18 sysdep_routines += gethrtime mount umount umount2 systeminfo resolvepath \
19 getpagesizes memcntl meminfo uadmin getpflags setpflags issetugid ucred \
20 priv processor_bind processor_info p_online pset_create pset_destroy \
21 pset_assign pset_info pset_bind pset_getloadavg pset_list pset_setattr \
22 pset_getattr swapctl getustack setustack gethrvtime uucopy uucopystr \
23 zone_add_datalink zone_boot zone_check_datalink zone_destroy zone_enter \
24 zone_getattr zone_list zone_list_datalink zone_remove_datalink \
25 zone_setattr zone_shutdown zone_version core_get_default_content \
26 core_get_default_path core_get_global_content core_get_global_path \
27 core_get_options core_get_process_content core_get_process_path \
28 core_set_default_content core_set_default_path core_set_global_content \
29 core_set_global_path core_set_options core_set_process_content \
30 core_set_process_path getacct putacct wracct sysfs acct allocids \
31 idmap_reg idmap_unreg acctctl pcsample settaskid gettaskid getprojid \
32 utssys zone port sendfilev sendfilev64 sig2str _so_accept _so_bind \
33 _so_connect _so_getpeername _so_getsockname _so_getsockopt _so_listen \
34 _so_recvmsg _so_send _so_sendmsg _so_sendto _so_setsockopt _so_shutdown \
35 _so_socket _so_socketpair _sysconfig rctl atomic door __door_return \
36 getexecname is_system_labeled privP modctl acl facl lltostr ulltostr \
37 _getauthnam _getauthattr deflt _getprofnam _getprofattr _getusernam \
38 _getuserattr _getauuserent _getauusernam _getexecattr vfstab fdwalk \
39 closefrom ipsecalg gethostent sigsendset sigsend stack_getbounds \
40 thr_sighndlrinfo _getexecprof _fgetuserattr priv_str _sbrk_grow_aligned \
41 cftime ascftime inet_ntoa_r
42 sysdep_routines += sys_fdsync sys_brk sys_fcntl sys_utssys sys_lwp_private \
43 sys_uname sys_getloadavg sys_utimes sys_getpeerucred sys_ucred_get \
44 sys_privsys sys_putmsg sys_putpmsg sys_meminfo sys_pset_getloadavg \
45 sys_zone_create sys_allocids sys_settaskid sys_zone_lookup sys_port \
47 sysdep_headers += sys/feature_tests.h sys/dirent.h sys/utime.h sys/machelf.h \
48 sys/systeminfo.h sys/link.h sys/procfs_isa.h sys/ttold.h sys/procset.h \
49 sys/synch.h sys/fork.h sys/sockio.h sys/ioccom.h sys/tty.h sys/priocntl.h \
50 sys/trap.h sys/sysconfig.h sys/ptms.h sys/stack.h sys/regset.h \
51 bits/regset.h sys/priv.h sys/priv_names.h sys/uadmin.h sys/vfstab.h \
52 sys/fault.h sys/door.h sys/mount.h sys/procfs.h sys/old_procfs.h \
53 sys/reg.h sys/siginfo.h sys/types32.h sys/isa_defs.h sys/int_types.h \
54 sys/inttypes.h sys/atomic.h sys/machtypes.h sys/elf.h sys/mkdev.h \
55 sys/klog.h sys/zone.h sys/processor.h sys/pset.h sys/rctl.h sys/task.h \
56 sys/exacct.h sys/acct.h sys/acctctl.h sys/utssys.h sys/corectl.h \
57 sys/port.h sys/acl.h sys/tsol/label.h sys/loadavg.h sys/fsid.h sys/fstyp.h
58 sysdep_headers += rtld_db.h pcsample.h atomic.h bits/machtypes.h door.h \
59 ucred.h priv.h zone.h port.h deflt.h procfs.h rctl.h
60 headers := $(filter-out sys/sysinfo.h sys/xattr.h, $(headers))
63 ifeq ($(subdir),dirent)
64 sysdep_routines += sys_getdents sys_getdents64
68 sysdep_routines += _link_aton _link_ntoa
71 ifeq ($(subdir),posix)
72 sysdep_routines += exit-thread schedP
75 ifeq ($(subdir),resource)
76 sysdep_routines += priocntl getvmusage
77 sysdep_routines += sys_rusagesys sys_priocntlsys sys_rctlsys
80 ifeq ($(subdir),signal)
81 sysdep_routines += sys_lwp_sigmask sys_sigqueue sys_sigtimedwait \
85 ifeq ($(subdir),socket)
86 sysdep_routines += cmsg_nxthdr sa_len
87 sysdep_routines += netmask
88 sysdep_headers += net/if_dl.h
89 headers := $(filter-out sys/socketvar.h, $(headers))
93 sysdep_routines += ntp_adjtime ntp_gettime sys_time sys_stime
94 sysdep_headers += sys/timex.h sys/time_impl.h
97 ifeq ($(subdir),termios)
98 sysdep_headers += termio.h
99 sysdep_headers += sys/termio.h
103 # Additional sysdeps for ld.so
106 sysdep-rtld-routines += _sysconfig
110 databases += audit_user auth_attr bootparams exec_attr netmasks printers \
111 prof_attr project user_attr
112 CFLAGS-files-audit_user.c = -Inss_files
113 CFLAGS-files-auth_attr.c = -Inss_files
114 CFLAGS-files-bootparams.c = -Inss_files
115 CFLAGS-files-exec_attr.c = -Inss_files
116 CFLAGS-files-netmasks.c = -Inss_files
117 CFLAGS-files-printers.c = -Inss_files
118 CFLAGS-files-prof_attr.c = -Inss_files
119 CFLAGS-files-project.c = -Inss_files
120 CFLAGS-files-user_attr.c = -Inss_files
123 ifeq ($(subdir),nptl)
124 libpthread-sysdep_routines += sys_fcntl sys_fdsync sys_sigaction sys_open \
125 sys_open64 sys_priocntlsys schedP priocntl syscall
128 ifeq ($(subdir),nptl_db)
129 sysdep_headers += proc_service.h
132 ifeq ($(subdir),resolv)
133 libresolv-routines += sys_sigqueue
137 librt-routines += sys_sigqueue
140 CFLAGS-accept.c = -fexceptions -fasynchronous-unwind-tables
141 CFLAGS-connect.c = -fexceptions -fasynchronous-unwind-tables
142 CFLAGS-fsync.c = -fexceptions -fasynchronous-unwind-tables
143 CFLAGS-fdatasync.c = -fexceptions -fasynchronous-unwind-tables
144 CFLAGS-fsync.c = -fexceptions -fasynchronous-unwind-tables
145 CFLAGS-msgrcv.c = -fexceptions -fasynchronous-unwind-tables
146 CFLAGS-msync.c = -fexceptions -fasynchronous-unwind-tables
147 CFLAGS-open.c = -fexceptions -fasynchronous-unwind-tables
148 CFLAGS-open64.c = -fexceptions -fasynchronous-unwind-tables
149 CFLAGS-openat.c = -fexceptions -fasynchronous-unwind-tables
150 CFLAGS-openat64.c = -fexceptions -fasynchronous-unwind-tables
151 CFLAGS-recvmsg.c = -fexceptions -fasynchronous-unwind-tables
152 CFLAGS-pselect.c = -fexceptions -fasynchronous-unwind-tables
153 CFLAGS-select.c = -fexceptions -fasynchronous-unwind-tables
154 CFLAGS-send.c = -fexceptions -fasynchronous-unwind-tables
155 CFLAGS-sendmsg.c = -fexceptions -fasynchronous-unwind-tables
156 CFLAGS-sendto.c = -fexceptions -fasynchronous-unwind-tables
157 CFLAGS-tcdrain.c = -fexceptions -fasynchronous-unwind-tables