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