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
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 vfsent 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/ptyvar.h sys/synch.h sys/fork.h sys/sockio.h sys/ioccom.h sys/tty.h \
50 sys/trap.h sys/sysconfig.h sys/ptms.h sys/stack.h sys/regset.h sys/fault.h \
51 sys/reg.h sys/siginfo.h sys/types32.h sys/isa_defs.h sys/int_types.h \
52 sys/inttypes.h sys/atomic.h sys/machtypes.h sys/elf.h sys/mkdev.h
53 sysdep_headers += rtld_db.h pcsample.h atomic.h bits/machtypes.h
54 headers := $(filter-out sys/sysinfo.h sys/swap.h, $(headers))
57 ifeq ($(subdir),dirent)
58 sysdep_routines += sys_getdents sys_getdents64
62 sysdep_routines += _link_aton _link_ntoa
63 headers := $(filter-out netinet/if_ether.h, $(headers))
66 ifeq ($(subdir),posix)
67 sysdep_routines += exit-thread schedP
70 ifeq ($(subdir),resource)
71 sysdep_routines += priocntl getvmusage
72 sysdep_routines += sys_rusagesys sys_priocntlsys sys_rctlsys
75 ifeq ($(subdir),signal)
76 sysdep_routines += sys_lwp_sigmask sys_sigqueue sys_sigtimedwait \
80 ifeq ($(subdir),socket)
81 sysdep_routines += cmsg_nxthdr sa_len
82 sysdep_routines += netmask
83 headers := $(filter-out sys/socketvar.h, $(headers))
87 sysdep_routines += ntp_adjtime ntp_gettime sys_time sys_stime
88 sysdep_headers += sys/timex.h sys/time_impl.h
91 ifeq ($(subdir),termios)
92 sysdep_headers += termio.h
93 sysdep_headers += sys/termio.h
97 # Additional sysdeps for ld.so
100 sysdep-rtld-routines += _sysconfig
104 libnsl-routines += nsl_misc
108 databases += audit_user auth_attr bootparams exec_attr netmasks printers \
109 prof_attr project user_attr
110 CFLAGS-files-audit_user.c = -Inss_files
111 CFLAGS-files-auth_attr.c = -Inss_files
112 CFLAGS-files-bootparams.c = -Inss_files
113 CFLAGS-files-exec_attr.c = -Inss_files
114 CFLAGS-files-netmasks.c = -Inss_files
115 CFLAGS-files-printers.c = -Inss_files
116 CFLAGS-files-prof_attr.c = -Inss_files
117 CFLAGS-files-project.c = -Inss_files
118 CFLAGS-files-user_attr.c = -Inss_files
121 ifeq ($(subdir),nptl)
122 libpthread-sysdep_routines += sys_fcntl sys_fdsync sys_sigaction sys_open \
123 sys_open64 sys_priocntlsys schedP priocntl syscall
126 ifeq ($(subdir),nptl_db)
127 sysdep_headers += proc_service.h
130 ifeq ($(subdir),resolv)
131 libresolv-routines += sys_sigqueue
135 librt-routines += sys_sigqueue
138 CFLAGS-accept.c = -fexceptions -fasynchronous-unwind-tables
139 CFLAGS-connect.c = -fexceptions -fasynchronous-unwind-tables
140 CFLAGS-fsync.c = -fexceptions -fasynchronous-unwind-tables
141 CFLAGS-fdatasync.c = -fexceptions -fasynchronous-unwind-tables
142 CFLAGS-fsync.c = -fexceptions -fasynchronous-unwind-tables
143 CFLAGS-msgrcv.c = -fexceptions -fasynchronous-unwind-tables
144 CFLAGS-msync.c = -fexceptions -fasynchronous-unwind-tables
145 CFLAGS-open.c = -fexceptions -fasynchronous-unwind-tables
146 CFLAGS-open64.c = -fexceptions -fasynchronous-unwind-tables
147 CFLAGS-openat.c = -fexceptions -fasynchronous-unwind-tables
148 CFLAGS-openat64.c = -fexceptions -fasynchronous-unwind-tables
149 CFLAGS-recvmsg.c = -fexceptions -fasynchronous-unwind-tables
150 CFLAGS-pselect.c = -fexceptions -fasynchronous-unwind-tables
151 CFLAGS-select.c = -fexceptions -fasynchronous-unwind-tables
152 CFLAGS-send.c = -fexceptions -fasynchronous-unwind-tables
153 CFLAGS-sendmsg.c = -fexceptions -fasynchronous-unwind-tables
154 CFLAGS-sendto.c = -fexceptions -fasynchronous-unwind-tables
155 CFLAGS-tcdrain.c = -fexceptions -fasynchronous-unwind-tables