From owner-freebsd-chat Fri Jun 22 14: 6: 7 2001 Delivered-To: freebsd-chat@freebsd.org Received: from smtp10.phx.gblx.net (smtp10.phx.gblx.net [64.211.219.59]) by hub.freebsd.org (Postfix) with ESMTP id CF32537B407 for ; Fri, 22 Jun 2001 14:06:04 -0700 (PDT) (envelope-from tlambert@usr06.primenet.com) Received: (from daemon@localhost) by smtp10.phx.gblx.net (8.9.3/8.9.3) id OAA90194; Fri, 22 Jun 2001 14:06:03 -0700 Received: from usr06.primenet.com(206.165.6.206) via SMTP by smtp10.phx.gblx.net, id smtpdUk6TUa; Fri Jun 22 14:05:58 2001 Received: (from tlambert@localhost) by usr06.primenet.com (8.8.5/8.8.5) id OAA28427; Fri, 22 Jun 2001 14:10:03 -0700 (MST) From: Terry Lambert Message-Id: <200106222110.OAA28427@usr06.primenet.com> Subject: Re: most complex code in BSD? To: des@ofug.org (Dag-Erling Smorgrav) Date: Fri, 22 Jun 2001 21:10:03 +0000 (GMT) Cc: jcm@FreeBSD-uk.eu.org (j mckitrick), freebsd-chat@FreeBSD.ORG In-Reply-To: from "Dag-Erling Smorgrav" at Jun 22, 2001 02:27:41 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > > In everyone's opinion, what is the most complex code in the BSD codebase? > > Not including asm (unless there is an especialy exemplary example of > > obfuscated code, but it seems compilers are better at that ;-) what code is > > most likely to turn a newbie's brain to tapioca? > > Most likely NFS, though it's not as bad as it used to be. The VFS > system is probably a close second (namei() anyone?). The NFS is pretty clean, as long as you take the macros at face value when reading the code. The VFS code is trivial, if you just understand call-by-descriptor, which OpenSSL, libXt, libXaw, libXm, etc., all use. It's a common technique. The linker set code is odd. The build process for device modules is pretty opaque, especially when moving drivers between 4.x and 5.x. Anything with "perl" code in it: it's a write-only programming language, useful only for throw-away code. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message