freebsd-nq/lib/libc
Garrett Wollman 9ae159169a Make it easier for programs to figure out what revision of FreeBSD they
are running under.  Here's how to bootstrap (order is important):

1) Re-compile gcc (just the driver is all you need).
2) Re-compile libc.
3) Re-compile your kernel.  Reboot.
4) cd /usr/src/include; make install

You can now detect the compilation environment with the following code:

#if !defined(__FreeBSD__)
#define __FreeBSD_version 199401
#elif __FreeBSD__ == 1
#define __FreeBSD_version 199405
#else
#include <osreldate.h>
#endif

You can determine the run-time environment by calling the new C library
function getosreldate(), or by examining the MIB variable kern.osreldate.

For the time being, the release date is defined as 199409, which we have
already established as our target.
1994-08-10 06:25:07 +00:00
..
amd64 First crack at making libc work with the new make macros. It compiles on 1994-08-05 01:19:12 +00:00
compat-43 First crack at making libc work with the new make macros. It compiles on 1994-08-05 01:19:12 +00:00
db First crack at making libc work with the new make macros. It compiles on 1994-08-05 01:19:12 +00:00
gen Make it easier for programs to figure out what revision of FreeBSD they 1994-08-10 06:25:07 +00:00
gmon First crack at making libc work with the new make macros. It compiles on 1994-08-05 01:19:12 +00:00
i386 First crack at making libc work with the new make macros. It compiles on 1994-08-05 01:19:12 +00:00
locale First crack at making libc work with the new make macros. It compiles on 1994-08-05 01:19:12 +00:00
net Fixed typo. 1994-08-09 22:44:12 +00:00
quad BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
regex First crack at making libc work with the new make macros. It compiles on 1994-08-05 01:19:12 +00:00
rpc Add back set_rpc_grouplistsize(), so mount_nfs compiles again. Also 1994-08-10 02:25:22 +00:00
stdio First crack at making libc work with the new make macros. It compiles on 1994-08-05 01:19:12 +00:00
stdlib First crack at making libc work with the new make macros. It compiles on 1994-08-05 01:19:12 +00:00
string First crack at making libc work with the new make macros. It compiles on 1994-08-05 01:19:12 +00:00
sys Converted 'vmunix' to 'kernel'. 1994-08-05 09:14:37 +00:00
xdr More directory cleanup after YP merge. 1994-08-07 22:21:14 +00:00
yp Add back in the YP code from 1.1.5. (This attribution brought to you 1994-08-07 23:04:55 +00:00
Makefile Add back in the YP code from 1.1.5. (This attribution brought to you 1994-08-07 23:04:55 +00:00