xref: /freebsd/lib/libc/gen/Makefile.inc (revision 245ff4c4b2c2728674121a5d9736a5e079bd00b2)
158f0484fSRodney W. Grimes# machine-independent gen sources
245a13fd8SBaptiste Daroussin.PATH: ${LIBC_SRCTOP}/${LIBC_ARCH}/gen ${LIBC_SRCTOP}/gen ${SRCTOP}/etc
358f0484fSRodney W. Grimes
4871b6b10SBrad DavisCONFS+=	group master.passwd shells
5871b6b10SBrad DavisCONFSMODE_master.passwd=	600
6034a4717SEmmanuel VadotCONFSPACKAGE=   runtime
7a0a1ffcbSBrad Davis
810f1b536SBrooks DavisSRCS+= \
98495e8b1SKonstantin Belousov	__pthread_mutex_init_calloc_cb_stub.c \
101f2ce2a0SPawel Jakub Dawidek	__xuname.c \
118271d9b9SKonstantin Belousov	_once_stub.c \
121f2ce2a0SPawel Jakub Dawidek	_pthread_stubs.c \
131f2ce2a0SPawel Jakub Dawidek	_rand48.c \
141f2ce2a0SPawel Jakub Dawidek	_spinlock_stub.c \
155bcfe82eSJohn Baldwin	_thread_init.c \
1606cb1c3fSKonstantin Belousov	aio_read2.c \
1706cb1c3fSKonstantin Belousov	aio_write2.c \
181f2ce2a0SPawel Jakub Dawidek	alarm.c \
191f2ce2a0SPawel Jakub Dawidek	arc4random.c \
20c1e80940SXin LI	arc4random-compat.c \
21718863d0SXin LI	arc4random_uniform.c \
221f2ce2a0SPawel Jakub Dawidek	assert.c \
231f2ce2a0SPawel Jakub Dawidek	basename.c \
2434168b28SEd Schouten	basename_compat.c \
25d6f122f4SPawel Jakub Dawidek	cap_sandboxed.c \
261f2ce2a0SPawel Jakub Dawidek	check_utility_compat.c \
271f2ce2a0SPawel Jakub Dawidek	clock.c \
281f2ce2a0SPawel Jakub Dawidek	clock_getcpuclockid.c \
291f2ce2a0SPawel Jakub Dawidek	closedir.c \
301f2ce2a0SPawel Jakub Dawidek	confstr.c \
31e2650af1SStefan Eßer	cpuset_alloc.c \
32e2650af1SStefan Eßer	cpuset_free.c \
331f2ce2a0SPawel Jakub Dawidek	crypt.c \
341f2ce2a0SPawel Jakub Dawidek	ctermid.c \
351f2ce2a0SPawel Jakub Dawidek	daemon.c \
361f2ce2a0SPawel Jakub Dawidek	devname.c \
37371f3da6SJohn Baldwin	devname-compat11.c \
381f2ce2a0SPawel Jakub Dawidek	dirfd.c \
391f2ce2a0SPawel Jakub Dawidek	dirname.c \
40e2f68161SEd Schouten	dirname_compat.c \
411f2ce2a0SPawel Jakub Dawidek	disklabel.c \
421f2ce2a0SPawel Jakub Dawidek	dlfcn.c \
431f2ce2a0SPawel Jakub Dawidek	drand48.c \
4467560dcfSJilles Tjoelker	dup3.c \
451f2ce2a0SPawel Jakub Dawidek	elf_utils.c \
461f2ce2a0SPawel Jakub Dawidek	erand48.c \
471f2ce2a0SPawel Jakub Dawidek	err.c \
481f2ce2a0SPawel Jakub Dawidek	errlst.c \
4944c5db52SKonstantin Belousov	eventfd.c \
501f2ce2a0SPawel Jakub Dawidek	exec.c \
5187385bafSBrooks Davis	exect.c \
521f2ce2a0SPawel Jakub Dawidek	fdevname.c \
53d40daefcSKonstantin Belousov	fdopendir.c \
541f2ce2a0SPawel Jakub Dawidek	feature_present.c \
551f2ce2a0SPawel Jakub Dawidek	fmtcheck.c \
561f2ce2a0SPawel Jakub Dawidek	fmtmsg.c \
571f2ce2a0SPawel Jakub Dawidek	fnmatch.c \
581f2ce2a0SPawel Jakub Dawidek	fpclassify.c \
591f2ce2a0SPawel Jakub Dawidek	frexp.c \
601f2ce2a0SPawel Jakub Dawidek	fstab.c \
611f2ce2a0SPawel Jakub Dawidek	ftok.c \
621f2ce2a0SPawel Jakub Dawidek	fts.c \
63371f3da6SJohn Baldwin	fts-compat.c \
64371f3da6SJohn Baldwin	fts-compat11.c \
651f2ce2a0SPawel Jakub Dawidek	ftw.c \
66371f3da6SJohn Baldwin	ftw-compat11.c \
671f2ce2a0SPawel Jakub Dawidek	getbootfile.c \
681f2ce2a0SPawel Jakub Dawidek	getbsize.c \
691f2ce2a0SPawel Jakub Dawidek	getcap.c \
701f2ce2a0SPawel Jakub Dawidek	getcwd.c \
711f2ce2a0SPawel Jakub Dawidek	getdomainname.c \
72e9ac2743SConrad Meyer	getentropy.c \
731f2ce2a0SPawel Jakub Dawidek	getgrent.c \
741f2ce2a0SPawel Jakub Dawidek	getgrouplist.c \
751f2ce2a0SPawel Jakub Dawidek	gethostname.c \
761f2ce2a0SPawel Jakub Dawidek	getloadavg.c \
771f2ce2a0SPawel Jakub Dawidek	getlogin.c \
781f2ce2a0SPawel Jakub Dawidek	getmntinfo.c \
79371f3da6SJohn Baldwin	getmntinfo-compat11.c \
801f2ce2a0SPawel Jakub Dawidek	getnetgrent.c \
811f2ce2a0SPawel Jakub Dawidek	getosreldate.c \
821f2ce2a0SPawel Jakub Dawidek	getpeereid.c \
831f2ce2a0SPawel Jakub Dawidek	getprogname.c \
841f2ce2a0SPawel Jakub Dawidek	getpwent.c \
851f2ce2a0SPawel Jakub Dawidek	getttyent.c \
861f2ce2a0SPawel Jakub Dawidek	getusershell.c \
871f2ce2a0SPawel Jakub Dawidek	getutxent.c \
881f2ce2a0SPawel Jakub Dawidek	getvfsbyname.c \
891f2ce2a0SPawel Jakub Dawidek	glob.c \
90371f3da6SJohn Baldwin	glob-compat11.c \
911f2ce2a0SPawel Jakub Dawidek	initgroups.c \
92*245ff4c4SMark Johnston	inotify.c \
931f2ce2a0SPawel Jakub Dawidek	isatty.c \
941f2ce2a0SPawel Jakub Dawidek	isinf.c \
951f2ce2a0SPawel Jakub Dawidek	isnan.c \
961f2ce2a0SPawel Jakub Dawidek	jrand48.c \
9754579376SKonstantin Belousov	kqueue1.c \
981f2ce2a0SPawel Jakub Dawidek	lcong48.c \
993e65b9c6SColin Percival	libc_dlopen.c \
100228d8c9eSBrooks Davis	libc_interposing_table.c  \
1011f2ce2a0SPawel Jakub Dawidek	lrand48.c \
102dcc6ef16SKonstantin Belousov	memalign.c \
103c3207e2dSBrooks Davis	memfd_create.c \
1041f2ce2a0SPawel Jakub Dawidek	mrand48.c \
1051f2ce2a0SPawel Jakub Dawidek	nftw.c \
106371f3da6SJohn Baldwin	nftw-compat11.c \
1071f2ce2a0SPawel Jakub Dawidek	nice.c \
1081f2ce2a0SPawel Jakub Dawidek	nlist.c \
1091f2ce2a0SPawel Jakub Dawidek	nrand48.c \
1101f2ce2a0SPawel Jakub Dawidek	opendir.c \
111d40daefcSKonstantin Belousov	opendir2.c \
1121f2ce2a0SPawel Jakub Dawidek	pause.c \
1131f2ce2a0SPawel Jakub Dawidek	pmadvise.c \
1141f2ce2a0SPawel Jakub Dawidek	popen.c \
1151f2ce2a0SPawel Jakub Dawidek	posix_spawn.c \
1161f2ce2a0SPawel Jakub Dawidek	psignal.c \
1171f2ce2a0SPawel Jakub Dawidek	pututxline.c \
1181f2ce2a0SPawel Jakub Dawidek	pw_scan.c \
1191f2ce2a0SPawel Jakub Dawidek	raise.c \
1201f2ce2a0SPawel Jakub Dawidek	readdir.c \
121371f3da6SJohn Baldwin	readdir-compat11.c \
1221f2ce2a0SPawel Jakub Dawidek	readpassphrase.c \
1231f2ce2a0SPawel Jakub Dawidek	rewinddir.c \
1241f2ce2a0SPawel Jakub Dawidek	scandir.c \
125cc321ccdSKonstantin Belousov	scandir_b.c \
126371f3da6SJohn Baldwin	scandir-compat11.c \
12743736b71SKonstantin Belousov	sched_getaffinity.c \
12843736b71SKonstantin Belousov	sched_setaffinity.c \
1291f2ce2a0SPawel Jakub Dawidek	seed48.c \
1301f2ce2a0SPawel Jakub Dawidek	seekdir.c \
1311f2ce2a0SPawel Jakub Dawidek	semctl.c \
1321f2ce2a0SPawel Jakub Dawidek	setdomainname.c \
1331f2ce2a0SPawel Jakub Dawidek	sethostname.c \
1341f2ce2a0SPawel Jakub Dawidek	setjmperr.c \
1351f2ce2a0SPawel Jakub Dawidek	setmode.c \
1361f2ce2a0SPawel Jakub Dawidek	setproctitle.c \
1371f2ce2a0SPawel Jakub Dawidek	setprogname.c \
1383d125671SRicardo Branco	sig2str.c \
1391f2ce2a0SPawel Jakub Dawidek	siginterrupt.c \
1401f2ce2a0SPawel Jakub Dawidek	siglist.c \
1411f2ce2a0SPawel Jakub Dawidek	signal.c \
1421f2ce2a0SPawel Jakub Dawidek	sigsetops.c \
1437d233b22SKonstantin Belousov	sleep.c \
1441f2ce2a0SPawel Jakub Dawidek	srand48.c \
1451f2ce2a0SPawel Jakub Dawidek	statvfs.c \
1461f2ce2a0SPawel Jakub Dawidek	stringlist.c \
1471f2ce2a0SPawel Jakub Dawidek	strtofflags.c \
1481f2ce2a0SPawel Jakub Dawidek	sysconf.c \
1491f2ce2a0SPawel Jakub Dawidek	sysctl.c \
1501f2ce2a0SPawel Jakub Dawidek	sysctlbyname.c \
1511f2ce2a0SPawel Jakub Dawidek	sysctlnametomib.c \
1521f2ce2a0SPawel Jakub Dawidek	syslog.c \
1531f2ce2a0SPawel Jakub Dawidek	telldir.c \
1541f2ce2a0SPawel Jakub Dawidek	termios.c \
1551f2ce2a0SPawel Jakub Dawidek	time.c \
1561f2ce2a0SPawel Jakub Dawidek	times.c \
1577e299411SWarner Losh	timespec_get.c \
1589b5d724cSDag-Erling Smørgrav	timespec_getres.c \
1591f2ce2a0SPawel Jakub Dawidek	timezone.c \
1601f2ce2a0SPawel Jakub Dawidek	tls.c \
1611f2ce2a0SPawel Jakub Dawidek	ttyname.c \
1621f2ce2a0SPawel Jakub Dawidek	ttyslot.c \
1631f2ce2a0SPawel Jakub Dawidek	ualarm.c \
164a56fe703SKonstantin Belousov	uexterr_format.c \
165b9c8a07dSKonstantin Belousov	uexterr_gettext.c \
1661f2ce2a0SPawel Jakub Dawidek	ulimit.c \
1671f2ce2a0SPawel Jakub Dawidek	uname.c \
168371f3da6SJohn Baldwin	unvis-compat.c \
1697d233b22SKonstantin Belousov	usleep.c \
1701f2ce2a0SPawel Jakub Dawidek	utime.c \
1711f2ce2a0SPawel Jakub Dawidek	utxdb.c \
1721f2ce2a0SPawel Jakub Dawidek	valloc.c \
1731f2ce2a0SPawel Jakub Dawidek	wordexp.c
17458f0484fSRodney W. Grimes
17512668eadSDag-Erling Smørgrav.if ${COMPILER_FEATURES:Mblocks}
176f0ac5e91SDag-Erling SmørgravCFLAGS.fts.c= -fblocks
1771e0743f5SBojan NovkovićCFLAGS.glob.c= -fblocks
178f0ac5e91SDag-Erling Smørgrav.endif
179f0ac5e91SDag-Erling Smørgrav
180c1e80940SXin LICFLAGS.arc4random.c= -I${SRCTOP}/sys -I${SRCTOP}/sys/crypto/chacha20
181c1e80940SXin LI
182394cf671SDag-Erling SmørgravCFLAGS.sysconf.c= -I${SRCTOP}/contrib/tzcode
183394cf671SDag-Erling Smørgrav
1847f7489ebSKonstantin BelousovCFLAGS.dlfcn.c= ${RTLD_HDRS}
1857f7489ebSKonstantin BelousovCFLAGS.tls.c= ${RTLD_HDRS}
1867f7489ebSKonstantin Belousov
187d0fd0203SEnji Cooper.PATH: ${SRCTOP}/contrib/libc-pwcache
1884c0d7cdfSBrooks DavisSRCS+=	pwcache.c pwcache.h
1894c0d7cdfSBrooks Davis
190d0fd0203SEnji Cooper.PATH: ${SRCTOP}/contrib/libc-vis
191d0fd0203SEnji CooperCFLAGS+=	-I${SRCTOP}/contrib/libc-vis
1928ccca122SBrooks DavisSRCS+=	unvis.c vis.c
1938ccca122SBrooks Davis
1946232589aSDavid SchultzMISRCS+=modf.c
1956232589aSDavid Schultz
196f4213b90SDavid XuCANCELPOINTS_SRCS=sem.c sem_new.c
197f4213b90SDavid Xu.for src in ${CANCELPOINTS_SRCS}
198f4213b90SDavid XuSRCS+=cancelpoints_${src}
199f4213b90SDavid XuCLEANFILES+=cancelpoints_${src}
200b791fbe6SBryan Drewerycancelpoints_${src}: ${LIBC_SRCTOP}/gen/${src} .NOMETA
201b791fbe6SBryan Drewery	ln -sf ${.ALLSRC} ${.TARGET}
202f4213b90SDavid Xu.endfor
203f4213b90SDavid Xu
2048876613dSMarcel MoolenaarSYM_MAPS+=${LIBC_SRCTOP}/gen/Symbol.map
2056fad3aafSDaniel Eischen
20658f0484fSRodney W. Grimes# machine-dependent gen sources
2078876613dSMarcel Moolenaar.sinclude "${LIBC_SRCTOP}/${LIBC_ARCH}/gen/Makefile.inc"
20858f0484fSRodney W. Grimes
2091f2ce2a0SPawel Jakub DawidekMAN+=	alarm.3 \
2101f2ce2a0SPawel Jakub Dawidek	arc4random.3 \
2111f2ce2a0SPawel Jakub Dawidek	basename.3 \
2126f62d278SPawel Jakub Dawidek	cap_rights_get.3 \
213d6f122f4SPawel Jakub Dawidek	cap_sandboxed.3 \
2141f2ce2a0SPawel Jakub Dawidek	check_utility_compat.3 \
2151f2ce2a0SPawel Jakub Dawidek	clock.3 \
2161f2ce2a0SPawel Jakub Dawidek	clock_getcpuclockid.3 \
2171f2ce2a0SPawel Jakub Dawidek	confstr.3 \
2181f2ce2a0SPawel Jakub Dawidek	ctermid.3 \
2191f2ce2a0SPawel Jakub Dawidek	daemon.3 \
2201f2ce2a0SPawel Jakub Dawidek	devname.3 \
2211f2ce2a0SPawel Jakub Dawidek	directory.3 \
2221f2ce2a0SPawel Jakub Dawidek	dirname.3 \
2231f2ce2a0SPawel Jakub Dawidek	dl_iterate_phdr.3 \
2241f2ce2a0SPawel Jakub Dawidek	dladdr.3 \
2251f2ce2a0SPawel Jakub Dawidek	dlinfo.3 \
2261f2ce2a0SPawel Jakub Dawidek	dllockinit.3 \
2271f2ce2a0SPawel Jakub Dawidek	dlopen.3 \
2285219e2caSJilles Tjoelker	dup3.3 \
2291f2ce2a0SPawel Jakub Dawidek	err.3 \
2301f2ce2a0SPawel Jakub Dawidek	exec.3 \
2311f2ce2a0SPawel Jakub Dawidek	feature_present.3 \
2321f2ce2a0SPawel Jakub Dawidek	fmtcheck.3 \
2331f2ce2a0SPawel Jakub Dawidek	fmtmsg.3 \
2341f2ce2a0SPawel Jakub Dawidek	fnmatch.3 \
2351f2ce2a0SPawel Jakub Dawidek	fpclassify.3 \
2361f2ce2a0SPawel Jakub Dawidek	frexp.3 \
2371f2ce2a0SPawel Jakub Dawidek	ftok.3 \
2381f2ce2a0SPawel Jakub Dawidek	fts.3 \
2391f2ce2a0SPawel Jakub Dawidek	ftw.3 \
2401f2ce2a0SPawel Jakub Dawidek	getbootfile.3 \
2411f2ce2a0SPawel Jakub Dawidek	getbsize.3 \
2421f2ce2a0SPawel Jakub Dawidek	getcap.3 \
2431f2ce2a0SPawel Jakub Dawidek	getcontext.3 \
2441f2ce2a0SPawel Jakub Dawidek	getcwd.3 \
2451f2ce2a0SPawel Jakub Dawidek	getdiskbyname.3 \
2461f2ce2a0SPawel Jakub Dawidek	getdomainname.3 \
247e9ac2743SConrad Meyer	getentropy.3 \
2481f2ce2a0SPawel Jakub Dawidek	getfsent.3 \
2491f2ce2a0SPawel Jakub Dawidek	getgrent.3 \
2501f2ce2a0SPawel Jakub Dawidek	getgrouplist.3 \
2511f2ce2a0SPawel Jakub Dawidek	gethostname.3 \
2521f2ce2a0SPawel Jakub Dawidek	getloadavg.3 \
2531f2ce2a0SPawel Jakub Dawidek	getmntinfo.3 \
2541f2ce2a0SPawel Jakub Dawidek	getnetgrent.3 \
2551f2ce2a0SPawel Jakub Dawidek	getosreldate.3 \
2561f2ce2a0SPawel Jakub Dawidek	getpass.3 \
2571f2ce2a0SPawel Jakub Dawidek	getpeereid.3 \
2581f2ce2a0SPawel Jakub Dawidek	getprogname.3 \
2591f2ce2a0SPawel Jakub Dawidek	getpwent.3 \
2601f2ce2a0SPawel Jakub Dawidek	getttyent.3 \
2611f2ce2a0SPawel Jakub Dawidek	getusershell.3 \
2621f2ce2a0SPawel Jakub Dawidek	getutxent.3 \
2631f2ce2a0SPawel Jakub Dawidek	getvfsbyname.3 \
2641f2ce2a0SPawel Jakub Dawidek	glob.3 \
2651f2ce2a0SPawel Jakub Dawidek	initgroups.3 \
2661f2ce2a0SPawel Jakub Dawidek	isgreater.3 \
2671f2ce2a0SPawel Jakub Dawidek	ldexp.3 \
2681f2ce2a0SPawel Jakub Dawidek	makecontext.3 \
269e64e7115SEdward Tomasz Napierala	modf.3 \
2701f2ce2a0SPawel Jakub Dawidek	nice.3 \
2711f2ce2a0SPawel Jakub Dawidek	nlist.3 \
2721f2ce2a0SPawel Jakub Dawidek	pause.3 \
2731f2ce2a0SPawel Jakub Dawidek	popen.3 \
2741f2ce2a0SPawel Jakub Dawidek	posix_spawn.3 \
2751f2ce2a0SPawel Jakub Dawidek	posix_spawn_file_actions_addopen.3 \
2761f2ce2a0SPawel Jakub Dawidek	posix_spawn_file_actions_init.3 \
2771f2ce2a0SPawel Jakub Dawidek	posix_spawnattr_getflags.3 \
2781f2ce2a0SPawel Jakub Dawidek	posix_spawnattr_getpgroup.3 \
2791f2ce2a0SPawel Jakub Dawidek	posix_spawnattr_getschedparam.3 \
2801f2ce2a0SPawel Jakub Dawidek	posix_spawnattr_getschedpolicy.3 \
2811f2ce2a0SPawel Jakub Dawidek	posix_spawnattr_init.3 \
2821f2ce2a0SPawel Jakub Dawidek	posix_spawnattr_getsigdefault.3 \
2831f2ce2a0SPawel Jakub Dawidek	posix_spawnattr_getsigmask.3 \
2841f2ce2a0SPawel Jakub Dawidek	psignal.3 \
2851f2ce2a0SPawel Jakub Dawidek	pwcache.3 \
2861f2ce2a0SPawel Jakub Dawidek	raise.3 \
2871f2ce2a0SPawel Jakub Dawidek	rand48.3 \
2881f2ce2a0SPawel Jakub Dawidek	readpassphrase.3 \
2893820f784SKonstantin Belousov	rtld_get_var.3 \
2901f2ce2a0SPawel Jakub Dawidek	scandir.3 \
2911f2ce2a0SPawel Jakub Dawidek	sem_destroy.3 \
2921f2ce2a0SPawel Jakub Dawidek	sem_getvalue.3 \
2931f2ce2a0SPawel Jakub Dawidek	sem_init.3 \
2941f2ce2a0SPawel Jakub Dawidek	sem_open.3 \
2951f2ce2a0SPawel Jakub Dawidek	sem_post.3 \
2961f2ce2a0SPawel Jakub Dawidek	sem_timedwait.3 \
2971f2ce2a0SPawel Jakub Dawidek	sem_wait.3 \
2981f2ce2a0SPawel Jakub Dawidek	setjmp.3 \
2991f2ce2a0SPawel Jakub Dawidek	setmode.3 \
3001f2ce2a0SPawel Jakub Dawidek	setproctitle.3 \
3011f2ce2a0SPawel Jakub Dawidek	siginterrupt.3 \
3021f2ce2a0SPawel Jakub Dawidek	signal.3 \
3031f2ce2a0SPawel Jakub Dawidek	sigsetops.3 \
3041f2ce2a0SPawel Jakub Dawidek	statvfs.3 \
3051f2ce2a0SPawel Jakub Dawidek	stringlist.3 \
3061f2ce2a0SPawel Jakub Dawidek	strtofflags.3 \
3071f2ce2a0SPawel Jakub Dawidek	sysconf.3 \
3081f2ce2a0SPawel Jakub Dawidek	sysctl.3 \
3091f2ce2a0SPawel Jakub Dawidek	syslog.3 \
3101f2ce2a0SPawel Jakub Dawidek	tcgetpgrp.3 \
3111f2ce2a0SPawel Jakub Dawidek	tcgetsid.3 \
3124e0c81c5SKonstantin Belousov	tcgetwinsize.3 \
3131f2ce2a0SPawel Jakub Dawidek	tcsendbreak.3 \
3141f2ce2a0SPawel Jakub Dawidek	tcsetattr.3 \
3151f2ce2a0SPawel Jakub Dawidek	tcsetpgrp.3 \
3161f2ce2a0SPawel Jakub Dawidek	tcsetsid.3 \
3171f2ce2a0SPawel Jakub Dawidek	time.3 \
3181f2ce2a0SPawel Jakub Dawidek	times.3 \
3197e299411SWarner Losh	timespec_get.3 \
3209b5d724cSDag-Erling Smørgrav	timespec_getres.3 \
3211f2ce2a0SPawel Jakub Dawidek	ttyname.3 \
3221f2ce2a0SPawel Jakub Dawidek	ualarm.3 \
3231f2ce2a0SPawel Jakub Dawidek	ucontext.3 \
3241f2ce2a0SPawel Jakub Dawidek	ulimit.3 \
3251f2ce2a0SPawel Jakub Dawidek	uname.3 \
3261f2ce2a0SPawel Jakub Dawidek	unvis.3 \
3271f2ce2a0SPawel Jakub Dawidek	utime.3 \
3281f2ce2a0SPawel Jakub Dawidek	valloc.3 \
3291f2ce2a0SPawel Jakub Dawidek	vis.3 \
3301f2ce2a0SPawel Jakub Dawidek	wordexp.3
33158f0484fSRodney W. Grimes
332c1e80940SXin LIMLINKS+=arc4random.3 arc4random_buf.3 \
3331f2ce2a0SPawel Jakub Dawidek	arc4random.3 arc4random_uniform.3
334e395da92SBruce EvansMLINKS+=ctermid.3 ctermid_r.3
3359a9b8e46SMark JohnstonMLINKS+=daemon.3 daemonfd.3
33635a4bf1cSStefan FarfelederMLINKS+=devname.3 devname_r.3
33726d4f5e9SEd SchoutenMLINKS+=devname.3 fdevname.3
33826d4f5e9SEd SchoutenMLINKS+=devname.3 fdevname_r.3
3391f2ce2a0SPawel Jakub DawidekMLINKS+=directory.3 closedir.3 \
3401f2ce2a0SPawel Jakub Dawidek	directory.3 dirfd.3 \
341f4b1bf33SBryan Drewery	directory.3 fdclosedir.3 \
3426fda52baSXin LI	directory.3 fdopendir.3 \
343f4b1bf33SBryan Drewery	directory.3 opendir.3 \
3441f2ce2a0SPawel Jakub Dawidek	directory.3 readdir.3 \
3451f2ce2a0SPawel Jakub Dawidek	directory.3 readdir_r.3 \
3461f2ce2a0SPawel Jakub Dawidek	directory.3 rewinddir.3 \
3471f2ce2a0SPawel Jakub Dawidek	directory.3 seekdir.3 \
3481f2ce2a0SPawel Jakub Dawidek	directory.3 telldir.3
3491f2ce2a0SPawel Jakub DawidekMLINKS+=dlopen.3 fdlopen.3 \
3501f2ce2a0SPawel Jakub Dawidek	dlopen.3 dlclose.3 \
3511f2ce2a0SPawel Jakub Dawidek	dlopen.3 dlerror.3 \
3521f2ce2a0SPawel Jakub Dawidek	dlopen.3 dlfunc.3 \
3532f1a2bdfSRomain Tartière	dlopen.3 dlsym.3 \
3542f1a2bdfSRomain Tartière	dlopen.3 dlvsym.3
3551f2ce2a0SPawel Jakub DawidekMLINKS+=err.3 err_set_exit.3 \
3561f2ce2a0SPawel Jakub Dawidek	err.3 err_set_file.3 \
3571f2ce2a0SPawel Jakub Dawidek	err.3 errc.3 \
3581f2ce2a0SPawel Jakub Dawidek	err.3 errx.3 \
3591f2ce2a0SPawel Jakub Dawidek	err.3 verr.3 \
3601f2ce2a0SPawel Jakub Dawidek	err.3 verrc.3 \
3611f2ce2a0SPawel Jakub Dawidek	err.3 verrx.3 \
3621f2ce2a0SPawel Jakub Dawidek	err.3 vwarn.3 \
3631f2ce2a0SPawel Jakub Dawidek	err.3 vwarnc.3 \
3641f2ce2a0SPawel Jakub Dawidek	err.3 vwarnx.3 \
3651f2ce2a0SPawel Jakub Dawidek	err.3 warnc.3 \
3661f2ce2a0SPawel Jakub Dawidek	err.3 warn.3 \
3671f2ce2a0SPawel Jakub Dawidek	err.3 warnx.3
3681f2ce2a0SPawel Jakub DawidekMLINKS+=exec.3 execl.3 \
3691f2ce2a0SPawel Jakub Dawidek	exec.3 execle.3 \
3701f2ce2a0SPawel Jakub Dawidek	exec.3 execlp.3 \
3711f2ce2a0SPawel Jakub Dawidek	exec.3 exect.3 \
3721f2ce2a0SPawel Jakub Dawidek	exec.3 execv.3 \
3731f2ce2a0SPawel Jakub Dawidek	exec.3 execvP.3 \
37422c78151SSergey A. Osokin	exec.3 execvp.3 \
37522c78151SSergey A. Osokin	exec.3 execvpe.3
3761f2ce2a0SPawel Jakub DawidekMLINKS+=fpclassify.3 finite.3 \
3771f2ce2a0SPawel Jakub Dawidek	fpclassify.3 finitef.3 \
3781f2ce2a0SPawel Jakub Dawidek	fpclassify.3 isfinite.3 \
3791f2ce2a0SPawel Jakub Dawidek	fpclassify.3 isinf.3 \
3801f2ce2a0SPawel Jakub Dawidek	fpclassify.3 isnan.3 \
3815d62092fSMike Barcroft	fpclassify.3 isnormal.3
3821f2ce2a0SPawel Jakub DawidekMLINKS+=frexp.3 frexpf.3 \
3831f2ce2a0SPawel Jakub Dawidek	frexp.3 frexpl.3
3841f2ce2a0SPawel Jakub DawidekMLINKS+=fts.3 fts_children.3 \
3851f2ce2a0SPawel Jakub Dawidek	fts.3 fts_close.3 \
3861f2ce2a0SPawel Jakub Dawidek	fts.3 fts_open.3 \
3871f2ce2a0SPawel Jakub Dawidek	fts.3 fts_read.3 \
3881f2ce2a0SPawel Jakub Dawidek	fts.3 fts_set.3 \
3891f2ce2a0SPawel Jakub Dawidek	fts.3 fts_set_clientptr.3 \
3901f2ce2a0SPawel Jakub Dawidek	fts.3 fts_get_clientptr.3 \
3911f2ce2a0SPawel Jakub Dawidek	fts.3 fts_get_stream.3
39216018100STim J. RobbinsMLINKS+=ftw.3 nftw.3
3931f2ce2a0SPawel Jakub DawidekMLINKS+=getcap.3 cgetcap.3 \
3941f2ce2a0SPawel Jakub Dawidek	getcap.3 cgetclose.3 \
3951f2ce2a0SPawel Jakub Dawidek	getcap.3 cgetent.3 \
3961f2ce2a0SPawel Jakub Dawidek	getcap.3 cgetfirst.3 \
3971f2ce2a0SPawel Jakub Dawidek	getcap.3 cgetmatch.3 \
3981f2ce2a0SPawel Jakub Dawidek	getcap.3 cgetnext.3 \
3991f2ce2a0SPawel Jakub Dawidek	getcap.3 cgetnum.3 \
4001f2ce2a0SPawel Jakub Dawidek	getcap.3 cgetset.3 \
4011f2ce2a0SPawel Jakub Dawidek	getcap.3 cgetstr.3 \
40258f0484fSRodney W. Grimes	getcap.3 cgetustr.3
40358f0484fSRodney W. GrimesMLINKS+=getcwd.3 getwd.3
4045fc3f0caSSergey KandaurovMLINKS+=getcontext.3 getcontextx.3
405a892767bSArchie CobbsMLINKS+=getcontext.3 setcontext.3
406b966cc23SBruce EvansMLINKS+=getdomainname.3 setdomainname.3
4071f2ce2a0SPawel Jakub DawidekMLINKS+=getfsent.3 endfsent.3 \
4081f2ce2a0SPawel Jakub Dawidek	getfsent.3 getfsfile.3 \
4091f2ce2a0SPawel Jakub Dawidek	getfsent.3 getfsspec.3 \
4101f2ce2a0SPawel Jakub Dawidek	getfsent.3 getfstype.3 \
4111f2ce2a0SPawel Jakub Dawidek	getfsent.3 setfsent.3 \
4121f2ce2a0SPawel Jakub Dawidek	getfsent.3 setfstab.3 \
4131f2ce2a0SPawel Jakub Dawidek	getfsent.3 getfstab.3
4141f2ce2a0SPawel Jakub DawidekMLINKS+=getgrent.3 endgrent.3 \
4151f2ce2a0SPawel Jakub Dawidek	getgrent.3 getgrgid.3 \
4161f2ce2a0SPawel Jakub Dawidek	getgrent.3 getgrnam.3 \
4171f2ce2a0SPawel Jakub Dawidek	getgrent.3 setgrent.3 \
4181f2ce2a0SPawel Jakub Dawidek	getgrent.3 setgroupent.3 \
4191f2ce2a0SPawel Jakub Dawidek	getgrent.3 getgrent_r.3 \
4201f2ce2a0SPawel Jakub Dawidek	getgrent.3 getgrnam_r.3 \
4211f2ce2a0SPawel Jakub Dawidek	getgrent.3 getgrgid_r.3
42258f0484fSRodney W. GrimesMLINKS+=gethostname.3 sethostname.3
4231f2ce2a0SPawel Jakub DawidekMLINKS+=getnetgrent.3 endnetgrent.3 \
424a8d890b4SBryan Drewery	getnetgrent.3 getnetgrent_r.3 \
4251f2ce2a0SPawel Jakub Dawidek	getnetgrent.3 innetgr.3 \
426b966cc23SBruce Evans	getnetgrent.3 setnetgrent.3
427cd18ccdcSDima DorfmanMLINKS+=getprogname.3 setprogname.3
4281f2ce2a0SPawel Jakub DawidekMLINKS+=getpwent.3 endpwent.3 \
4291f2ce2a0SPawel Jakub Dawidek	getpwent.3 getpwnam.3 \
4301f2ce2a0SPawel Jakub Dawidek	getpwent.3 getpwuid.3 \
4311f2ce2a0SPawel Jakub Dawidek	getpwent.3 setpassent.3 \
4321f2ce2a0SPawel Jakub Dawidek	getpwent.3 setpwent.3 \
4331f2ce2a0SPawel Jakub Dawidek	getpwent.3 setpwfile.3 \
4341f2ce2a0SPawel Jakub Dawidek	getpwent.3 getpwent_r.3 \
4351f2ce2a0SPawel Jakub Dawidek	getpwent.3 getpwnam_r.3 \
43646d93063SJacques Vidrine	getpwent.3 getpwuid_r.3
4371f2ce2a0SPawel Jakub DawidekMLINKS+=getttyent.3 endttyent.3 \
4381f2ce2a0SPawel Jakub Dawidek	getttyent.3 getttynam.3 \
4391f2ce2a0SPawel Jakub Dawidek	getttyent.3 isdialuptty.3 \
4401f2ce2a0SPawel Jakub Dawidek	getttyent.3 isnettty.3 \
441b966cc23SBruce Evans	getttyent.3 setttyent.3
4421f2ce2a0SPawel Jakub DawidekMLINKS+=getusershell.3 endusershell.3 \
4431f2ce2a0SPawel Jakub Dawidek	getusershell.3 setusershell.3
4441f2ce2a0SPawel Jakub DawidekMLINKS+=getutxent.3 endutxent.3 \
4451f2ce2a0SPawel Jakub Dawidek	getutxent.3 getutxid.3 \
4461f2ce2a0SPawel Jakub Dawidek	getutxent.3 getutxline.3 \
4471f2ce2a0SPawel Jakub Dawidek	getutxent.3 getutxuser.3 \
4481f2ce2a0SPawel Jakub Dawidek	getutxent.3 pututxline.3 \
4491f2ce2a0SPawel Jakub Dawidek	getutxent.3 setutxdb.3 \
4501f2ce2a0SPawel Jakub Dawidek	getutxent.3 setutxent.3 \
4511f2ce2a0SPawel Jakub Dawidek	getutxent.3 utmpx.3
45258f0484fSRodney W. GrimesMLINKS+=glob.3 globfree.3
4531f2ce2a0SPawel Jakub DawidekMLINKS+=isgreater.3 isgreaterequal.3 \
4541f2ce2a0SPawel Jakub Dawidek	isgreater.3 isless.3 \
4551f2ce2a0SPawel Jakub Dawidek	isgreater.3 islessequal.3 \
4561f2ce2a0SPawel Jakub Dawidek	isgreater.3 islessgreater.3 \
4575d62092fSMike Barcroft	isgreater.3 isunordered.3
4581f2ce2a0SPawel Jakub DawidekMLINKS+=ldexp.3 ldexpf.3 \
4591f2ce2a0SPawel Jakub Dawidek	ldexp.3 ldexpl.3
460a892767bSArchie CobbsMLINKS+=makecontext.3 swapcontext.3
4611f2ce2a0SPawel Jakub DawidekMLINKS+=modf.3 modff.3 \
4621f2ce2a0SPawel Jakub Dawidek	modf.3 modfl.3
46358f0484fSRodney W. GrimesMLINKS+=popen.3 pclose.3
46462187b41SDavid XuMLINKS+=posix_spawn.3 posix_spawnp.3 \
46562187b41SDavid Xu	posix_spawn_file_actions_addopen.3 posix_spawn_file_actions_addclose.3 \
46678963d79SKonstantin Belousov	posix_spawn_file_actions_addopen.3 posix_spawn_file_actions_addclosefrom_np.3 \
46762187b41SDavid Xu	posix_spawn_file_actions_addopen.3 posix_spawn_file_actions_adddup2.3 \
468bd44dce5SKonstantin Belousov	posix_spawn_file_actions_addopen.3 posix_spawn_file_actions_addchdir_np.3 \
469bd44dce5SKonstantin Belousov	posix_spawn_file_actions_addopen.3 posix_spawn_file_actions_addfchdir_np.3 \
47062187b41SDavid Xu	posix_spawn_file_actions_init.3 posix_spawn_file_actions_destroy.3 \
47162187b41SDavid Xu	posix_spawnattr_getflags.3 posix_spawnattr_setflags.3 \
47262187b41SDavid Xu	posix_spawnattr_getpgroup.3 posix_spawnattr_setpgroup.3 \
47362187b41SDavid Xu	posix_spawnattr_getschedparam.3 posix_spawnattr_setschedparam.3 \
47462187b41SDavid Xu	posix_spawnattr_getschedpolicy.3 posix_spawnattr_setschedpolicy.3 \
47562187b41SDavid Xu	posix_spawnattr_getsigdefault.3 posix_spawnattr_setsigdefault.3 \
47662187b41SDavid Xu	posix_spawnattr_getsigmask.3 posix_spawnattr_setsigmask.3 \
47762187b41SDavid Xu	posix_spawnattr_init.3 posix_spawnattr_destroy.3
4783b2f0bfcSRicardo BrancoMLINKS+=psignal.3 psiginfo.3 \
4793d125671SRicardo Branco	psignal.3 sig2str.3 \
4803d125671SRicardo Branco	psignal.3 str2sig.3 \
4813b2f0bfcSRicardo Branco	psignal.3 strsignal.3 \
4821f2ce2a0SPawel Jakub Dawidek	psignal.3 sys_siglist.3 \
4831f2ce2a0SPawel Jakub Dawidek	psignal.3 sys_signame.3
484ca57a343SDag-Erling SmørgravMLINKS+=pwcache.3 gid_from_group.3 \
485ca57a343SDag-Erling Smørgrav	pwcache.3 group_from_gid.3 \
486ca57a343SDag-Erling Smørgrav	pwcache.3 pwcache_groupdb.3 \
487ca57a343SDag-Erling Smørgrav	pwcache.3 pwcache_userdb.3 \
488ca57a343SDag-Erling Smørgrav	pwcache.3 uid_from_user.3 \
4891f2ce2a0SPawel Jakub Dawidek	pwcache.3 user_from_uid.3
4901f2ce2a0SPawel Jakub DawidekMLINKS+=rand48.3 _rand48.3 \
4911f2ce2a0SPawel Jakub Dawidek	rand48.3 drand48.3 \
4921f2ce2a0SPawel Jakub Dawidek	rand48.3 erand48.3 \
4931f2ce2a0SPawel Jakub Dawidek	rand48.3 jrand48.3 \
4941f2ce2a0SPawel Jakub Dawidek	rand48.3 lcong48.3 \
4951f2ce2a0SPawel Jakub Dawidek	rand48.3 lrand48.3 \
4961f2ce2a0SPawel Jakub Dawidek	rand48.3 mrand48.3 \
4971f2ce2a0SPawel Jakub Dawidek	rand48.3 nrand48.3 \
4981f2ce2a0SPawel Jakub Dawidek	rand48.3 seed48.3 \
4994b4b7d05SGarrett Wollman	rand48.3 srand48.3
5003820f784SKonstantin BelousovMLINKS+=rtld_get_var.3 \
5013820f784SKonstantin Belousov	rtld_set_var.3
502ea448a0aSKonstantin BelousovMLINKS+=scandir.3 alphasort.3 \
5030a5b763dSDag-Erling Smørgrav	scandir.3 fdscandir.3 \
5040a5b763dSDag-Erling Smørgrav	scandir.3 fdscandir_b.3 \
50505c9a015SAymeric Wibo	scandir.3 scandir_b.3 \
506deeebfdeSDag-Erling Smørgrav	scandir.3 scandirat.3 \
507deeebfdeSDag-Erling Smørgrav	scandir.3 scandirat_b.3 \
50805c9a015SAymeric Wibo	scandir.3 versionsort.3
5091f2ce2a0SPawel Jakub DawidekMLINKS+=sem_open.3 sem_close.3 \
5101f2ce2a0SPawel Jakub Dawidek	sem_open.3 sem_unlink.3
511bbeec6eeSRuslan ErmilovMLINKS+=sem_wait.3 sem_trywait.3
512b215ceaaSEric van GyzenMLINKS+=sem_timedwait.3 sem_clockwait_np.3
5131f2ce2a0SPawel Jakub DawidekMLINKS+=setjmp.3 _longjmp.3 \
5141f2ce2a0SPawel Jakub Dawidek	setjmp.3 _setjmp.3 \
5151f2ce2a0SPawel Jakub Dawidek	setjmp.3 longjmp.3 \
5161f2ce2a0SPawel Jakub Dawidek	setjmp.3 longjmperr.3 \
5171f2ce2a0SPawel Jakub Dawidek	setjmp.3 longjmperror.3 \
5181f2ce2a0SPawel Jakub Dawidek	setjmp.3 siglongjmp.3 \
5191f2ce2a0SPawel Jakub Dawidek	setjmp.3 sigsetjmp.3
52058f0484fSRodney W. GrimesMLINKS+=setmode.3 getmode.3
52127eff714SMariusz ZaborskiMLINKS+=setproctitle.3 setproctitle_fast.3
5221f2ce2a0SPawel Jakub DawidekMLINKS+=sigsetops.3 sigaddset.3 \
5237dc859a5SKyle Evans	sigsetops.3 sigandset.3 \
5241f2ce2a0SPawel Jakub Dawidek	sigsetops.3 sigdelset.3 \
5251f2ce2a0SPawel Jakub Dawidek	sigsetops.3 sigemptyset.3 \
5261f2ce2a0SPawel Jakub Dawidek	sigsetops.3 sigfillset.3 \
5277dc859a5SKyle Evans	sigsetops.3 sigisemptyset.3 \
5287dc859a5SKyle Evans	sigsetops.3 sigismember.3 \
5297dc859a5SKyle Evans	sigsetops.3 sigorset.3
5306e97e157SGarrett WollmanMLINKS+=statvfs.3 fstatvfs.3
5311f2ce2a0SPawel Jakub DawidekMLINKS+=stringlist.3 sl_add.3 \
5321f2ce2a0SPawel Jakub Dawidek	stringlist.3 sl_find.3 \
5331f2ce2a0SPawel Jakub Dawidek	stringlist.3 sl_free.3 \
5341f2ce2a0SPawel Jakub Dawidek	stringlist.3 sl_init.3
535b944866cSBruce EvansMLINKS+=strtofflags.3 fflagstostr.3
5361f2ce2a0SPawel Jakub DawidekMLINKS+=sysctl.3 sysctlbyname.3 \
5371f2ce2a0SPawel Jakub Dawidek	sysctl.3 sysctlnametomib.3
5381f2ce2a0SPawel Jakub DawidekMLINKS+=syslog.3 closelog.3 \
5391f2ce2a0SPawel Jakub Dawidek	syslog.3 openlog.3 \
5401f2ce2a0SPawel Jakub Dawidek	syslog.3 setlogmask.3 \
54158f0484fSRodney W. Grimes	syslog.3 vsyslog.3
5424e0c81c5SKonstantin BelousovMLINKS+=tcgetwinsize.3 tcsetwinsize.3
5431f2ce2a0SPawel Jakub DawidekMLINKS+=tcsendbreak.3 tcdrain.3 \
5441f2ce2a0SPawel Jakub Dawidek	tcsendbreak.3 tcflow.3 \
5451f2ce2a0SPawel Jakub Dawidek	tcsendbreak.3 tcflush.3
5461f2ce2a0SPawel Jakub DawidekMLINKS+=tcsetattr.3 cfgetispeed.3 \
5471f2ce2a0SPawel Jakub Dawidek	tcsetattr.3 cfgetospeed.3 \
5481f2ce2a0SPawel Jakub Dawidek	tcsetattr.3 cfmakeraw.3 \
5491f2ce2a0SPawel Jakub Dawidek	tcsetattr.3 cfmakesane.3 \
5501f2ce2a0SPawel Jakub Dawidek	tcsetattr.3 cfsetispeed.3 \
5511f2ce2a0SPawel Jakub Dawidek	tcsetattr.3 cfsetospeed.3 \
5521f2ce2a0SPawel Jakub Dawidek	tcsetattr.3 cfsetspeed.3 \
5531f2ce2a0SPawel Jakub Dawidek	tcsetattr.3 tcgetattr.3
5541f2ce2a0SPawel Jakub DawidekMLINKS+=ttyname.3 isatty.3 \
5551f2ce2a0SPawel Jakub Dawidek	ttyname.3 ttyname_r.3
5561f2ce2a0SPawel Jakub DawidekMLINKS+=unvis.3 strunvis.3 \
5571f2ce2a0SPawel Jakub Dawidek	unvis.3 strunvisx.3
558778c12a6SBrooks DavisMLINKS+=vis.3 nvis.3 \
559778c12a6SBrooks Davis	vis.3 snvis.3 \
560778c12a6SBrooks Davis	vis.3 strenvisx.3 \
561778c12a6SBrooks Davis	vis.3 strnunvis.3 \
562778c12a6SBrooks Davis	vis.3 strnunvisx.3 \
563778c12a6SBrooks Davis	vis.3 strnvis.3 \
564778c12a6SBrooks Davis	vis.3 strnvisx.3 \
565778c12a6SBrooks Davis	vis.3 strsenvisx.3 \
566778c12a6SBrooks Davis	vis.3 strsnvis.3 \
567778c12a6SBrooks Davis	vis.3 strsnvisx.3 \
568778c12a6SBrooks Davis	vis.3 strsvis.3 \
569778c12a6SBrooks Davis	vis.3 strsvisx.3 \
570778c12a6SBrooks Davis	vis.3 strvis.3 \
571778c12a6SBrooks Davis	vis.3 strvisx.3 \
572778c12a6SBrooks Davis	vis.3 svis.3
573778c12a6SBrooks Davis
574faea1495STim J. RobbinsMLINKS+=wordexp.3 wordfree.3
575871b6b10SBrad Davis
576a8b8edb2SMaxim Sobolev.include <src.tools.mk>
577a8b8edb2SMaxim Sobolev
578c9d175eaSEnji Cooperafterinstallconfig: install-passwd
579c9d175eaSEnji Cooperinstall-passwd: .PHONY
580871b6b10SBrad Davis.if ${MK_TCSH} == "no"
581871b6b10SBrad Davis	sed -i "" -e 's;/bin/csh;/bin/sh;' ${DESTDIR}/etc/master.passwd
582871b6b10SBrad Davis.endif
583a8b8edb2SMaxim Sobolev	${PWD_MKDB_CMD} -i -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd
584871b6b10SBrad Davis.if defined(NO_ROOT) && defined(METALOG)
585871b6b10SBrad Davis	( \
586b58ea3e1SJessica Clarke		echo ".${DISTBASE}/etc/pwd.db type=file mode=0644 uname=root gname=wheel"; \
587b58ea3e1SJessica Clarke		echo ".${DISTBASE}/etc/spwd.db type=file mode=0600 uname=root gname=wheel"; \
588b58ea3e1SJessica Clarke		echo ".${DISTBASE}/etc/passwd type=file mode=0644 uname=root gname=wheel"; \
589871b6b10SBrad Davis	) | cat -l >> ${METALOG}
590871b6b10SBrad Davis.endif
591