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