BSD libc "Port C library from the OpenBSD"

  1. Introduction
  2. Function frequency count script
  3. string
  4. continue...

Last updated 2001-07-30 5:37 pm


Introduction

The OpenBSD is a multi-platform 4.4BSD-based UNIX-like operating system. The OpenBSD gained fame by its robustness and full security. Its source lists are carefully developed and maintained by outstanding programmers, and the code is well readable. The programmers also developed an original C library (I refer it BSDlibc hereinafter). BSDlibc is relatively simple and readable in comparison with GNU libc (glibc2). In addition, BSDlibc contains many original functions, which are not supported in glibc2 and are quite valuable for securely aware programming.

I'm now fascinated with BSDlibc and want to utilize this execellent C library on Linux kernel in place of glibc2. Before the transplant, I'll examine every parts of BSDlibc and try to organize the contents. I would appreciate your comments, corrections, and suggestions. Thank you.

Feb. 6th, 2001
Wataru Nishida

How to get and update the OpenBSD source tree?

In contrast to Linux, OpenBSD project maintains an unified source tree including kernel, libraries, developmental tools, system utilities, and so on. All of the source lists are located under "src" directory, and you can create everything you need from it. By the way, let's get the source tree.

Get tarballs

You can get everything from anonymous CVS, but it takes too much time. So, I recommend you to get the latest snapshots by tarball files in CD-ROM or FTP sites.

FTP directory of OpenBSD 2.8
     
[ftp.openbsd.org][pub][OpenBSD][2.8] Changelogs - HARDWARE 3K PACKAGES 4K PORTS 2K README 5K SIZES 1K X11.tar.gz 36,249K amiga - ftplist 3K hp300 - i386 - log28 16K mac68k - mvme68k - packages - pmax - ports.tar.gz 2,975K powerpc - root.mail 20K sparc - src.tar.gz 63,380K srcsys.tar.gz 14,591K sun3 - tools - vax -

Then extract src.tar.gz and srcsys.tar.gz at an appropriate directory (My case: /usr/src/openbsd/ and /usr/src/openbsd/src, respectively.).

CVS update

OpenBSD project provides anonymous CVS. You can keep your local source tree up to date at any time. Change into parent directory of "src" (My case: /usr/src/openbsd) and execute the following commands.

CVS access
     
cvs -d:pserver:anoncvs@anoncvs1.ca.openbsd.org:/cvs login (enter "anoncvs" as the password) cvs -z3 -d:pserver:anoncvs@anoncvs1.ca.openbsd.org:/cvs co -P src

Now you have the "current" source tree in you disk (At present, ./src requires 436MB disk space). It's really a treasure island, enjoy with me!

To HOME