xref: /freebsd/lib/libc/gen/Makefile.inc (revision 8d20be1e22095c27faf8fe8b2f0d089739cc742e)
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_sandboxed.3 \
174	check_utility_compat.3 \
175	clock.3 \
176	clock_getcpuclockid.3 \
177	confstr.3 \
178	ctermid.3 \
179	daemon.3 \
180	devname.3 \
181	directory.3 \
182	dirname.3 \
183	dl_iterate_phdr.3 \
184	dladdr.3 \
185	dlinfo.3 \
186	dllockinit.3 \
187	dlopen.3 \
188	dup3.3 \
189	err.3 \
190	exec.3 \
191	feature_present.3 \
192	fmtcheck.3 \
193	fmtmsg.3 \
194	fnmatch.3 \
195	fpclassify.3 \
196	frexp.3 \
197	ftok.3 \
198	fts.3 \
199	ftw.3 \
200	getbootfile.3 \
201	getbsize.3 \
202	getcap.3 \
203	getcontext.3 \
204	getcwd.3 \
205	getdiskbyname.3 \
206	getdomainname.3 \
207	getfsent.3 \
208	getgrent.3 \
209	getgrouplist.3 \
210	gethostname.3 \
211	getloadavg.3 \
212	getmntinfo.3 \
213	getnetgrent.3 \
214	getosreldate.3 \
215	getpagesize.3 \
216	getpagesizes.3 \
217	getpass.3 \
218	getpeereid.3 \
219	getprogname.3 \
220	getpwent.3 \
221	getttyent.3 \
222	getusershell.3 \
223	getutxent.3 \
224	getvfsbyname.3 \
225	glob.3 \
226	initgroups.3 \
227	isgreater.3 \
228	ldexp.3 \
229	lockf.3 \
230	makecontext.3 \
231	modf.3 \
232	nice.3 \
233	nlist.3 \
234	pause.3 \
235	popen.3 \
236	posix_spawn.3 \
237	posix_spawn_file_actions_addopen.3 \
238	posix_spawn_file_actions_init.3 \
239	posix_spawnattr_getflags.3 \
240	posix_spawnattr_getpgroup.3 \
241	posix_spawnattr_getschedparam.3 \
242	posix_spawnattr_getschedpolicy.3 \
243	posix_spawnattr_init.3 \
244	posix_spawnattr_getsigdefault.3 \
245	posix_spawnattr_getsigmask.3 \
246	psignal.3 \
247	pwcache.3 \
248	raise.3 \
249	rand48.3 \
250	readpassphrase.3 \
251	rfork_thread.3 \
252	scandir.3 \
253	sem_destroy.3 \
254	sem_getvalue.3 \
255	sem_init.3 \
256	sem_open.3 \
257	sem_post.3 \
258	sem_timedwait.3 \
259	sem_wait.3 \
260	setjmp.3 \
261	setmode.3 \
262	setproctitle.3 \
263	siginterrupt.3 \
264	signal.3 \
265	sigsetops.3 \
266	sleep.3 \
267	statvfs.3 \
268	stringlist.3 \
269	strtofflags.3 \
270	sysconf.3 \
271	sysctl.3 \
272	syslog.3 \
273	tcgetpgrp.3 \
274	tcgetsid.3 \
275	tcsendbreak.3 \
276	tcsetattr.3 \
277	tcsetpgrp.3 \
278	tcsetsid.3 \
279	time.3 \
280	times.3 \
281	timezone.3 \
282	ttyname.3 \
283	tzset.3 \
284	ualarm.3 \
285	ucontext.3 \
286	ulimit.3 \
287	uname.3 \
288	unvis.3 \
289	usleep.3 \
290	utime.3 \
291	valloc.3 \
292	vis.3 \
293	wordexp.3
294
295MLINKS+=arc4random.3 arc4random_addrandom.3 \
296	arc4random.3 arc4random_stir.3 \
297	arc4random.3 arc4random_buf.3 \
298	arc4random.3 arc4random_uniform.3
299MLINKS+=basename.3 basename_r.3
300MLINKS+=ctermid.3 ctermid_r.3
301MLINKS+=devname.3 devname_r.3
302MLINKS+=devname.3 fdevname.3
303MLINKS+=devname.3 fdevname_r.3
304MLINKS+=directory.3 closedir.3 \
305	directory.3 dirfd.3 \
306	directory.3 opendir.3 \
307	directory.3 fdopendir.3 \
308	directory.3 readdir.3 \
309	directory.3 readdir_r.3 \
310	directory.3 rewinddir.3 \
311	directory.3 seekdir.3 \
312	directory.3 telldir.3
313MLINKS+=dlopen.3 fdlopen.3 \
314	dlopen.3 dlclose.3 \
315	dlopen.3 dlerror.3 \
316	dlopen.3 dlfunc.3 \
317	dlopen.3 dlsym.3
318MLINKS+=err.3 err_set_exit.3 \
319	err.3 err_set_file.3 \
320	err.3 errc.3 \
321	err.3 errx.3 \
322	err.3 verr.3 \
323	err.3 verrc.3 \
324	err.3 verrx.3 \
325	err.3 vwarn.3 \
326	err.3 vwarnc.3 \
327	err.3 vwarnx.3 \
328	err.3 warnc.3 \
329	err.3 warn.3 \
330	err.3 warnx.3
331MLINKS+=exec.3 execl.3 \
332	exec.3 execle.3 \
333	exec.3 execlp.3 \
334	exec.3 exect.3 \
335	exec.3 execv.3 \
336	exec.3 execvP.3 \
337	exec.3 execvp.3
338MLINKS+=fpclassify.3 finite.3 \
339	fpclassify.3 finitef.3 \
340	fpclassify.3 isfinite.3 \
341	fpclassify.3 isinf.3 \
342	fpclassify.3 isnan.3 \
343	fpclassify.3 isnormal.3
344MLINKS+=frexp.3 frexpf.3 \
345	frexp.3 frexpl.3
346MLINKS+=fts.3 fts_children.3 \
347	fts.3 fts_close.3 \
348	fts.3 fts_open.3 \
349	fts.3 fts_read.3 \
350	fts.3 fts_set.3 \
351	fts.3 fts_set_clientptr.3 \
352	fts.3 fts_get_clientptr.3 \
353	fts.3 fts_get_stream.3
354MLINKS+=ftw.3 nftw.3
355MLINKS+=getcap.3 cgetcap.3 \
356	getcap.3 cgetclose.3 \
357	getcap.3 cgetent.3 \
358	getcap.3 cgetfirst.3 \
359	getcap.3 cgetmatch.3 \
360	getcap.3 cgetnext.3 \
361	getcap.3 cgetnum.3 \
362	getcap.3 cgetset.3 \
363	getcap.3 cgetstr.3 \
364	getcap.3 cgetustr.3
365MLINKS+=getcwd.3 getwd.3
366MLINKS+=getcontext.3 getcontextx.3
367MLINKS+=getcontext.3 setcontext.3
368MLINKS+=getdomainname.3 setdomainname.3
369MLINKS+=getfsent.3 endfsent.3 \
370	getfsent.3 getfsfile.3 \
371	getfsent.3 getfsspec.3 \
372	getfsent.3 getfstype.3 \
373	getfsent.3 setfsent.3 \
374	getfsent.3 setfstab.3 \
375	getfsent.3 getfstab.3
376MLINKS+=getgrent.3 endgrent.3 \
377	getgrent.3 getgrgid.3 \
378	getgrent.3 getgrnam.3 \
379	getgrent.3 setgrent.3 \
380	getgrent.3 setgroupent.3 \
381	getgrent.3 getgrent_r.3 \
382	getgrent.3 getgrnam_r.3 \
383	getgrent.3 getgrgid_r.3
384MLINKS+=gethostname.3 sethostname.3
385MLINKS+=getnetgrent.3 endnetgrent.3 \
386	getnetgrent.3 innetgr.3 \
387	getnetgrent.3 setnetgrent.3
388MLINKS+=getprogname.3 setprogname.3
389MLINKS+=getpwent.3 endpwent.3 \
390	getpwent.3 getpwnam.3 \
391	getpwent.3 getpwuid.3 \
392	getpwent.3 setpassent.3 \
393	getpwent.3 setpwent.3 \
394	getpwent.3 setpwfile.3 \
395	getpwent.3 getpwent_r.3 \
396	getpwent.3 getpwnam_r.3 \
397	getpwent.3 getpwuid_r.3
398MLINKS+=getttyent.3 endttyent.3 \
399	getttyent.3 getttynam.3 \
400	getttyent.3 isdialuptty.3 \
401	getttyent.3 isnettty.3 \
402	getttyent.3 setttyent.3
403MLINKS+=getusershell.3 endusershell.3 \
404	getusershell.3 setusershell.3
405MLINKS+=getutxent.3 endutxent.3 \
406	getutxent.3 getutxid.3 \
407	getutxent.3 getutxline.3 \
408	getutxent.3 getutxuser.3 \
409	getutxent.3 pututxline.3 \
410	getutxent.3 setutxdb.3 \
411	getutxent.3 setutxent.3 \
412	getutxent.3 utmpx.3
413MLINKS+=glob.3 globfree.3
414MLINKS+=isgreater.3 isgreaterequal.3 \
415	isgreater.3 isless.3 \
416	isgreater.3 islessequal.3 \
417	isgreater.3 islessgreater.3 \
418	isgreater.3 isunordered.3
419MLINKS+=ldexp.3 ldexpf.3 \
420	ldexp.3 ldexpl.3
421MLINKS+=makecontext.3 swapcontext.3
422MLINKS+=modf.3 modff.3 \
423	modf.3 modfl.3
424MLINKS+=popen.3 pclose.3
425MLINKS+=posix_spawn.3 posix_spawnp.3 \
426	posix_spawn_file_actions_addopen.3 posix_spawn_file_actions_addclose.3 \
427	posix_spawn_file_actions_addopen.3 posix_spawn_file_actions_adddup2.3 \
428	posix_spawn_file_actions_init.3 posix_spawn_file_actions_destroy.3 \
429	posix_spawnattr_getflags.3 posix_spawnattr_setflags.3 \
430	posix_spawnattr_getpgroup.3 posix_spawnattr_setpgroup.3 \
431	posix_spawnattr_getschedparam.3 posix_spawnattr_setschedparam.3 \
432	posix_spawnattr_getschedpolicy.3 posix_spawnattr_setschedpolicy.3 \
433	posix_spawnattr_getsigdefault.3 posix_spawnattr_setsigdefault.3 \
434	posix_spawnattr_getsigmask.3 posix_spawnattr_setsigmask.3 \
435	posix_spawnattr_init.3 posix_spawnattr_destroy.3
436MLINKS+=psignal.3 strsignal.3 \
437	psignal.3 sys_siglist.3 \
438	psignal.3 sys_signame.3
439MLINKS+=pwcache.3 group_from_gid.3 \
440	pwcache.3 user_from_uid.3
441MLINKS+=rand48.3 _rand48.3 \
442	rand48.3 drand48.3 \
443	rand48.3 erand48.3 \
444	rand48.3 jrand48.3 \
445	rand48.3 lcong48.3 \
446	rand48.3 lrand48.3 \
447	rand48.3 mrand48.3 \
448	rand48.3 nrand48.3 \
449	rand48.3 seed48.3 \
450	rand48.3 srand48.3
451MLINKS+=scandir.3 alphasort.3
452MLINKS+=sem_open.3 sem_close.3 \
453	sem_open.3 sem_unlink.3
454MLINKS+=sem_wait.3 sem_trywait.3
455MLINKS+=setjmp.3 _longjmp.3 \
456	setjmp.3 _setjmp.3 \
457	setjmp.3 longjmp.3 \
458	setjmp.3 longjmperr.3 \
459	setjmp.3 longjmperror.3 \
460	setjmp.3 siglongjmp.3 \
461	setjmp.3 sigsetjmp.3
462MLINKS+=setmode.3 getmode.3
463MLINKS+=sigsetops.3 sigaddset.3 \
464	sigsetops.3 sigdelset.3 \
465	sigsetops.3 sigemptyset.3 \
466	sigsetops.3 sigfillset.3 \
467	sigsetops.3 sigismember.3
468MLINKS+=statvfs.3 fstatvfs.3
469MLINKS+=stringlist.3 sl_add.3 \
470	stringlist.3 sl_find.3 \
471	stringlist.3 sl_free.3 \
472	stringlist.3 sl_init.3
473MLINKS+=strtofflags.3 fflagstostr.3
474MLINKS+=sysctl.3 sysctlbyname.3 \
475	sysctl.3 sysctlnametomib.3
476MLINKS+=syslog.3 closelog.3 \
477	syslog.3 openlog.3 \
478	syslog.3 setlogmask.3 \
479	syslog.3 vsyslog.3
480MLINKS+=tcsendbreak.3 tcdrain.3 \
481	tcsendbreak.3 tcflow.3 \
482	tcsendbreak.3 tcflush.3
483MLINKS+=tcsetattr.3 cfgetispeed.3 \
484	tcsetattr.3 cfgetospeed.3 \
485	tcsetattr.3 cfmakeraw.3 \
486	tcsetattr.3 cfmakesane.3 \
487	tcsetattr.3 cfsetispeed.3 \
488	tcsetattr.3 cfsetospeed.3 \
489	tcsetattr.3 cfsetspeed.3 \
490	tcsetattr.3 tcgetattr.3
491MLINKS+=ttyname.3 isatty.3 \
492	ttyname.3 ttyname_r.3
493MLINKS+=tzset.3 tzsetwall.3
494MLINKS+=unvis.3 strunvis.3 \
495	unvis.3 strunvisx.3
496MLINKS+=vis.3 nvis.3 \
497	vis.3 snvis.3 \
498	vis.3 strenvisx.3 \
499	vis.3 strnunvis.3 \
500	vis.3 strnunvisx.3 \
501	vis.3 strnvis.3 \
502	vis.3 strnvisx.3 \
503	vis.3 strsenvisx.3 \
504	vis.3 strsnvis.3 \
505	vis.3 strsnvisx.3 \
506	vis.3 strsvis.3 \
507	vis.3 strsvisx.3 \
508	vis.3 strvis.3 \
509	vis.3 strvisx.3 \
510	vis.3 svis.3
511
512MLINKS+=wordexp.3 wordfree.3
513