xref: /freebsd/lib/libc/gen/Makefile.inc (revision 5dae51da3da0cc94d17bd67b308fad304ebec7e0)
1#	@(#)Makefile.inc	8.6 (Berkeley) 5/4/95
2# $FreeBSD$
3
4# machine-independent gen sources
5.PATH: ${LIBC_SRCTOP}/${LIBC_ARCH}/gen ${LIBC_SRCTOP}/gen
6
7SRCS+=	__getosreldate.c \
8	__pthread_mutex_init_calloc_cb_stub.c \
9	__xuname.c \
10	_once_stub.c \
11	_pthread_stubs.c \
12	_rand48.c \
13	_spinlock_stub.c \
14	_thread_init.c \
15	alarm.c \
16	arc4random.c \
17	assert.c \
18	auxv.c \
19	basename.c \
20	cap_sandboxed.c \
21	check_utility_compat.c \
22	clock.c \
23	clock_getcpuclockid.c \
24	closedir.c \
25	confstr.c \
26	crypt.c \
27	ctermid.c \
28	daemon.c \
29	devname.c \
30	dirfd.c \
31	dirname.c \
32	dirname_compat.c \
33	disklabel.c \
34	dlfcn.c \
35	drand48.c \
36	dup3.c \
37	elf_utils.c \
38	erand48.c \
39	err.c \
40	errlst.c \
41	errno.c \
42	exec.c \
43	fdevname.c \
44	feature_present.c \
45	fmtcheck.c \
46	fmtmsg.c \
47	fnmatch.c \
48	fpclassify.c \
49	frexp.c \
50	fstab.c \
51	ftok.c \
52	fts.c \
53	ftw.c \
54	getbootfile.c \
55	getbsize.c \
56	getcap.c \
57	getcwd.c \
58	getdomainname.c \
59	getgrent.c \
60	getgrouplist.c \
61	gethostname.c \
62	getloadavg.c \
63	getlogin.c \
64	getmntinfo.c \
65	getnetgrent.c \
66	getosreldate.c \
67	getpagesize.c \
68	getpagesizes.c \
69	getpeereid.c \
70	getprogname.c \
71	getpwent.c \
72	getttyent.c \
73	getusershell.c \
74	getutxent.c \
75	getvfsbyname.c \
76	glob.c \
77	initgroups.c \
78	isatty.c \
79	isinf.c \
80	isnan.c \
81	jrand48.c \
82	lcong48.c \
83	libc_dlopen.c \
84	lockf.c \
85	lrand48.c \
86	mrand48.c \
87	nftw.c \
88	nice.c \
89	nlist.c \
90	nrand48.c \
91	opendir.c \
92	pause.c \
93	pmadvise.c \
94	popen.c \
95	posix_spawn.c \
96	psignal.c \
97	pututxline.c \
98	pw_scan.c \
99	raise.c \
100	readdir.c \
101	readpassphrase.c \
102	recvmmsg.c \
103	rewinddir.c \
104	scandir.c \
105	seed48.c \
106	seekdir.c \
107	semctl.c \
108	sendmmsg.c \
109	setdomainname.c \
110	sethostname.c \
111	setjmperr.c \
112	setmode.c \
113	setproctitle.c \
114	setprogname.c \
115	siginterrupt.c \
116	siglist.c \
117	signal.c \
118	sigsetops.c \
119	sleep.c \
120	srand48.c \
121	statvfs.c \
122	stringlist.c \
123	strtofflags.c \
124	sysconf.c \
125	sysctl.c \
126	sysctlbyname.c \
127	sysctlnametomib.c \
128	syslog.c \
129	telldir.c \
130	termios.c \
131	time.c \
132	times.c \
133	timezone.c \
134	tls.c \
135	ttyname.c \
136	ttyslot.c \
137	ualarm.c \
138	ulimit.c \
139	uname.c \
140	usleep.c \
141	utime.c \
142	utxdb.c \
143	valloc.c \
144	wait.c \
145	wait3.c \
146	waitpid.c \
147	waitid.c \
148	wordexp.c
149.if ${MK_SYMVER} == yes
150SRCS+=	fts-compat.c \
151	unvis-compat.c
152.endif
153
154.PATH: ${LIBC_SRCTOP}/../../contrib/libc-pwcache
155SRCS+=	pwcache.c pwcache.h
156
157.PATH: ${LIBC_SRCTOP}/../../contrib/libc-vis
158CFLAGS+=	-I${LIBC_SRCTOP}/../../contrib/libc-vis
159SRCS+=	unvis.c vis.c
160
161MISRCS+=modf.c
162
163CANCELPOINTS_SRCS=sem.c sem_new.c
164.for src in ${CANCELPOINTS_SRCS}
165SRCS+=cancelpoints_${src}
166CLEANFILES+=cancelpoints_${src}
167cancelpoints_${src}: ${LIBC_SRCTOP}/gen/${src} .NOMETA
168	ln -sf ${.ALLSRC} ${.TARGET}
169.endfor
170
171SYM_MAPS+=${LIBC_SRCTOP}/gen/Symbol.map
172
173# machine-dependent gen sources
174.sinclude "${LIBC_SRCTOP}/${LIBC_ARCH}/gen/Makefile.inc"
175
176MAN+=	alarm.3 \
177	arc4random.3 \
178	basename.3 \
179	cap_rights_get.3 \
180	cap_sandboxed.3 \
181	check_utility_compat.3 \
182	clock.3 \
183	clock_getcpuclockid.3 \
184	confstr.3 \
185	ctermid.3 \
186	daemon.3 \
187	devname.3 \
188	directory.3 \
189	dirname.3 \
190	dl_iterate_phdr.3 \
191	dladdr.3 \
192	dlinfo.3 \
193	dllockinit.3 \
194	dlopen.3 \
195	dup3.3 \
196	err.3 \
197	exec.3 \
198	feature_present.3 \
199	fmtcheck.3 \
200	fmtmsg.3 \
201	fnmatch.3 \
202	fpclassify.3 \
203	frexp.3 \
204	ftok.3 \
205	fts.3 \
206	ftw.3 \
207	getbootfile.3 \
208	getbsize.3 \
209	getcap.3 \
210	getcontext.3 \
211	getcwd.3 \
212	getdiskbyname.3 \
213	getdomainname.3 \
214	getfsent.3 \
215	getgrent.3 \
216	getgrouplist.3 \
217	gethostname.3 \
218	getloadavg.3 \
219	getmntinfo.3 \
220	getnetgrent.3 \
221	getosreldate.3 \
222	getpagesize.3 \
223	getpagesizes.3 \
224	getpass.3 \
225	getpeereid.3 \
226	getprogname.3 \
227	getpwent.3 \
228	getttyent.3 \
229	getusershell.3 \
230	getutxent.3 \
231	getvfsbyname.3 \
232	glob.3 \
233	initgroups.3 \
234	isgreater.3 \
235	ldexp.3 \
236	lockf.3 \
237	makecontext.3 \
238	modf.3 \
239	nice.3 \
240	nlist.3 \
241	pause.3 \
242	popen.3 \
243	posix_spawn.3 \
244	posix_spawn_file_actions_addopen.3 \
245	posix_spawn_file_actions_init.3 \
246	posix_spawnattr_getflags.3 \
247	posix_spawnattr_getpgroup.3 \
248	posix_spawnattr_getschedparam.3 \
249	posix_spawnattr_getschedpolicy.3 \
250	posix_spawnattr_init.3 \
251	posix_spawnattr_getsigdefault.3 \
252	posix_spawnattr_getsigmask.3 \
253	psignal.3 \
254	pwcache.3 \
255	raise.3 \
256	rand48.3 \
257	readpassphrase.3 \
258	rfork_thread.3 \
259	scandir.3 \
260	sem_destroy.3 \
261	sem_getvalue.3 \
262	sem_init.3 \
263	sem_open.3 \
264	sem_post.3 \
265	sem_timedwait.3 \
266	sem_wait.3 \
267	setjmp.3 \
268	setmode.3 \
269	setproctitle.3 \
270	siginterrupt.3 \
271	signal.3 \
272	sigsetops.3 \
273	sleep.3 \
274	statvfs.3 \
275	stringlist.3 \
276	strtofflags.3 \
277	sysconf.3 \
278	sysctl.3 \
279	syslog.3 \
280	tcgetpgrp.3 \
281	tcgetsid.3 \
282	tcsendbreak.3 \
283	tcsetattr.3 \
284	tcsetpgrp.3 \
285	tcsetsid.3 \
286	time.3 \
287	times.3 \
288	timezone.3 \
289	ttyname.3 \
290	tzset.3 \
291	ualarm.3 \
292	ucontext.3 \
293	ulimit.3 \
294	uname.3 \
295	unvis.3 \
296	usleep.3 \
297	utime.3 \
298	valloc.3 \
299	vis.3 \
300	wordexp.3
301
302MLINKS+=arc4random.3 arc4random_addrandom.3 \
303	arc4random.3 arc4random_stir.3 \
304	arc4random.3 arc4random_buf.3 \
305	arc4random.3 arc4random_uniform.3
306MLINKS+=basename.3 basename_r.3
307MLINKS+=ctermid.3 ctermid_r.3
308MLINKS+=devname.3 devname_r.3
309MLINKS+=devname.3 fdevname.3
310MLINKS+=devname.3 fdevname_r.3
311MLINKS+=directory.3 closedir.3 \
312	directory.3 dirfd.3 \
313	directory.3 fdclosedir.3 \
314	directory.3 fdopendir.3 \
315	directory.3 opendir.3 \
316	directory.3 readdir.3 \
317	directory.3 readdir_r.3 \
318	directory.3 rewinddir.3 \
319	directory.3 seekdir.3 \
320	directory.3 telldir.3
321MLINKS+=dlopen.3 fdlopen.3 \
322	dlopen.3 dlclose.3 \
323	dlopen.3 dlerror.3 \
324	dlopen.3 dlfunc.3 \
325	dlopen.3 dlsym.3
326MLINKS+=err.3 err_set_exit.3 \
327	err.3 err_set_file.3 \
328	err.3 errc.3 \
329	err.3 errx.3 \
330	err.3 verr.3 \
331	err.3 verrc.3 \
332	err.3 verrx.3 \
333	err.3 vwarn.3 \
334	err.3 vwarnc.3 \
335	err.3 vwarnx.3 \
336	err.3 warnc.3 \
337	err.3 warn.3 \
338	err.3 warnx.3
339MLINKS+=exec.3 execl.3 \
340	exec.3 execle.3 \
341	exec.3 execlp.3 \
342	exec.3 exect.3 \
343	exec.3 execv.3 \
344	exec.3 execvP.3 \
345	exec.3 execvp.3
346MLINKS+=fpclassify.3 finite.3 \
347	fpclassify.3 finitef.3 \
348	fpclassify.3 isfinite.3 \
349	fpclassify.3 isinf.3 \
350	fpclassify.3 isnan.3 \
351	fpclassify.3 isnormal.3
352MLINKS+=frexp.3 frexpf.3 \
353	frexp.3 frexpl.3
354MLINKS+=fts.3 fts_children.3 \
355	fts.3 fts_close.3 \
356	fts.3 fts_open.3 \
357	fts.3 fts_read.3 \
358	fts.3 fts_set.3 \
359	fts.3 fts_set_clientptr.3 \
360	fts.3 fts_get_clientptr.3 \
361	fts.3 fts_get_stream.3
362MLINKS+=ftw.3 nftw.3
363MLINKS+=getcap.3 cgetcap.3 \
364	getcap.3 cgetclose.3 \
365	getcap.3 cgetent.3 \
366	getcap.3 cgetfirst.3 \
367	getcap.3 cgetmatch.3 \
368	getcap.3 cgetnext.3 \
369	getcap.3 cgetnum.3 \
370	getcap.3 cgetset.3 \
371	getcap.3 cgetstr.3 \
372	getcap.3 cgetustr.3
373MLINKS+=getcwd.3 getwd.3
374MLINKS+=getcontext.3 getcontextx.3
375MLINKS+=getcontext.3 setcontext.3
376MLINKS+=getdomainname.3 setdomainname.3
377MLINKS+=getfsent.3 endfsent.3 \
378	getfsent.3 getfsfile.3 \
379	getfsent.3 getfsspec.3 \
380	getfsent.3 getfstype.3 \
381	getfsent.3 setfsent.3 \
382	getfsent.3 setfstab.3 \
383	getfsent.3 getfstab.3
384MLINKS+=getgrent.3 endgrent.3 \
385	getgrent.3 getgrgid.3 \
386	getgrent.3 getgrnam.3 \
387	getgrent.3 setgrent.3 \
388	getgrent.3 setgroupent.3 \
389	getgrent.3 getgrent_r.3 \
390	getgrent.3 getgrnam_r.3 \
391	getgrent.3 getgrgid_r.3
392MLINKS+=gethostname.3 sethostname.3
393MLINKS+=getnetgrent.3 endnetgrent.3 \
394	getnetgrent.3 getnetgrent_r.3 \
395	getnetgrent.3 innetgr.3 \
396	getnetgrent.3 setnetgrent.3
397MLINKS+=getprogname.3 setprogname.3
398MLINKS+=getpwent.3 endpwent.3 \
399	getpwent.3 getpwnam.3 \
400	getpwent.3 getpwuid.3 \
401	getpwent.3 setpassent.3 \
402	getpwent.3 setpwent.3 \
403	getpwent.3 setpwfile.3 \
404	getpwent.3 getpwent_r.3 \
405	getpwent.3 getpwnam_r.3 \
406	getpwent.3 getpwuid_r.3
407MLINKS+=getttyent.3 endttyent.3 \
408	getttyent.3 getttynam.3 \
409	getttyent.3 isdialuptty.3 \
410	getttyent.3 isnettty.3 \
411	getttyent.3 setttyent.3
412MLINKS+=getusershell.3 endusershell.3 \
413	getusershell.3 setusershell.3
414MLINKS+=getutxent.3 endutxent.3 \
415	getutxent.3 getutxid.3 \
416	getutxent.3 getutxline.3 \
417	getutxent.3 getutxuser.3 \
418	getutxent.3 pututxline.3 \
419	getutxent.3 setutxdb.3 \
420	getutxent.3 setutxent.3 \
421	getutxent.3 utmpx.3
422MLINKS+=glob.3 globfree.3
423MLINKS+=isgreater.3 isgreaterequal.3 \
424	isgreater.3 isless.3 \
425	isgreater.3 islessequal.3 \
426	isgreater.3 islessgreater.3 \
427	isgreater.3 isunordered.3
428MLINKS+=ldexp.3 ldexpf.3 \
429	ldexp.3 ldexpl.3
430MLINKS+=makecontext.3 swapcontext.3
431MLINKS+=modf.3 modff.3 \
432	modf.3 modfl.3
433MLINKS+=popen.3 pclose.3
434MLINKS+=posix_spawn.3 posix_spawnp.3 \
435	posix_spawn_file_actions_addopen.3 posix_spawn_file_actions_addclose.3 \
436	posix_spawn_file_actions_addopen.3 posix_spawn_file_actions_adddup2.3 \
437	posix_spawn_file_actions_init.3 posix_spawn_file_actions_destroy.3 \
438	posix_spawnattr_getflags.3 posix_spawnattr_setflags.3 \
439	posix_spawnattr_getpgroup.3 posix_spawnattr_setpgroup.3 \
440	posix_spawnattr_getschedparam.3 posix_spawnattr_setschedparam.3 \
441	posix_spawnattr_getschedpolicy.3 posix_spawnattr_setschedpolicy.3 \
442	posix_spawnattr_getsigdefault.3 posix_spawnattr_setsigdefault.3 \
443	posix_spawnattr_getsigmask.3 posix_spawnattr_setsigmask.3 \
444	posix_spawnattr_init.3 posix_spawnattr_destroy.3
445MLINKS+=psignal.3 strsignal.3 \
446	psignal.3 sys_siglist.3 \
447	psignal.3 sys_signame.3
448MLINKS+=pwcache.3 group_from_gid.3 \
449	pwcache.3 user_from_uid.3
450MLINKS+=rand48.3 _rand48.3 \
451	rand48.3 drand48.3 \
452	rand48.3 erand48.3 \
453	rand48.3 jrand48.3 \
454	rand48.3 lcong48.3 \
455	rand48.3 lrand48.3 \
456	rand48.3 mrand48.3 \
457	rand48.3 nrand48.3 \
458	rand48.3 seed48.3 \
459	rand48.3 srand48.3
460MLINKS+=recv.2 recvmmsg.2
461MLINKS+=scandir.3 alphasort.3
462MLINKS+=sem_open.3 sem_close.3 \
463	sem_open.3 sem_unlink.3
464MLINKS+=sem_wait.3 sem_trywait.3
465MLINKS+=send.2 sendmmsg.2
466MLINKS+=setjmp.3 _longjmp.3 \
467	setjmp.3 _setjmp.3 \
468	setjmp.3 longjmp.3 \
469	setjmp.3 longjmperr.3 \
470	setjmp.3 longjmperror.3 \
471	setjmp.3 siglongjmp.3 \
472	setjmp.3 sigsetjmp.3
473MLINKS+=setmode.3 getmode.3
474MLINKS+=sigsetops.3 sigaddset.3 \
475	sigsetops.3 sigdelset.3 \
476	sigsetops.3 sigemptyset.3 \
477	sigsetops.3 sigfillset.3 \
478	sigsetops.3 sigismember.3
479MLINKS+=statvfs.3 fstatvfs.3
480MLINKS+=stringlist.3 sl_add.3 \
481	stringlist.3 sl_find.3 \
482	stringlist.3 sl_free.3 \
483	stringlist.3 sl_init.3
484MLINKS+=strtofflags.3 fflagstostr.3
485MLINKS+=sysctl.3 sysctlbyname.3 \
486	sysctl.3 sysctlnametomib.3
487MLINKS+=syslog.3 closelog.3 \
488	syslog.3 openlog.3 \
489	syslog.3 setlogmask.3 \
490	syslog.3 vsyslog.3
491MLINKS+=tcsendbreak.3 tcdrain.3 \
492	tcsendbreak.3 tcflow.3 \
493	tcsendbreak.3 tcflush.3
494MLINKS+=tcsetattr.3 cfgetispeed.3 \
495	tcsetattr.3 cfgetospeed.3 \
496	tcsetattr.3 cfmakeraw.3 \
497	tcsetattr.3 cfmakesane.3 \
498	tcsetattr.3 cfsetispeed.3 \
499	tcsetattr.3 cfsetospeed.3 \
500	tcsetattr.3 cfsetspeed.3 \
501	tcsetattr.3 tcgetattr.3
502MLINKS+=ttyname.3 isatty.3 \
503	ttyname.3 ttyname_r.3
504MLINKS+=tzset.3 tzsetwall.3
505MLINKS+=unvis.3 strunvis.3 \
506	unvis.3 strunvisx.3
507MLINKS+=vis.3 nvis.3 \
508	vis.3 snvis.3 \
509	vis.3 strenvisx.3 \
510	vis.3 strnunvis.3 \
511	vis.3 strnunvisx.3 \
512	vis.3 strnvis.3 \
513	vis.3 strnvisx.3 \
514	vis.3 strsenvisx.3 \
515	vis.3 strsnvis.3 \
516	vis.3 strsnvisx.3 \
517	vis.3 strsvis.3 \
518	vis.3 strsvisx.3 \
519	vis.3 strvis.3 \
520	vis.3 strvisx.3 \
521	vis.3 svis.3
522
523MLINKS+=wordexp.3 wordfree.3
524