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