xref: /dragonfly/lib/libc/gen/Makefile.inc (revision ed183f8c)
1#	@(#)Makefile.inc	8.6 (Berkeley) 5/4/95
2# $FreeBSD: head/lib/libc/gen/Makefile.inc 214680 2010-11-02 17:00:56Z ed $
3
4# machine-independent gen sources
5.PATH: ${.CURDIR}/../libc/${MACHINE_ARCH}/gen ${.CURDIR}/../libc/gen
6
7CFLAGS+=-I${.CURDIR}/../libc/sysvipc
8
9CMAPS+=	${.CURDIR}/gen/Symbol.map
10
11SRCS+=  __errno_location.c _once_stub.c _pthread_stubs.c _rand48.c \
12	_spinlock_stub.c _thread_init.c \
13	alarm.c arc4random.c assert.c basename.c \
14	clock.c clock_getcpuclockid.c closedir.c confstr.c creat.c \
15	ctermid.c daemon.c devname.c dirfd.c dirname.c disklabel.c disktab.c \
16	dlfcn.c drand48.c dup3.c elf_utils.c erand48.c err.c errlst.c exec.c \
17	fdevname.c fmtcheck.c fmtmsg.c fnmatch.c fpclassify.c \
18	frexp.c fstab.c ftok.c fts.c ftw.c getbootfile.c getbsize.c \
19	getcap.c getcwd.c getdevpath.c getdomainname.c \
20	getgrent.c getgrouplist.c gethostid.c gethostname.c \
21	getloadavg.c getlogin.c getmntinfo.c getmntvinfo.c \
22	getnetgrent.c getobjformat.c getosreldate.c getpagesize.c \
23	getpeereid.c getprogname.c getpwent.c getttyent.c \
24	getusershell.c getvfsbyname.c getvfsent.c glob.c \
25	initgroups.c isatty.c isinf.c isfinite.c isnan.c isnormal.c \
26	jrand48.c killpg.c lcong48.c ldexp.c libc_dlopen.c \
27	lockf.c lrand48.c modf.c mrand48.c sysvipc_msgctl.c \
28	sysvipc_msgget.c sysvipc_msgrcv.c sysvipc_msgsnd.c nftw.c nice.c \
29	nlist.c nrand48.c ntp_gettime.c opendir.c \
30	pause.c pmadvise.c popen.c posix_spawn.c posixshm.c \
31	psignal.c pw_scan.c pwcache.c \
32	raise.c readdir.c readpassphrase.c rewinddir.c ovsbrk.c signbit.c \
33	sysvipc.c sysvipc_shmget.c sysvipc_shmctl.c \
34	sysvipc_shmdt.c sysvipc_shmat.c\
35	scandir.c seed48.c seekdir.c sysvipc_semctl.c sysvipc_semget.c sysvipc_semop.c \
36	setdomainname.c sethostname.c setjmperr.c setmode.c setprogname.c \
37	setproctitle.c \
38	siginterrupt.c siglist.c signal.c \
39	sigsetops.c sigwait.c sleep.c srand48.c \
40	stringlist.c strtofflags.c sysconf.c sysctl.c sysctlbyname.c \
41	sysctlnametomib.c syslog.c telldir.c termios.c time.c times.c \
42	ttyname.c ttyslot.c \
43	ualarm.c ucontext.c ulimit.c uname.c unvis.c usleep.c utime.c \
44	utmp.c utmpx.c \
45	valloc.c vis.c wait.c wait3.c waitpid.c waitid.c wordexp.c
46
47.if ${LIB} != {c_rtld}
48SRCS+=	tls.c
49.endif
50
51# machine-dependent gen sources
52.include "${.CURDIR}/../libc/${MACHINE_ARCH}/gen/Makefile.inc"
53
54.if ${LIB} == "c"
55MAN+=	alarm.3 arc4random.3 clock.3 \
56	basename.3 \
57	clock_getcpuclockid.3 confstr.3 creat.3 ctermid.3 daemon.3 \
58	devname.3 directory.3 dirname.3 \
59	dladdr.3 dlinfo.3 dlopen.3 \
60	dlclose.3 dlerror.3 dlfcn.3 dlsym.3 dlvsym.3 dl_iterate_phdr.3 dup3.3 \
61	endutxent.3 err.3 exec.3 \
62	fmtcheck.3 fmtmsg.3 fnmatch.3 frexp.3 ftok.3 fts.3 ftw.3 \
63	getbootfile.3 getbsize.3 getcap.3 getcontext.3 getcwd.3 \
64	getdevpath.3 getdiskbyname.3 getdisktabbyname.3 getdomainname.3 \
65	getfsent.3 getgrent.3 getgrouplist.3 \
66	gethostid.3 gethostname.3 getlastlogx.3 getloadavg.3 \
67	getmntinfo.3 getnetgrent.3 getobjformat.3 getosreldate.3 \
68	getpagesize.3 getpass.3 getpeereid.3 getprogname.3 getpwent.3 \
69	getttyent.3 getusershell.3 getvfsbyname.3 getvfsent.3 \
70	glob.3 initgroups.3 isgreater.3 killpg.3 \
71	ldexp.3 lockf.3 makecontext.3 makecontext_quick.3 modf.3 \
72	nice.3 nlist.3 pause.3 popen.3 posix_spawn.3 \
73	posix_spawn_file_actions_addopen.3 posix_spawn_file_actions_init.3 \
74	posix_spawnattr_getflags.3 posix_spawnattr_getpgroup.3 \
75	posix_spawnattr_getschedparam.3 posix_spawnattr_getschedpolicy.3 \
76	posix_spawnattr_getsigdefault.3 posix_spawnattr_getsigmask.3 \
77	posix_spawnattr_init.3 psignal.3 pwcache.3 \
78	raise.3 rand48.3 readpassphrase.3 rfork_thread.3 \
79	scandir.3 setjmp.3 setmode.3 setproctitle.3 shm_open.3 \
80	siginterrupt.3 signal.3 sigsetops.3 sleep.3 stringlist.3 \
81	strtofflags.3 sysconf.3 sysctl.3 syslog.3 tcgetpgrp.3 tcgetsid.3 \
82	tcsendbreak.3 tcsetattr.3 tcsetpgrp.3 tcsetsid.3 time.3 times.3 \
83	ttyname.3 tzset.3 ualarm.3 \
84	ucontext.3 ulimit.3 uname.3 unvis.3 usleep.3 utime.3 \
85	valloc.3 vis.3 wordexp.3
86
87MLINKS+=arc4random.3 arc4random_addrandom.3 \
88	arc4random.3 arc4random_buf.3 \
89	arc4random.3 arc4random_stir.3 \
90	arc4random.3 arc4random_uniform.3
91MLINKS+=ctermid.3 ctermid_r.3
92MLINKS+=devname.3 devname_r.3 \
93	devname.3 fdevname.3 \
94	devname.3 fdevname_r.3
95MLINKS+=directory.3 closedir.3 \
96	directory.3 dirfd.3 \
97	directory.3 fdopendir.3 \
98	directory.3 opendir.3 \
99	directory.3 readdir.3 \
100	directory.3 readdir_r.3 \
101	directory.3 rewinddir.3 \
102	directory.3 seekdir.3 \
103	directory.3 telldir.3
104MLINKS+=dlopen.3 fdlopen.3
105MLINKS+=dlsym.3 dlfunc.3
106MLINKS+=endutxent.3 getutxent.3 \
107	endutxent.3 getutxid.3 \
108	endutxent.3 getutxline.3 \
109	endutxent.3 getutxuser.3 \
110	endutxent.3 pututxline.3 \
111	endutxent.3 setutxdb.3 \
112	endutxent.3 setutxent.3
113MLINKS+=err.3 errc.3 \
114	err.3 err_set_exit.3 \
115	err.3 err_set_file.3 \
116	err.3 errx.3 \
117	err.3 verr.3 \
118	err.3 verrc.3 \
119	err.3 verrx.3 \
120	err.3 vwarn.3 \
121	err.3 vwarnc.3 \
122	err.3 vwarnx.3 \
123	err.3 warn.3 \
124	err.3 warnc.3 \
125	err.3 warnx.3
126MLINKS+=exec.3 execl.3 \
127	exec.3 execle.3 \
128	exec.3 execlp.3 \
129	exec.3 exect.3 \
130	exec.3 execv.3 \
131	exec.3 execvp.3 \
132	exec.3 execvP.3
133MLINKS+=frexp.3 frexpf.3 \
134	frexp.3 frexpl.3
135MLINKS+=fts.3 fts_children.3 \
136	fts.3 fts_close.3 \
137	fts.3 fts_get_clientptr.3 \
138	fts.3 fts_get_stream.3 \
139	fts.3 fts_open.3 \
140	fts.3 fts_read.3 \
141	fts.3 fts_set.3 \
142	fts.3 fts_set_clientptr.3
143MLINKS+=ftw.3 nftw.3
144MLINKS+=getcap.3 cgetcap.3 \
145	getcap.3 cgetclose.3 \
146	getcap.3 cgetent.3 \
147	getcap.3 cgetfirst.3 \
148	getcap.3 cgetmatch.3 \
149	getcap.3 cgetnext.3 \
150	getcap.3 cgetnum.3 \
151	getcap.3 cgetset.3 \
152	getcap.3 cgetstr.3 \
153	getcap.3 cgetustr.3
154MLINKS+=getcontext.3 setcontext.3
155MLINKS+=getcwd.3 getwd.3
156MLINKS+=getdomainname.3 setdomainname.3
157MLINKS+=getfsent.3 endfsent.3 \
158	getfsent.3 getfsfile.3 \
159	getfsent.3 getfsspec.3 \
160	getfsent.3 getfstab.3 \
161	getfsent.3 getfstype.3 \
162	getfsent.3 setfsent.3 \
163	getfsent.3 setfstab.3
164MLINKS+=getgrent.3 endgrent.3 \
165	getgrent.3 getgrent_r.3 \
166	getgrent.3 getgrgid.3 \
167	getgrent.3 getgrgid_r.3 \
168	getgrent.3 getgrnam.3 \
169	getgrent.3 getgrnam_r.3 \
170	getgrent.3 setgrent.3 \
171	getgrent.3 setgroupent.3
172MLINKS+=gethostid.3 sethostid.3
173MLINKS+=gethostname.3 sethostname.3
174MLINKS+=getlastlogx.3 updlastlogx.3 \
175	getlastlogx.3 _updwtmpx.3 \
176	getlastlogx.3 updwtmpx.3 \
177	getlastlogx.3 utmpxname.3
178MLINKS+=getmntinfo.3 getmntvinfo.3
179MLINKS+=getnetgrent.3 endnetgrent.3 \
180	getnetgrent.3 innetgr.3 \
181	getnetgrent.3 setnetgrent.3
182MLINKS+=getprogname.3 setprogname.3
183MLINKS+=getpwent.3 endpwent.3 \
184	getpwent.3 getpwent_r.3 \
185	getpwent.3 getpwnam.3 \
186	getpwent.3 getpwnam_r.3 \
187	getpwent.3 getpwuid.3 \
188	getpwent.3 getpwuid_r.3 \
189	getpwent.3 setpassent.3 \
190	getpwent.3 setpwent.3 \
191	getpwent.3 setpwfile.3
192MLINKS+=getttyent.3 endttyent.3 \
193	getttyent.3 getttynam.3 \
194	getttyent.3 isdialuptty.3 \
195	getttyent.3 isnettty.3 \
196	getttyent.3 setttyent.3
197MLINKS+=getusershell.3 endusershell.3 \
198	getusershell.3 setusershell.3
199MLINKS+=getvfsent.3 endvfsent.3 \
200	getvfsent.3 getvfsbytype.3 \
201	getvfsent.3 setvfsent.3 \
202	getvfsent.3 vfsisloadable.3 \
203	getvfsent.3 vfsload.3
204MLINKS+=glob.3 globfree.3
205MLINKS+=isgreater.3 isgreaterequal.3 \
206	isgreater.3 isless.3 \
207	isgreater.3 islessequal.3 \
208	isgreater.3 islessgreater.3 \
209	isgreater.3 isunordered.3
210MLINKS+=ldexp.3 ldexpf.3 \
211	ldexp.3 ldexpl.3
212MLINKS+=makecontext.3 swapcontext.3
213MLINKS+=makecontext_quick.3 setcontext_quick.3 \
214	makecontext_quick.3 swapcontext_quick.3
215MLINKS+=modf.3 modff.3 \
216	modf.3 modfl.3
217MLINKS+=popen.3 pclose.3
218MLINKS+=posix_spawn.3 posix_spawnp.3
219MLINKS+=posix_spawn_file_actions_addopen.3 posix_spawn_file_actions_addclose.3 \
220	posix_spawn_file_actions_addopen.3 posix_spawn_file_actions_adddup2.3
221MLINKS+=posix_spawn_file_actions_init.3 posix_spawn_file_actions_destroy.3
222MLINKS+=posix_spawnattr_getflags.3 posix_spawnattr_setflags.3
223MLINKS+=posix_spawnattr_getpgroup.3 posix_spawnattr_setpgroup.3
224MLINKS+=posix_spawnattr_getschedparam.3 posix_spawnattr_setschedparam.3
225MLINKS+=posix_spawnattr_getschedpolicy.3 posix_spawnattr_setschedpolicy.3
226MLINKS+=posix_spawnattr_getsigdefault.3 posix_spawnattr_setsigdefault.3
227MLINKS+=posix_spawnattr_getsigmask.3 posix_spawnattr_setsigmask.3
228MLINKS+=posix_spawnattr_init.3 posix_spawnattr_destroy.3
229MLINKS+=psignal.3 psiginfo.3 \
230	psignal.3 strsignal.3 \
231	psignal.3 sys_nsig.3 \
232	psignal.3 sys_siglist.3 \
233	psignal.3 sys_signame.3
234MLINKS+=pwcache.3 gid_from_group.3 \
235	pwcache.3 group_from_gid.3 \
236	pwcache.3 pwcache_groupdb.3 \
237	pwcache.3 pwcache_userdb.3 \
238	pwcache.3 uid_from_user.3 \
239	pwcache.3 user_from_uid.3
240MLINKS+=rand48.3 drand48.3 \
241	rand48.3 erand48.3 \
242	rand48.3 jrand48.3 \
243	rand48.3 lcong48.3 \
244	rand48.3 lrand48.3 \
245	rand48.3 mrand48.3 \
246	rand48.3 nrand48.3 \
247	rand48.3 seed48.3 \
248	rand48.3 srand48.3
249MLINKS+=scandir.3 alphasort.3
250MLINKS+=setjmp.3 _longjmp.3 \
251	setjmp.3 longjmp.3 \
252	setjmp.3 longjmperr.3 \
253	setjmp.3 longjmperror.3 \
254	setjmp.3 _setjmp.3 \
255	setjmp.3 siglongjmp.3 \
256	setjmp.3 sigsetjmp.3
257MLINKS+=setmode.3 getmode.3
258MLINKS+=shm_open.3 shm_unlink.3
259MLINKS+=sigsetops.3 sigaddset.3 \
260	sigsetops.3 sigdelset.3 \
261	sigsetops.3 sigemptyset.3 \
262	sigsetops.3 sigfillset.3 \
263	sigsetops.3 sigismember.3
264MLINKS+=stringlist.3 sl_add.3 \
265	stringlist.3 sl_find.3 \
266	stringlist.3 sl_free.3 \
267	stringlist.3 sl_init.3
268MLINKS+=strtofflags.3 fflagstostr.3
269MLINKS+=sysctl.3 sysctlbyname.3 \
270	sysctl.3 sysctlnametomib.3
271MLINKS+=syslog.3 closelog.3 \
272	syslog.3 openlog.3 \
273	syslog.3 setlogmask.3 \
274	syslog.3 vsyslog.3
275MLINKS+=tcsendbreak.3 tcdrain.3 \
276	tcsendbreak.3 tcflow.3 \
277	tcsendbreak.3 tcflush.3
278MLINKS+=tcsetattr.3 cfgetispeed.3 \
279	tcsetattr.3 cfgetospeed.3 \
280	tcsetattr.3 cfmakeraw.3 \
281	tcsetattr.3 cfmakesane.3 \
282	tcsetattr.3 cfsetispeed.3 \
283	tcsetattr.3 cfsetospeed.3 \
284	tcsetattr.3 cfsetspeed.3 \
285	tcsetattr.3 tcgetattr.3
286MLINKS+=ttyname.3 isatty.3 \
287	ttyname.3 ttyname_r.3
288MLINKS+=tzset.3 tzsetwall.3
289MLINKS+=unvis.3 strnunvis.3 \
290	unvis.3 strnunvisx.3 \
291	unvis.3 strunvis.3 \
292	unvis.3 strunvisx.3
293MLINKS+=vis.3 nvis.3 \
294	vis.3 snvis.3 \
295	vis.3 stravis.3 \
296	vis.3 strenvisx.3 \
297	vis.3 strnvis.3 \
298	vis.3 strnvisx.3 \
299	vis.3 strsenvisx.3 \
300	vis.3 strsnvis.3 \
301	vis.3 strsnvisx.3 \
302	vis.3 strsvis.3 \
303	vis.3 strsvisx.3 \
304	vis.3 strvis.3 \
305	vis.3 strvisx.3 \
306	vis.3 svis.3
307MLINKS+=wordexp.3 wordfree.3
308.endif
309