diff options
author | 2012-04-10 15:50:52 +0000 | |
---|---|---|
committer | 2012-04-10 15:50:52 +0000 | |
commit | e6fd2ff84860d099ea5ae17d34f29629f598ebc7 (patch) | |
tree | 583b593e87386d627543d084f7eab708e15180d9 /sys/miscfs | |
parent | Build with -O1 on vax for now, pcre_exec can not build with -O2. (diff) | |
download | wireguard-openbsd-e6fd2ff84860d099ea5ae17d34f29629f598ebc7.tar.xz wireguard-openbsd-e6fd2ff84860d099ea5ae17d34f29629f598ebc7.zip |
Make the KERN_NPROCS and KERN_MAXPROC sysctl()s and the RLIMIT_NPROC rlimit
count processes instead of threads. New sysctl()s KERN_NTHREADS and
KERN_MAXTHREAD count and limit threads. The nprocs and maxproc kernel
variables are replaced by nprocess, maxprocess, nthreads, and maxthread.
ok tedu@ mikeb@
Diffstat (limited to 'sys/miscfs')
-rw-r--r-- | sys/miscfs/procfs/procfs_vfsops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/miscfs/procfs/procfs_vfsops.c b/sys/miscfs/procfs/procfs_vfsops.c index 2325b8a4e17..4663c10a0c3 100644 --- a/sys/miscfs/procfs/procfs_vfsops.c +++ b/sys/miscfs/procfs/procfs_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: procfs_vfsops.c,v 1.26 2010/09/23 18:43:37 oga Exp $ */ +/* $OpenBSD: procfs_vfsops.c,v 1.27 2012/04/10 15:50:52 guenther Exp $ */ /* $NetBSD: procfs_vfsops.c,v 1.25 1996/02/09 22:40:53 christos Exp $ */ /* @@ -176,8 +176,8 @@ procfs_statfs(struct mount *mp, struct statfs *sbp, struct proc *p) sbp->f_blocks = vmtotals.t_vm; sbp->f_bfree = vmtotals.t_vm - vmtotals.t_avm; sbp->f_bavail = 0; - sbp->f_files = maxproc; /* approx */ - sbp->f_ffree = maxproc - nprocs; /* approx */ + sbp->f_files = maxprocess; /* approx */ + sbp->f_ffree = maxprocess - nprocesses; /* approx */ if (sbp != &mp->mnt_stat) { bcopy(&mp->mnt_stat.f_fsid, &sbp->f_fsid, sizeof(sbp->f_fsid)); bcopy(mp->mnt_stat.f_mntonname, sbp->f_mntonname, MNAMELEN); |