diff options
author | wollman <wollman@FreeBSD.org> | 2000-04-22 15:13:06 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 2000-04-22 15:13:06 +0000 |
commit | 670674048fd0ada7b319d5a7ce60345869031343 (patch) | |
tree | 8b7705b27c060fcaf2212602ee435b21b74643be /sys/kern/posix4_mib.c | |
parent | 6697052cf1bac791dd12d2e55626ebc0f97699a8 (diff) | |
download | FreeBSD-src-670674048fd0ada7b319d5a7ce60345869031343.zip FreeBSD-src-670674048fd0ada7b319d5a7ce60345869031343.tar.gz |
Add $FreeBSD$.
Initialize the POSIX.1b sysconf information appropriately for
non-optional kernel functions.
Diffstat (limited to 'sys/kern/posix4_mib.c')
-rw-r--r-- | sys/kern/posix4_mib.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sys/kern/posix4_mib.c b/sys/kern/posix4_mib.c index ba4a853..09af27d 100644 --- a/sys/kern/posix4_mib.c +++ b/sys/kern/posix4_mib.c @@ -29,6 +29,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * + * $FreeBSD$ */ #include <sys/param.h> @@ -96,3 +97,19 @@ void p31b_setcfg(int num, int value) if (num >= 1 && num < CTL_P1003_1B_MAXID) facility[num - 1] = value; } + +/* + * Turn on indications for standard (non-configurable) kernel features. + */ +static void +p31b_set_standard(void *dummy) +{ + /* ??? p31b_setcfg(CTL_P1003_1B_FSYNC, 1); */ + p31b_setcfg(CTL_P1003_1B_MAPPED_FILES, 1); + p31b_setcfg(CTL_P1003_1B_SHARED_MEMORY_OBJECTS, 1); + p31b_setcfg(CTL_P1003_1B_PAGESIZE, PAGE_SIZE); +} + +SYSINIT(p31b_set_standard, SI_SUB_P1003_1B, SI_ORDER_ANY, p31b_set_standard, + 0); + |