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