head 1.14; access; symbols perseant-exfatfs-base-20250801:1.14 perseant-exfatfs-base-20240630:1.14 bouyer-sunxi-drm:1.14.0.46 bouyer-sunxi-drm-base:1.14 cjep_sun2x:1.14.0.44 cjep_sun2x-base:1.14 cjep_staticlib_x-base1:1.14 cjep_staticlib_x:1.14.0.42 cjep_staticlib_x-base:1.14 thorpej-futex-base:1.14 bouyer-xenpvh-base2:1.14 phil-wifi-20200421:1.14 bouyer-xenpvh-base1:1.14 phil-wifi-20200411:1.14 bouyer-xenpvh:1.14.0.40 bouyer-xenpvh-base:1.14 phil-wifi-20200406:1.14 ad-namecache-base3:1.14 ad-namecache-base2:1.14 ad-namecache-base1:1.14 ad-namecache:1.14.0.38 ad-namecache-base:1.14 isaki-audio2:1.14.0.36 isaki-audio2-base:1.14 pgoyette-compat-merge-20190127:1.14 pgoyette-compat-20190127:1.14 pgoyette-compat-20190118:1.14 pgoyette-compat-1226:1.14 pgoyette-compat-1126:1.14 pgoyette-compat-1020:1.14 pgoyette-compat-0930:1.14 pgoyette-compat-0906:1.14 pgoyette-compat-0728:1.14 pgoyette-compat-0625:1.14 pgoyette-compat-0521:1.14 pgoyette-compat-0502:1.14 pgoyette-compat-0422:1.14 pgoyette-compat-0415:1.14 pgoyette-compat-0407:1.14 pgoyette-compat-0330:1.14 pgoyette-compat-0322:1.14 pgoyette-compat-0315:1.14 pgoyette-compat:1.14.0.34 pgoyette-compat-base:1.14 perseant-stdc-iso10646:1.14.0.32 perseant-stdc-iso10646-base:1.14 prg-localcount2-base3:1.14 prg-localcount2-base2:1.14 prg-localcount2-base1:1.14 prg-localcount2:1.14.0.30 prg-localcount2-base:1.14 pgoyette-localcount-20170426:1.14 bouyer-socketcan-base1:1.14 pgoyette-localcount-20170320:1.14 bouyer-socketcan:1.14.0.28 bouyer-socketcan-base:1.14 pgoyette-localcount-20170107:1.14 pgoyette-localcount-20161104:1.14 localcount-20160914:1.14 pgoyette-localcount-20160806:1.14 pgoyette-localcount-20160726:1.14 pgoyette-localcount:1.14.0.26 pgoyette-localcount-base:1.14 netbsd-5-2-3-RELEASE:1.13 netbsd-5-1-5-RELEASE:1.13 yamt-pagecache-base9:1.14 yamt-pagecache-tag8:1.14 tls-earlyentropy:1.14.0.24 tls-earlyentropy-base:1.14 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.14 riastradh-drm2-base3:1.14 netbsd-5-2-2-RELEASE:1.13 netbsd-5-1-4-RELEASE:1.13 netbsd-5-2-1-RELEASE:1.13 netbsd-5-1-3-RELEASE:1.13 rmind-smpnet-nbase:1.14 rmind-smpnet:1.14.0.20 rmind-smpnet-base:1.14 agc-symver:1.14.0.22 agc-symver-base:1.14 tls-maxphys-base:1.14 yamt-pagecache-base8:1.14 netbsd-5-2:1.13.0.54 yamt-pagecache-base7:1.14 netbsd-5-2-RELEASE:1.13 netbsd-5-2-RC1:1.13 yamt-pagecache-base6:1.14 yamt-pagecache-base5:1.14 yamt-pagecache-base4:1.14 netbsd-5-1-2-RELEASE:1.13 netbsd-5-1-1-RELEASE:1.13 jmcneill-usbmp:1.14.0.18 jmcneill-usbmp-base:1.14 jmcneill-audiomp3:1.14.0.16 jmcneill-audiomp3-base:1.14 yamt-pagecache-base3:1.14 yamt-pagecache-base2:1.14 yamt-pagecache:1.14.0.14 yamt-pagecache-base:1.14 rmind-uvmplock-nbase:1.14 bouyer-quota2-nbase:1.14 bouyer-quota2:1.14.0.12 bouyer-quota2-base:1.14 jruoho-x86intr:1.14.0.10 jruoho-x86intr-base:1.14 matt-nb5-mips64-premerge-20101231:1.13 matt-nb5-pq3:1.13.0.52 matt-nb5-pq3-base:1.13 netbsd-5-1:1.13.0.50 netbsd-5-1-RELEASE:1.13 yamt-nfs-mp-base11:1.14 netbsd-5-1-RC4:1.13 matt-nb5-mips64-k15:1.13 uebayasi-xip-base2:1.14 yamt-nfs-mp-base10:1.14 netbsd-5-1-RC3:1.13 netbsd-5-1-RC2:1.13 netbsd-5-1-RC1:1.13 rmind-uvmplock:1.14.0.8 rmind-uvmplock-base:1.14 yamt-nfs-mp-base9:1.14 uebayasi-xip:1.14.0.6 uebayasi-xip-base:1.14 netbsd-5-0-2-RELEASE:1.13 matt-nb5-mips64-premerge-20091211:1.13 yamt-nfs-mp-base8:1.14 matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.13 matt-nb4-mips64-k7-u2a-k9b:1.13 matt-nb5-mips64-u1-k1-k5:1.13 yamt-nfs-mp-base7:1.14 matt-nb5-mips64:1.13.0.48 netbsd-5-0-1-RELEASE:1.13 jymxensuspend-base:1.14 yamt-nfs-mp-base6:1.14 yamt-nfs-mp-base5:1.14 yamt-nfs-mp-base4:1.14 jym-xensuspend-nbase:1.14 yamt-nfs-mp-base3:1.14 netbsd-5-0:1.13.0.46 netbsd-5-0-RELEASE:1.13 netbsd-5-0-RC4:1.13 netbsd-5-0-RC3:1.13 netbsd-5-0-RC2:1.13 jym-xensuspend:1.14.0.4 jym-xensuspend-base:1.14 netbsd-5-0-RC1:1.13 haad-dm-base2:1.14 haad-nbase2:1.14 ad-audiomp2:1.14.0.2 ad-audiomp2-base:1.14 netbsd-5:1.13.0.44 netbsd-5-base:1.13 nick-hppapmap:1.13.0.42 nick-hppapmap-base:1.13 matt-mips64-base2:1.13 matt-mips64:1.13.0.40 haad-dm-base1:1.13 wrstuden-revivesa-base-4:1.13 netbsd-4-0-1-RELEASE:1.12 wrstuden-revivesa-base-3:1.13 wrstuden-revivesa-base-2:1.13 wrstuden-fixsa-newbase:1.12 nick-csl-alignment-base5:1.13 haad-dm:1.13.0.38 haad-dm-base:1.14 wrstuden-revivesa-base-1:1.13 simonb-wapbl-nbase:1.13 yamt-pf42-base4:1.13 simonb-wapbl:1.13.0.36 simonb-wapbl-base:1.13 yamt-pf42-base3:1.13 hpcarm-cleanup-nbase:1.13 yamt-pf42-baseX:1.13 yamt-pf42-base2:1.13 yamt-nfs-mp-base2:1.13 wrstuden-revivesa:1.13.0.34 wrstuden-revivesa-base:1.13 yamt-nfs-mp:1.13.0.32 yamt-nfs-mp-base:1.13 yamt-pf42:1.13.0.30 yamt-pf42-base:1.13 ad-socklock-base1:1.13 yamt-lazymbuf-base15:1.13 yamt-lazymbuf-base14:1.13 keiichi-mipv6-nbase:1.13 mjf-devfs2:1.13.0.28 mjf-devfs2-base:1.14 nick-net80211-sync:1.13.0.26 nick-net80211-sync-base:1.13 keiichi-mipv6:1.13.0.24 keiichi-mipv6-base:1.13 bouyer-xeni386-merge1:1.13 matt-armv6-prevmlocking:1.13 wrstuden-fixsa-base-1:1.12 vmlocking2-base3:1.13 netbsd-4-0:1.12.0.76 netbsd-4-0-RELEASE:1.12 bouyer-xeni386-nbase:1.13 yamt-kmem-base3:1.13 cube-autoconf:1.13.0.22 cube-autoconf-base:1.13 yamt-kmem-base2:1.13 bouyer-xeni386:1.13.0.20 bouyer-xeni386-base:1.13 yamt-kmem:1.13.0.18 yamt-kmem-base:1.13 vmlocking2-base2:1.13 reinoud-bufcleanup-nbase:1.13 vmlocking2:1.13.0.16 vmlocking2-base1:1.13 netbsd-4-0-RC5:1.12 matt-nb4-arm:1.12.0.74 matt-nb4-arm-base:1.12 matt-armv6-nbase:1.13 jmcneill-base:1.13 netbsd-4-0-RC4:1.12 mjf-devfs:1.13.0.14 mjf-devfs-base:1.13 bouyer-xenamd64-base2:1.13 vmlocking-nbase:1.13 yamt-x86pmap-base4:1.13 bouyer-xenamd64:1.13.0.12 bouyer-xenamd64-base:1.13 netbsd-4-0-RC3:1.12 yamt-x86pmap-base3:1.13 yamt-x86pmap-base2:1.13 netbsd-4-0-RC2:1.12 yamt-x86pmap:1.13.0.10 yamt-x86pmap-base:1.13 netbsd-4-0-RC1:1.12 matt-armv6:1.13.0.8 matt-armv6-base:1.13 matt-mips64-base:1.13 jmcneill-pm:1.13.0.6 jmcneill-pm-base:1.13 hpcarm-cleanup:1.13.0.4 hpcarm-cleanup-base:1.13 nick-csl-alignment:1.13.0.2 nick-csl-alignment-base:1.13 netbsd-3-1-1-RELEASE:1.12 netbsd-3-0-3-RELEASE:1.12 yamt-idlelwp-base8:1.13 wrstuden-fixsa:1.12.0.72 wrstuden-fixsa-base:1.12 thorpej-atomic:1.12.0.70 thorpej-atomic-base:1.12 reinoud-bufcleanup:1.12.0.68 reinoud-bufcleanup-base:1.13 mjf-ufs-trans:1.12.0.66 mjf-ufs-trans-base:1.13 vmlocking:1.12.0.64 vmlocking-base:1.13 ad-audiomp:1.12.0.62 ad-audiomp-base:1.12 yamt-idlelwp:1.12.0.60 post-newlock2-merge:1.12 newlock2-nbase:1.12 yamt-splraiseipl-base5:1.12 yamt-splraiseipl-base4:1.12 yamt-splraiseipl-base3:1.12 abandoned-netbsd-4-base:1.12 abandoned-netbsd-4:1.12.0.50 netbsd-3-1:1.12.0.56 netbsd-3-1-RELEASE:1.12 netbsd-3-0-2-RELEASE:1.12 yamt-splraiseipl-base2:1.12 netbsd-3-1-RC4:1.12 yamt-splraiseipl:1.12.0.54 yamt-splraiseipl-base:1.12 netbsd-3-1-RC3:1.12 yamt-pdpolicy-base9:1.12 newlock2:1.12.0.52 newlock2-base:1.12 yamt-pdpolicy-base8:1.12 netbsd-3-1-RC2:1.12 netbsd-3-1-RC1:1.12 yamt-pdpolicy-base7:1.12 netbsd-4:1.12.0.58 netbsd-4-base:1.12 yamt-pdpolicy-base6:1.12 chap-midi-nbase:1.12 netbsd-3-0-1-RELEASE:1.12 gdamore-uart:1.12.0.48 gdamore-uart-base:1.12 simonb-timcounters-final:1.12 yamt-pdpolicy-base5:1.12 chap-midi:1.12.0.46 chap-midi-base:1.12 yamt-pdpolicy-base4:1.12 yamt-pdpolicy-base3:1.12 peter-altq-base:1.12 peter-altq:1.12.0.44 yamt-pdpolicy-base2:1.12 elad-kernelauth-base:1.12 elad-kernelauth:1.12.0.42 yamt-pdpolicy:1.12.0.40 yamt-pdpolicy-base:1.12 yamt-uio_vmspace-base5:1.12 simonb-timecounters:1.12.0.38 simonb-timecounters-base:1.12 rpaulo-netinet-merge-pcb:1.12.0.36 rpaulo-netinet-merge-pcb-base:1.12 yamt-uio_vmspace:1.12.0.34 netbsd-3-0:1.12.0.32 netbsd-3-0-RELEASE:1.12 netbsd-3-0-RC6:1.12 yamt-readahead-base3:1.12 netbsd-3-0-RC5:1.12 netbsd-3-0-RC4:1.12 netbsd-3-0-RC3:1.12 yamt-readahead-base2:1.12 netbsd-3-0-RC2:1.12 yamt-readahead-pervnode:1.12 yamt-readahead-perfile:1.12 yamt-readahead:1.12.0.30 yamt-readahead-base:1.12 netbsd-3-0-RC1:1.12 yamt-vop-base3:1.12 netbsd-2-0-3-RELEASE:1.12 netbsd-2-1:1.12.0.28 yamt-vop-base2:1.12 thorpej-vnode-attr:1.12.0.26 thorpej-vnode-attr-base:1.12 netbsd-2-1-RELEASE:1.12 yamt-vop:1.12.0.24 yamt-vop-base:1.12 netbsd-2-1-RC6:1.12 netbsd-2-1-RC5:1.12 netbsd-2-1-RC4:1.12 netbsd-2-1-RC3:1.12 netbsd-2-1-RC2:1.12 netbsd-2-1-RC1:1.12 yamt-lazymbuf:1.12.0.22 yamt-km-base4:1.12 netbsd-2-0-2-RELEASE:1.12 yamt-km-base3:1.12 netbsd-3:1.12.0.20 netbsd-3-base:1.12 yamt-km-base2:1.12 yamt-km:1.12.0.16 yamt-km-base:1.12 kent-audio2:1.12.0.14 kent-audio2-base:1.12 netbsd-2-0-1-RELEASE:1.12 kent-audio1-beforemerge:1.12 netbsd-2:1.12.0.12 netbsd-2-base:1.12 kent-audio1:1.12.0.10 kent-audio1-base:1.12 netbsd-2-0-RELEASE:1.12 netbsd-2-0-RC5:1.12 netbsd-2-0-RC4:1.12 netbsd-2-0-RC3:1.12 netbsd-2-0-RC2:1.12 netbsd-2-0-RC1:1.12 netbsd-2-0:1.12.0.8 netbsd-2-0-base:1.12 BEFORE-IPF411:1.12 netbsd-1-6-PATCH002-RELEASE:1.9 netbsd-1-6-PATCH002:1.9 netbsd-1-6-PATCH002-RC4:1.9 netbsd-1-6-PATCH002-RC3:1.9 netbsd-1-6-PATCH002-RC2:1.9 netbsd-1-6-PATCH002-RC1:1.9 ktrace-lwp:1.12.0.6 ktrace-lwp-base:1.12 netbsd-1-6-PATCH001:1.9 netbsd-1-6-PATCH001-RELEASE:1.9 netbsd-1-6-PATCH001-RC3:1.9 netbsd-1-6-PATCH001-RC2:1.9 netbsd-1-6-PATCH001-RC1:1.9 nathanw_sa_end:1.6.2.5 nathanw_sa_before_merge:1.12 fvdl_fs64_base:1.12 gmcgarry_ctxsw:1.12.0.4 gmcgarry_ctxsw_base:1.12 gmcgarry_ucred:1.12.0.2 gmcgarry_ucred_base:1.12 nathanw_sa_base:1.12 kqueue-aftermerge:1.11 kqueue-beforemerge:1.11 netbsd-1-6-RELEASE:1.9 netbsd-1-6-RC3:1.9 netbsd-1-6-RC2:1.9 netbsd-1-6-RC1:1.9 netbsd-1-6:1.9.0.10 netbsd-1-6-base:1.9 gehenna-devsw:1.9.0.8 gehenna-devsw-base:1.11 netbsd-1-5-PATCH003:1.3 eeh-devprop:1.9.0.6 eeh-devprop-base:1.9 newlock:1.9.0.4 newlock-base:1.9 ifpoll-base:1.9 thorpej-mips-cache:1.7.0.6 thorpej-mips-cache-base:1.8 thorpej-devvp-base3:1.7 thorpej-devvp-base2:1.7 post-chs-ubcperf:1.7 pre-chs-ubcperf:1.7 thorpej-devvp:1.7.0.4 thorpej-devvp-base:1.7 netbsd-1-5-PATCH002:1.3 kqueue:1.7.0.2 kqueue-base:1.11 netbsd-1-5-PATCH001:1.3 thorpej_scsipi_beforemerge:1.6 nathanw_sa:1.6.0.2 thorpej_scsipi_nbase:1.6 netbsd-1-5-RELEASE:1.3 netbsd-1-5-BETA2:1.3 netbsd-1-5-BETA:1.3 netbsd-1-4-PATCH003:1.3 netbsd-1-5-ALPHA2:1.3 netbsd-1-5:1.3.0.18 netbsd-1-5-base:1.3 minoura-xpg4dl-base:1.3 minoura-xpg4dl:1.3.0.16 netbsd-1-4-PATCH002:1.3 chs-ubc2-newbase:1.3 wrstuden-devbsize-19991221:1.3 wrstuden-devbsize:1.3.0.14 wrstuden-devbsize-base:1.3 kame_141_19991130:1.3 comdex-fall-1999:1.3.0.12 comdex-fall-1999-base:1.3 fvdl-softdep:1.3.0.10 fvdl-softdep-base:1.3 thorpej_scsipi:1.3.0.8 thorpej_scsipi_base:1.6 netbsd-1-4-PATCH001:1.3 kame_14_19990705:1.3 kame_14_19990628:1.3 kame:1.3.0.6 chs-ubc2:1.3.0.4 chs-ubc2-base:1.3 netbsd-1-4-RELEASE:1.3 netbsd-1-4:1.3.0.2 netbsd-1-4-base:1.3 netbsd-1-3-PATCH003:1.1 netbsd-1-3-PATCH003-CANDIDATE2:1.1 kenh-if-detach:1.2.0.6 kenh-if-detach-base:1.2 netbsd-1-3-PATCH003-CANDIDATE1:1.1 netbsd-1-3-PATCH003-CANDIDATE0:1.1 chs-ubc:1.2.0.4 chs-ubc-base:1.2 eeh-paddr_t:1.2.0.2 eeh-paddr_t-base:1.2 netbsd-1-3-PATCH002:1.1 netbsd-1-3-PATCH001:1.1 netbsd-1-3-RELEASE:1.1 netbsd-1-3-BETA:1.1 netbsd-1-3:1.1.0.14 netbsd-1-3-base:1.1 thorpej-signal:1.1.0.12 thorpej-signal-base:1.1 marc-pcmcia:1.1.0.10 marc-pcmcia-bp:1.1 marc-pcmcia-base:1.1 bouyer-scsipi:1.1.0.8 is-newarp-before-merge:1.1 is-newarp:1.1.0.6 is-newarp-base:1.1 mrg-vm-swap:1.1.0.4 thorpej-setroot:1.1.0.2; locks; strict; comment @# @; 1.14 date 2008.11.12.12.36.21; author ad; state dead; branches; next 1.13; 1.13 date 2007.04.22.08.30.01; author dsl; state Exp; branches 1.13.28.1 1.13.32.1 1.13.38.1 1.13.42.1; next 1.12; 1.12 date 2002.11.23.02.15.48; author lha; state Exp; branches 1.12.22.1 1.12.60.1 1.12.64.1 1.12.66.1; next 1.11; 1.11 date 2002.06.02.23.46.49; author thorpej; state Exp; branches; next 1.10; 1.10 date 2002.06.01.20.13.42; author itojun; state Exp; branches; next 1.9; 1.9 date 2002.02.10.15.42.57; author mrg; state Exp; branches 1.9.8.1; next 1.8; 1.8 date 2001.10.31.18.27.31; author jdolecek; state Exp; branches; next 1.7; 1.7 date 2001.06.06.21.38.01; author mrg; state Exp; branches 1.7.2.1 1.7.6.1; next 1.6; 1.6 date 2000.12.13.11.18.39; author enami; state Exp; branches 1.6.2.1; next 1.5; 1.5 date 2000.12.09.11.21.41; author jdolecek; state Exp; branches; next 1.4; 1.4 date 2000.12.08.20.15.19; author jdolecek; state Exp; branches; next 1.3; 1.3 date 99.02.13.02.54.52; author lukem; state Exp; branches 1.3.8.1; next 1.2; 1.2 date 97.10.26.21.58.37; author lukem; state Exp; branches; next 1.1; 1.1 date 96.08.28.06.17.28; author mrg; state Exp; branches; next ; 1.13.28.1 date 2009.01.17.13.29.23; author mjf; state dead; branches; next ; 1.13.32.1 date 2009.05.04.08.13.54; author yamt; state dead; branches; next ; 1.13.38.1 date 2008.12.13.01.15.19; author haad; state dead; branches; next ; 1.13.42.1 date 2009.01.19.13.20.01; author skrll; state dead; branches; next ; 1.12.22.1 date 2007.09.03.14.41.35; author yamt; state Exp; branches; next ; 1.12.60.1 date 2007.05.07.10.55.52; author yamt; state Exp; branches; next ; 1.12.64.1 date 2007.06.08.14.17.32; author ad; state Exp; branches; next ; 1.12.66.1 date 2007.07.11.20.10.36; author mjf; state Exp; branches; next ; 1.9.8.1 date 2002.06.20.16.02.27; author gehenna; state Exp; branches; next ; 1.7.2.1 date 2002.01.10.20.00.52; author thorpej; state Exp; branches; next 1.7.2.2; 1.7.2.2 date 2002.03.16.16.02.01; author jdolecek; state Exp; branches; next 1.7.2.3; 1.7.2.3 date 2002.06.23.17.49.56; author jdolecek; state Exp; branches; next ; 1.7.6.1 date 2001.11.12.21.19.06; author thorpej; state Exp; branches; next ; 1.6.2.1 date 2001.06.21.20.07.27; author nathanw; state Exp; branches; next 1.6.2.2; 1.6.2.2 date 2001.11.14.19.16.56; author nathanw; state Exp; branches; next 1.6.2.3; 1.6.2.3 date 2002.02.28.04.14.53; author nathanw; state Exp; branches; next 1.6.2.4; 1.6.2.4 date 2002.06.20.03.47.41; author nathanw; state Exp; branches; next 1.6.2.5; 1.6.2.5 date 2002.12.11.06.46.27; author thorpej; state Exp; branches; next ; 1.3.8.1 date 2000.12.13.15.50.25; author bouyer; state Exp; branches; next ; desc @@ 1.14 log @Remove LKMs and switch to the module framework, pass 1. Proposed on tech-kern@@. @ text @# $NetBSD: Makefile,v 1.13 2007/04/22 08:30:01 dsl Exp $ .include "../Makefile.inc" USE_32= .include "../svr4/Makefile.common" # common source files SRCS+= lkminit_emul.c SRCS+= svr4_errno.c svr4_exec.c svr4_fcntl.c svr4_filio.c svr4_ioctl.c \ svr4_ipc.c svr4_lwp.c svr4_misc.c svr4_net.c svr4_resource.c \ svr4_signal.c svr4_socket.c svr4_sockio.c svr4_stat.c svr4_stream.c \ svr4_syscalls.c svr4_sysent.c svr4_termios.c svr4_ttold.c SRCS+= svr4_machdep.c # XXXX - temporary, not applicable for kernel with COMPAT_43 #.PATH: $S/compat/common #SRCS+= uipc_syscalls_43.c vfs_syscalls_43.c .if ${MACHINE} == "i386" SRCS+= svr4_sigcode.S svr4_syscall.c .endif .if ${MACHINE} == "sparc" SRCS+= svr4_sigcode.s .endif .if ${MACHINE} == "sparc64" .if ${MACHINE_ARCH} == "sparc64" SRCS+= svr4_sigcode64.s .else SRCS+= svr4_32_sigcode.s .endif .endif .include @ 1.13 log @Change the way that emulations locate files within the emulation root to avoid having to allocate space in the 'stackgap' - which is very LWP unfriendly. The additional code for non-emulation namei() is trivial, the reduction for the emulations is massive. The vnode for a processes emulation root is saved in the cwdi structure during process exec. If the emulation root the TRYEMULROOT flag are set, namei() will do an initial search for absolute pathnames in the emulation root, if that fails it will retry from the normal root. ".." at the emulation root will always go to the real root, even in the middle of paths and when expanding symlinks. Absolute symlinks found using absolute paths in the emulation root will be relative to the emulation root (so /usr/lib/xxx.so -> /lib/xxx.so links inside the emulation root don't need changing). If the root of the emulation would be returned (for an emulation lookup), then the real root is returned instead (matching the behaviour of emul_lookup, but being a cheap comparison here) so that programs that scan "../.." looking for the root dircetory don't loop forever. The target for symbolic links is no longer mangled (it used to get the CHECK_ALT_xxx() treatment, so could get /emul/xxx prepended). CHECK_ALT_xxx() are no more. Most of the change is deleting them, and adding TRYEMULROOT to the flags to NDINIT(). A lot of the emulation system call stubs could now be deleted. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.12 2002/11/23 02:15:48 lha Exp $ @ 1.13.32.1 log @sync with head. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.13 2007/04/22 08:30:01 dsl Exp $ @ 1.13.42.1 log @Sync with HEAD. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.13 2007/04/22 08:30:01 dsl Exp $ @ 1.13.28.1 log @Sync with HEAD. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.13 2007/04/22 08:30:01 dsl Exp $ @ 1.13.38.1 log @Update haad-dm branch to haad-dm-base2. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.13 2007/04/22 08:30:01 dsl Exp $ @ 1.12 log @deal with the .s -> .S change for i386 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.11 2002/06/02 23:46:49 thorpej Exp $ a2 1 COMPAT_UTIL_OVERRIDE= svr4 @ 1.12.22.1 log @sync with head. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.12 2002/11/23 02:15:48 lha Exp $ d3 1 @ 1.12.66.1 log @Sync with head. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.13 2007/04/22 08:30:01 dsl Exp $ d3 1 @ 1.12.64.1 log @Sync with head. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.12 2002/11/23 02:15:48 lha Exp $ d3 1 @ 1.12.60.1 log @sync with head. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.12 2002/11/23 02:15:48 lha Exp $ d3 1 @ 1.11 log @Revert rev. 1.10 of Makefile and fix the problem properly by adding -D_KERNEL -D_LKM to AFLAGS in Makefile.common. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.10 2002/06/01 20:13:42 itojun Exp $ d21 1 a21 1 SRCS+= svr4_sigcode.s svr4_syscall.c @ 1.10 log @not sure if it is right, but svr4_sigcode.s does not compile on i386 without it. PR 17121 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.9 2002/02/10 15:42:57 mrg Exp $ a20 1 AFLAGS+= -D__ELF__ -D_KERNEL @ 1.9 log @build svr4_sigcode.s on sparc @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.8 2001/10/31 18:27:31 jdolecek Exp $ d21 1 @ 1.9.8.1 log @catch up with -current. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.11 2002/06/02 23:46:49 thorpej Exp $ @ 1.8 log @Add the COMPAT_UTIL_OVERRIDE stuff, and (commented out) COMPAT_43 stuff @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.7 2001/06/06 21:38:01 mrg Exp $ d22 4 @ 1.7 log @build an svr4_32 LKM. create common framework for svr4 & svr4_32 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 2000/12/13 11:18:39 enami Exp $ d3 1 d15 4 @ 1.7.2.1 log @Sync kqueue branch with -current. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.8 2001/10/31 18:27:31 jdolecek Exp $ a2 1 COMPAT_UTIL_OVERRIDE= svr4 a13 4 # XXXX - temporary, not applicable for kernel with COMPAT_43 #.PATH: $S/compat/common #SRCS+= uipc_syscalls_43.c vfs_syscalls_43.c @ 1.7.2.2 log @Catch up with -current. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.7.2.1 2002/01/10 20:00:52 thorpej Exp $ a21 4 .endif .if ${MACHINE} == "sparc" SRCS+= svr4_sigcode.s @ 1.7.2.3 log @catch up with -current on kqueue branch @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.7.2.2 2002/03/16 16:02:01 jdolecek Exp $ @ 1.7.6.1 log @Sync the thorpej-mips-cache branch with -current. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.8 2001/10/31 18:27:31 jdolecek Exp $ a2 1 COMPAT_UTIL_OVERRIDE= svr4 a13 4 # XXXX - temporary, not applicable for kernel with COMPAT_43 #.PATH: $S/compat/common #SRCS+= uipc_syscalls_43.c vfs_syscalls_43.c @ 1.6 log @Cosmetic changes. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.5 2000/12/09 11:21:41 jdolecek Exp $ d4 2 a5 9 .PATH: $S/compat/svr4 $S/arch/${MACHINE_ARCH}/${MACHINE_ARCH} CPPFLAGS+= -DCOMPAT_SVR4 -DSYSVSEM -DSYSVMSG -DSYSVSHM -DSVR4_COMPAT_SOLARIS2 AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE \ -I. -I${S} MKMAN= no KMOD= compat_svr4 d17 8 @ 1.6.2.1 log @Catch up to -current. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 2000/12/13 11:18:39 enami Exp $ d4 9 a12 2 USE_32= .include "../svr4/Makefile.common" a23 8 .endif .if ${MACHINE} == "sparc64" .if ${MACHINE_ARCH} == "sparc64" SRCS+= svr4_sigcode64.s .else SRCS+= svr4_32_sigcode.s .endif @ 1.6.2.2 log @Catch up to -current. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6.2.1 2001/06/21 20:07:27 nathanw Exp $ a2 1 COMPAT_UTIL_OVERRIDE= svr4 a13 4 # XXXX - temporary, not applicable for kernel with COMPAT_43 #.PATH: $S/compat/common #SRCS+= uipc_syscalls_43.c vfs_syscalls_43.c @ 1.6.2.3 log @Catch up to -current. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6.2.2 2001/11/14 19:16:56 nathanw Exp $ a21 4 .endif .if ${MACHINE} == "sparc" SRCS+= svr4_sigcode.s @ 1.6.2.4 log @Catch up to -current. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6.2.3 2002/02/28 04:14:53 nathanw Exp $ @ 1.6.2.5 log @Sync with HEAD. @ text @d1 1 a1 1 # $NetBSD$ d21 1 a21 1 SRCS+= svr4_sigcode.S svr4_syscall.c @ 1.5 log @add svr4_syscall.c for i386 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 2000/12/08 20:15:19 jdolecek Exp $ d8 2 a9 2 AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE \ -I. -I${S} @ 1.4 log @add build glue for supported emulations since only linux compat on i386 is installed, only that LKM is actually installed (LKMs are build for all platforms as appropriate though) further changes to compat code would need to happen to make this usable also for other plaforms or emulations @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 1999/02/13 02:54:52 lukem Exp $ d23 1 a23 1 SRCS+= svr4_sigcode.s @ 1.3 log @convert from NOxxx= to MKxxx=no. include if testing a MKxxx variable. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 1997/10/26 21:58:37 lukem Exp $ d5 5 a9 1 .PATH: $S/compat/svr4 $S/arch/${MACHINE}/${MACHINE} a10 1 CPPFLAGS+= -DCOMPAT_SVR4 d13 12 a24 4 SRCS= svr4_error.c svr4_exec.c svr4_fcntl.c svr4_filio.c svr4_ioctl.c \ svr4_ipc.c svr4_misc.c svr4_net.c svr4_signal.c svr4_socket.c \ svr4_sockio.c svr4_stat.c svr4_stream.c svr4_syscalls.c svr4_sysent.c \ svr4_termios.c svr4_ttold.c svr4_machdep.o @ 1.3.8.1 log @Sync with HEAD (for UBC fixes). @ text @d1 1 a1 1 # $NetBSD$ d5 1 a5 5 .PATH: $S/compat/svr4 $S/arch/${MACHINE_ARCH}/${MACHINE_ARCH} CPPFLAGS+= -DCOMPAT_SVR4 -DSYSVSEM -DSYSVMSG -DSYSVSHM -DSVR4_COMPAT_SOLARIS2 AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE \ -I. -I${S} d7 1 d10 4 a13 12 # common source files SRCS+= lkminit_emul.c SRCS+= svr4_errno.c svr4_exec.c svr4_fcntl.c svr4_filio.c svr4_ioctl.c \ svr4_ipc.c svr4_lwp.c svr4_misc.c svr4_net.c svr4_resource.c \ svr4_signal.c svr4_socket.c svr4_sockio.c svr4_stat.c svr4_stream.c \ svr4_syscalls.c svr4_sysent.c svr4_termios.c svr4_ttold.c SRCS+= svr4_machdep.c .if ${MACHINE} == "i386" SRCS+= svr4_sigcode.s svr4_syscall.c .endif @ 1.2 log @use CPPFLAGS instead of CFLAGS @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1 1996/08/28 06:17:28 mrg Exp $ d8 1 a8 1 NOMAN= yep @ 1.1 log @add compat svr4 and sunos modules. the sunos module will not work very well due to places in the kernel using COMPAT_SUNOS (this may also be true for svr4). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 1996/08/23 05:38:59 mrg Exp $ d7 1 a7 1 CFLAGS+= -DCOMPAT_SVR4 @