From owner-freebsd-hackers@FreeBSD.ORG Sat May 11 10:39:16 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 515D7975 for ; Sat, 11 May 2013 10:39:16 +0000 (UTC) (envelope-from k.dreger@yahoo.de) Received: from nm14.bullet.mail.ird.yahoo.com (nm14.bullet.mail.ird.yahoo.com [77.238.189.67]) by mx1.freebsd.org (Postfix) with SMTP id 8B0EE1F3 for ; Sat, 11 May 2013 10:39:15 +0000 (UTC) Received: from [77.238.189.48] by nm14.bullet.mail.ird.yahoo.com with NNFMP; 11 May 2013 10:39:13 -0000 Received: from [212.82.108.246] by tm1.bullet.mail.ird.yahoo.com with NNFMP; 11 May 2013 10:39:13 -0000 Received: from [127.0.0.1] by omp1011.mail.ird.yahoo.com with NNFMP; 11 May 2013 10:39:13 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 667500.12714.bm@omp1011.mail.ird.yahoo.com Received: (qmail 76841 invoked by uid 60001); 11 May 2013 10:39:13 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s1024; t=1368268753; bh=72cZgaSKEx4s0HfkuhNK8jfa0P2GluTJ6sSHy6Nghug=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=YZ1UeYqThzyS+CuZZxHCKHbKhSFbq4R174cV+hDzugRXuYnfDYkKc3Oue74uYGqT6Ld5lzFgP2ERoDJSgOxHcWQkW5MmeSWYuwwAam0nus5AIzVBd1Pkytvv577DdnMGomx/AsyjeZY7BVkRcIw1xAZ1DhWJ0jBeARhY1oOaKLQ= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.de; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=tNvG3LclFGx75R68H0QI6rWtp7jSEbbuedppxaRWWmfHBoggDC3buqMFm2bvASRgdF18pBYOv6bulPF4eVqa1DSsjgVbnKhxvw6d3IWtqdiow248Xb1m6Yer2YR+8SwzzAv+CdGPXWgEqWduIbYQlt0K8I8mUDy2gxwMxSbr4MI=; X-YMail-OSG: rq2qojUVM1lWBPgwjFDSMEZZQ4ak1iqxcKawhVue5SEjkJZ 2bnN_c4FYKQIcFTnAdyKdKQWQ.xdJRvE0c9Cj5CL.hm270ULuOnMS6lgVvtM gc6ukccALOi9gR0MfbSrVEImYUjCqUU0ChVZtPyajBAPZ0xFIILqBf0KIl51 PU_CXdv8aR06OX91wQKj68yiHJcGw5DxOOjp0RuW3qfDCTkAxobhkBW76JUd tqH4RgUHClQW6LCJaZxCvVOZihbwe7JqE1HTU00ZcNXGTAbqnFxtdjCSB5ak P7W32yOA88M93dnmle3BhAmiMmGNbPHUjp1IpHHCubFVSIrzNb5QPxBjBicf rLej55of7cm8HilMv_eSsn.JCqU8dij9YI.mgTbcQ2rom8.lijEl5P3NqAu5 K0NqrYCaNKi_Gmgqu3_loJqAgF_04IUCSRa.fUaQzWNjMupuBGjXubn72Sjv TV9ajrR3fqv9mNURDl8IY6uA2g8FMORWaPR3ZYhZhERmwo68HJ9ZG1v8LdpU 9uE8wFg4y9Lc9FeNAIUmZ_61l Received: from [222.223.72.19] by web171503.mail.ir2.yahoo.com via HTTP; Sat, 11 May 2013 11:39:13 BST X-Rocket-MIMEInfo: 002.001, WWVzLCB0aGF0IG1ha2VzIGl0IGNsZWFyLiBOb3csIHRoYXQgeW91IGFyZSBhY3R1YWxseSBzcGVha2luZwphYm91dCB0aGUgc3lzY2FsbCB0YWJsZSwgSSBoYXZlIHRvIHNheSB0aGF0IEkgd2FzIGF3YXJlIG9mIHRoZXJlCmJlaW5nIG9uZSwgYnV0IEkgbmV2ZXIgYmVmb3JlIHNhdyBpdCB0aGF0IHdheS4KClRoYW5rcwoKCgoKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KIFZvbjogTWF0ZXVzeiBHdXppayA8bWpndXppa0BnbWFpbC5jb20.CkFuOiBLYXJsIERyZWdlciA8ay5kcmVnZXJAeWFob28BMAEBAQE- X-Mailer: YahooMailWebService/0.8.141.536 References: <1368214284.29611.YahooMailNeo@web171503.mail.ir2.yahoo.com> <518D4C4F.90902@mu.org> <1368260611.67320.YahooMailNeo@web171505.mail.ir2.yahoo.com> <20130511085805.GA23033@dft-labs.eu> Message-ID: <1368268753.73979.YahooMailNeo@web171503.mail.ir2.yahoo.com> Date: Sat, 11 May 2013 11:39:13 +0100 (BST) From: Karl Dreger Subject: Re: syscall to userland interface To: Mateusz Guzik In-Reply-To: <20130511085805.GA23033@dft-labs.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-hackers@freebsd.org" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Karl Dreger List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 May 2013 10:39:16 -0000 Yes, that makes it clear. Now, that you are actually speaking=0Aabout the s= yscall table, I have to say that I was aware of there=0Abeing one, but I ne= ver before saw it that way.=0A=0AThanks=0A=0A=0A=0A=0A_____________________= ___________=0A Von: Mateusz Guzik =0AAn: Karl Dreger =0ACC: "freebsd-hackers@freebsd.org" ; Alfred Perlstein =0AGesendet: 16:58 Samstag, 11.M= ai 2013=0ABetreff: Re: syscall to userland interface=0A =0A=0AOn Sat, May 1= 1, 2013 at 09:23:31AM +0100, Karl Dreger wrote:=0A> What my question boils = down to is this: when running fork and friends =0A> =0A> from userland they= are invoked as:=0A> =0A> fork();, open();, read();, close(); ...=0A> =0A> = =0A> but are defined as:=0A> =0A> sys_fork(), sys_open(), sys_read(), sys_c= lose(), ...=0A> =0A> in their actual c definition.=0A=0Asys_* are symbols v= isible only in the kernel, and as such their names=0Aor existence is not vi= sible from userspace.=0A=0AThe kernel has syscall table - each syscall has = an entry in the table at=0Aspecified offset (syscall number) with a pointer= to function=0Aimplementing given syscall.=0A=0AUserspace knows syscall num= bers.=0A=0ASo the common thing for both userspace and kernel is syscall num= ber, it=0Ahas nothing to do with names.=0A=0AHere is an example how syscall= worked on i386:=0A- you put syscall numer in eax register=0A- you call the= kernel by issuing int 80h=0A- handler in the kernel takes number from eax,= looks up appropriate=0A=A0 function from syscall table and calls that func= tion=0A=0AHere is an example:=0Ahttp://www.freebsd.org/doc/en/books/develop= ers-handbook/x86-system-calls.html=0A=0Ae.g. fork has number 2.=0ASo, what = userspace fork function does is simply telling the kernel to=0Aexecute sysc= all number 2. It is not important how function implementing=0Athis syscall = is named, it could be "foobarbecausewhynot".=0A=0AI hope this clears things= up.=0A-- =0AMateusz Guzik =0A__________________________= _____________________=0Afreebsd-hackers@freebsd.org mailing list=0Ahttp://l= ists.freebsd.org/mailman/listinfo/freebsd-hackers=0ATo unsubscribe, send an= y mail to "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Sat May 11 05:47:06 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id AB5A8417; Sat, 11 May 2013 05:47:06 +0000 (UTC) (envelope-from sjg@juniper.net) Received: from exprod7og127.obsmtp.com (exprod7og127.obsmtp.com [64.18.2.210]) by mx1.freebsd.org (Postfix) with ESMTP id 41AB895C; Sat, 11 May 2013 05:47:06 +0000 (UTC) Received: from P-EMHUB02-HQ.jnpr.net ([66.129.224.36]) (using TLSv1) by exprod7ob127.postini.com ([64.18.6.12]) with SMTP ID DSNKUY3bWXKIIAJB9Hv1nV0YLkQY0KBsc0D/@postini.com; Fri, 10 May 2013 22:47:06 PDT Received: from magenta.juniper.net (172.17.27.123) by P-EMHUB02-HQ.jnpr.net (172.24.192.33) with Microsoft SMTP Server (TLS) id 8.3.213.0; Fri, 10 May 2013 22:45:36 -0700 Received: from chaos.jnpr.net (chaos.jnpr.net [172.24.29.229]) by magenta.juniper.net (8.11.3/8.11.3) with ESMTP id r4B5jaL66346; Fri, 10 May 2013 22:45:36 -0700 (PDT) (envelope-from sjg@juniper.net) Received: from chaos.jnpr.net (localhost [127.0.0.1]) by chaos.jnpr.net (Postfix) with ESMTP id 7707958097; Fri, 10 May 2013 22:45:36 -0700 (PDT) To: Baptiste Daroussin Subject: Making bmake default? (was: Re: ports/173299: [exp-run] test bmake conversion) In-Reply-To: References: Comments: In-reply-to: Baptiste Daroussin message dated "Mon, 06 May 2013 00:11:51 +0200." From: "Simon J. Gerraty" X-Mailer: MH-E 7.82+cvs; nmh 1.3; GNU Emacs 22.3.1 Date: Fri, 10 May 2013 22:45:36 -0700 Message-ID: <20130511054536.7707958097@chaos.jnpr.net> MIME-Version: 1.0 Content-Type: text/plain X-Mailman-Approved-At: Sat, 11 May 2013 12:06:07 +0000 Cc: freebsd-hackers@freebsd.org, freebsd-arch@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 May 2013 05:47:06 -0000 On Mon, 6 May 2013 00:11:51 +0200, Baptiste Daroussin writes: >The ports tree on current is still in very bad shape but I don't see >anymore errors due to bmake specifically. > >You have my approval as portmgr to switch base make to bmake. As an interim step, I would propose the change below. Index: share/mk/bsd.own.mk =================================================================== --- share/mk/bsd.own.mk (revision 249461) +++ share/mk/bsd.own.mk (working copy) @@ -254,6 +254,7 @@ __DEFAULT_YES_OPTIONS = \ BIND_UTILS \ BINUTILS \ BLUETOOTH \ + BMAKE \ BOOT \ BSD_CPIO \ BSNMP \ @@ -361,7 +362,6 @@ __DEFAULT_NO_OPTIONS = \ BIND_LIBS \ BIND_SIGCHASE \ BIND_XML \ - BMAKE \ BSDCONFIG \ BSD_GREP \ CLANG_EXTRAS \