From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11970 invoked by alias); 15 Dec 2012 11:53:19 -0000 Received: (qmail 11957 invoked by uid 22791); 15 Dec 2012 11:53:18 -0000 X-SWARE-Spam-Status: No, hits=-7.7 required=5.0 tests=AWL,BAYES_00,KHOP_PGP_SIGNED,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 15 Dec 2012 11:53:12 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1TjqIo-00063M-VO from Thomas_Schwinge@mentor.com ; Sat, 15 Dec 2012 03:53:11 -0800 Received: from SVR-IES-FEM-01.mgc.mentorg.com ([137.202.0.104]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Sat, 15 Dec 2012 03:53:10 -0800 Received: from feldtkeller.schwinge.homeip.net (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.1.289.1; Sat, 15 Dec 2012 11:53:09 +0000 From: Thomas Schwinge To: Andreas Grapentin CC: Subject: Re: port to minix3 In-Reply-To: <50CB3D25.9070809@grapentin.org> References: <50CB3D25.9070809@grapentin.org> User-Agent: Notmuch/0.9-101-g81dad07 (http://notmuchmail.org) Emacs/23.4.1 (i486-pc-linux-gnu) Date: Sat, 15 Dec 2012 11:53:00 -0000 Message-ID: <87d2ybttul.fsf@kepler.schwinge.homeip.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Mailing-List: contact libc-ports-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-ports-owner@sourceware.org X-SW-Source: 2012-12/txt/msg00047.txt.bz2 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 1720 Hi! On Fri, 14 Dec 2012 15:52:21 +0100, Andreas Grapentin wrote: > I need a port of glibc to Minix 3.2 and decided to do it myself. It's been a few years that I have read a bit about Minix 3, and have again forgotten a lot of details. Remind me, how does userspace code (including any libc) access "kernel services" (such as opening a file to get a file descriptor, for example)? Is it a standard Unix system call interface (one syscall for open, one for read, one for close, and so on), or is it based on a remote procedure call (RPC) interface, so there essentially is a send message call that the kernel then dispatches to the appropriate entitiy? If the former, you can reference the existing Linux kernel ports as well as some remaining bits of *BSD and other Unix kernel ports; if the latter, your port will probably (have to) bear some resemblance with the GNU Hurd port, which likewise is present in the current source tree (apart from bug fixed and additional functionality waiting to be merged). I once began documenting some specifics of the Hurd port, start at , and also sections 2.1 and 2.5 of =C2=BBA Critique of the GNU Hurd Multi-server Operating System=C2=AB, , give some architectural overview. > I'll be following this guide: > http://www.gnu.org/software/libc/manual/html_node/Porting.html >=20 > and I'll let you know if there is any progress at all :) Be aware that doing a glibc port, especially if not a "straight-forward" Unix syscall interface port, is not a trivial thing to do, so be prepared to spend considerable effort there. Gr=C3=BC=C3=9Fe, Thomas --=-=-= Content-Type: application/pgp-signature Content-length: 489 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAEBAgAGBQJQzGSiAAoJEGe3hdm9kOiipeAIALG3ioh3XY6xD95Qb7Dz+eys BGYsPGAQtPoUUFToFg1EjT3vyuhgwBjxVZL/oXk/7x3SGILNyEHiz4yvbRRivqLX GDSsTnscZcK2TU8uemby18CB96rcmcqDBqoy4zLC8ClIyLWuZHeW8hrmISrpPzvV q+ZK+dkHEZGxiJKsUmkqQtfvJByBkNVFGHoSxIC9Hcps8wYorwk9ZUXH4Iih5VhO R8nygwmABBHl3aArXIllOOoinKh2tVhSkE7BMB3ypMx934fIvfz65Dy/M3Y4KQv9 wFCLrMOJz3vJTYjmkZIwY9Eo31+TiWAELXwSv5i0YDEFBV2rylW1TXy+R4uxn1Y= =qLRM -----END PGP SIGNATURE----- --=-=-=--