From owner-freebsd-questions Wed Mar 29 5: 1:16 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.hellasnet.gr (mail.hellasnet.gr [212.54.192.3]) by hub.freebsd.org (Postfix) with ESMTP id 3F04C37C0AF for ; Wed, 29 Mar 2000 05:01:04 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from hades.hell.gr (ppp3.patr.hellasnet.gr [212.54.197.18]) by mail.hellasnet.gr (8.9.1/8.9.1) with ESMTP id OAA00716; Wed, 29 Mar 2000 14:59:56 +0200 (GMT) Received: (from charon@localhost) by hades.hell.gr (8.9.3/8.9.3) id OAA09099; Wed, 29 Mar 2000 14:06:05 +0300 (EEST) (envelope-from charon) Date: Wed, 29 Mar 2000 14:06:05 +0300 From: Giorgos Keramidas To: davidgarvan Cc: freebsd-questions@FreeBSD.ORG Subject: Re: project Message-ID: <20000329140605.C7782@hades.hell.gr> Reply-To: keramida@ceid.upatras.gr References: <003001bf98d8$68ebb960$9fa1a5c2@pt7y6> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <003001bf98d8$68ebb960$9fa1a5c2@pt7y6>; from d.garvan@esatclear.ie on Tue, Mar 28, 2000 at 06:09:41PM +0100 X-PGP-Fingerprint: 62 45 D1 C9 26 F9 95 06 D6 21 2A C8 8C 16 C0 8E Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Mar 28, 2000 at 06:09:41PM +0100, davidgarvan wrote: > Hi there, > > i'm doing a project that involves making an operating system in C and > running it on UNIX, like all lecturers they don't help you 'cos they > probably don't know the answers themselves, anyhow, i have questions > such as design a program that verifies that all blocks are either free > or allocated to an i-node or write the algorithm for the cd command - > where can i find such info, have you any suggestions, You can find a lot of information on how things are done in FreeBSD, by grabbing the sources of FreeBSD, and reading those parts that interest you. The sources of FreeBSD are available in various ftp-mirrors. The list of mirrors can be found at: * Note that the `cd' command is `internal' to the Unix shell, ie it's not a separate executable. You can find among the sources of FreeBSD two different shells, /bin/sh and /bin/csh. Look at the sources of the `bin' collection. -- Giorgos Keramidas, < keramida @ ceid . upatras . gr> See the headers of this message for my public key fingeprint. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message