summaryrefslogtreecommitdiffstats
path: root/sys/i386/conf
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>1999-08-27 19:47:41 +0000
committermarcel <marcel@FreeBSD.org>1999-08-27 19:47:41 +0000
commit421ba20de2168eca011b02a722a39a50edbcc3bb (patch)
treee76e287183d035dafec15693fbd1edc52428cd1e /sys/i386/conf
parent10d7165e451a9b3103b41e843fd883bc9f69e7bc (diff)
downloadFreeBSD-src-421ba20de2168eca011b02a722a39a50edbcc3bb.zip
FreeBSD-src-421ba20de2168eca011b02a722a39a50edbcc3bb.tar.gz
Add sysctl variables for the Linuxulator. These reside under `compat.linux' as
discussed on current. The following variables are defined (for now): osname (defaults to "Linux") Allow users to change the name of the OS as returned by uname(2), specially added for all those Linux Netscape users and statistics maniacs :-) We now have what we all wanted! osrelease (defaults to "2.2.5") Allow users to change the version of the OS as returned by uname(2). Since -current supports glibc2.1 now, change the default to 2.2.5 (was 2.0.36). oss_version (defaults to 198144 [0x030600]) This one will be used by the OSS_GETVERSION ioctl (PR 12917) which I can commit now that we have the MIB. The default version number is the lowest version possible with the current 'encoding'. A note about imprisoned processes (see jail(2)): These variables are copy-on-write (as suggested by phk). This means that imprisoned processes will use the system wide value unless it is written/set by the process. From that moment on, a copy local to the prison will be used. A note about the implementation: I choose to add a single pointer to struct prison, because I didn't like the idea of changing struct prison every time I come up with a new variable. As a side effect, the extra storage is only needed when a variable is set from within the prison. This also minimizes kernel bloat when the Linuxulator is not used; both compiled in or as a module. Reviewed by: bde (first version only) and phk
Diffstat (limited to 'sys/i386/conf')
-rw-r--r--sys/i386/conf/files.i3863
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/i386/conf/files.i386 b/sys/i386/conf/files.i386
index 62e3269..7234965 100644
--- a/sys/i386/conf/files.i386
+++ b/sys/i386/conf/files.i386
@@ -1,7 +1,7 @@
# This file tells config what files go into building a kernel,
# files marked standard are always included.
#
-# $Id: files.i386,v 1.258 1999/08/09 10:34:38 phk Exp $
+# $Id: files.i386,v 1.259 1999/08/18 04:08:14 alc Exp $
#
# The long compile-with and dependency lines are required because of
# limitations in config: backslash-newline doesn't work in strings, and
@@ -329,6 +329,7 @@ i386/linux/linux_ioctl.c optional compat_linux
i386/linux/linux_ipc.c optional compat_linux
i386/linux/linux_locore.s optional compat_linux \
dependency "linux_assym.h"
+i386/linux/linux_mib.c optional compat_linux
i386/linux/linux_misc.c optional compat_linux
i386/linux/linux_signal.c optional compat_linux
i386/linux/linux_socket.c optional compat_linux
OpenPOWER on IntegriCloud