From 9ae159169a6ee7a5abfaf222881c23a6d43a63ae Mon Sep 17 00:00:00 2001 From: Garrett Wollman Date: Wed, 10 Aug 1994 06:25:07 +0000 Subject: 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 #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. --- lib/libc/gen/Makefile.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/libc') diff --git a/lib/libc/gen/Makefile.inc b/lib/libc/gen/Makefile.inc index d9420b33f4c20..776fa971e7fd0 100644 --- a/lib/libc/gen/Makefile.inc +++ b/lib/libc/gen/Makefile.inc @@ -7,10 +7,10 @@ SRCS+= alarm.c assert.c clock.c closedir.c confstr.c crypt.c ctermid.c \ ctime.c daemon.c devname.c difftime.c disklabel.c err.c errlst.c \ exec.c fnmatch.c frexp.c fstab.c fts.c getbsize.c getcap.c getcwd.c \ getdomainname.c getgrent.c getgrouplist.c gethostname.c getloadavg.c \ - getlogin.c getmntinfo.c getnetgrent.c getpagesize.c getpass.c \ - getpwent.c getttyent.c getusershell.c glob.c initgroups.c isatty.c \ - nice.c nlist.c opendir.c pause.c popen.c psignal.c pwcache.c raise.c \ - readdir.c rewinddir.c scandir.c seekdir.c setdomainname.c \ + getlogin.c getmntinfo.c getnetgrent.c getosreldate.c getpagesize.c \ + getpass.c getpwent.c getttyent.c getusershell.c glob.c initgroups.c \ + isatty.c nice.c nlist.c opendir.c pause.c popen.c psignal.c pwcache.c \ + raise.c readdir.c rewinddir.c scandir.c seekdir.c setdomainname.c \ sethostname.c setjmperr.c setmode.c siginterrupt.c siglist.c signal.c \ sigsetjmp.c sigsetops.c sleep.c sysconf.c sysctl.c syslog.c telldir.c \ termios.c time.c times.c timezone.c ttyname.c ttyslot.c ualarm.c \ -- cgit v1.3