Chapter 1. Introduction
1.1. Developing on FreeBSD
So here we are. System all installed and you are ready to start programming. But where to start? What does FreeBSD provide? What can it do for me, as a programmer?
These are some questions which this chapter tries to answer. Of course, programming has different levels of proficiency like any other trade. For some it is a hobby, for others it is their profession. The information in this chapter might be aimed toward the beginning programmer; indeed, it could serve useful for the programmer unfamiliar with the FreeBSD platform.
1.2. The BSD Vision
To produce the best UNIX® like operating system package possible, with due respect to the original software tools ideology as well as usability, performance and stability.
1.3. Architectural Guidelines
Our ideology can be described by the following guidelines
Do not add new functionality unless an implementor cannot complete a real application without it.
It is as important to decide what a system is not as to decide what it is. Do not serve all the world’s needs; rather, make the system extensible so that additional needs can be met in an upwardly compatible fashion.
The only thing worse than generalizing from one example is generalizing from no examples at all.
If a problem is not completely understood, it is probably best to provide no solution at all.
If you can get 90 percent of the desired effect for 10 percent of the work, use the simpler solution.
Isolate complexity as much as possible.
Provide mechanism, rather than policy. In particular, place user interface policy in the client’s hands.
From Scheifler & Gettys: "X Window System"
1.4. The Layout of /usr/src
The complete source code to FreeBSD is available from our public repository. The source code is normally installed in /usr/src which contains the following subdirectories:
Source for files in /bin
Utilities covered by the Common Development and Distribution License
Source for files from contributed software
Source for files in /etc
Utilities covered by the GNU Public License
Source for files in /usr/include
Source for Kerberos version 5
Source for files in /usr/lib
Source for files in /usr/libexec
Files required to produce a FreeBSD release
Build system for the /rescue utilities
Source for files in /sbin
Contributed cryptographic sources
Source for files in /usr/share
Kernel source files
The FreeBSD test suite
Tools used for maintenance and testing of FreeBSD
Source for files in /usr/bin
Source for files in /usr/sbin