From owner-freebsd-questions Mon Sep 14 16:25:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA17549 for freebsd-questions-outgoing; Mon, 14 Sep 1998 16:25:47 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from inhaler.noopy.org (nvp.ne.mediaone.net [24.128.50.139]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id QAA17526 for ; Mon, 14 Sep 1998 16:25:42 -0700 (PDT) (envelope-from nvp@mediaone.net) From: nvp@mediaone.net Received: (qmail 10846 invoked by uid 603); 15 Sep 1998 00:27:39 -0000 Message-ID: <19980915002739.10845.qmail@inhaler.noopy.org> Subject: Re: Learning C on FreeBSD... In-Reply-To: from "Graves, Scott" at "Sep 14, 98 06:08:08 pm" To: Scott_Graves@sealand.com (Graves Scott) Date: Mon, 14 Sep 1998 19:27:39 -0500 (EST) Cc: questions@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Can someone give me a few books which will help me to learn C on FreeBSD... > I'd like to start actually understanding how to design programs for > FreeBSD.... The last programming language I used was PASCAL over 3 years > ago... Any suggestions would be great... When you say "design programs for FreeBSD", do you mean "write system-level stuff for FreeBSD, device drivers, packet filters, etc.", or do you mean "write C programs which run under FreeBSD"? These books should help with either or both: - Practical C (3rd Ed) by Steve Oualline (O'Reilly and Assoc). This book doesn't really cover OS-specific stuff, nor does it cover POSIX. But it does offer a number of interesting examples from the simple (2+2) to the more complex (pointers, linked lists, etc). - A Book on C by Kelley/Pohl (Benjamin Cummings). Like _Practical C_, this book doesn't really cover OS-specific stuff; it makes some allusions to reading directories and such but doesn't provide any examples. It provides some information about pointers and linked structures but doesn't go in depth with implementation details. - The C Programming Language or "The C Bible" by Kerningham and Ritchie (publisher forgotten). If you intend to work with C and you need a little bit of direction, some algorithms to get started with, lots of Unixisms (stat'ing files, reading directories, file I/O, etc), and a huge number of Unix (C) functions and their parameters/return values, I'd definitely suggest getting this book. I think that it's in 2nd edition. -- Nate Patwardhan, System Administrator O'Reilly and Associates nvp@oreilly.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message