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