subr_param.c (9371) | subr_param.c (9759) |
---|---|
1/* 2 * Copyright (c) 1980, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)param.c 8.2 (Berkeley) 1/21/94 | 1/* 2 * Copyright (c) 1980, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)param.c 8.2 (Berkeley) 1/21/94 |
39 * $Id: param.c,v 1.10 1995/06/29 07:06:53 davidg Exp $ | 39 * $Id: param.c,v 1.11 1995/06/29 08:21:32 davidg Exp $ |
40 */ 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/socket.h> 45#include <sys/proc.h> 46#include <sys/vnode.h> 47#include <sys/file.h> --- 109 unchanged lines hidden (view full) --- 157 MSGTQL, /* max messages in system */ 158 MSGSSZ, /* size of a message segment */ 159 /* (must be small power of 2 greater than 4) */ 160 MSGSEG /* number of message segments */ 161}; 162#endif 163 164/* | 40 */ 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/socket.h> 45#include <sys/proc.h> 46#include <sys/vnode.h> 47#include <sys/file.h> --- 109 unchanged lines hidden (view full) --- 157 MSGTQL, /* max messages in system */ 158 MSGSSZ, /* size of a message segment */ 159 /* (must be small power of 2 greater than 4) */ 160 MSGSEG /* number of message segments */ 161}; 162#endif 163 164/* |
165 * These are initialized at bootstrap time 166 * to values dependent on memory size | 165 * These may be set to nonzero here or by patching. 166 * If they are nonzero at bootstrap time then they are 167 * initialized to values dependent on the memory size. |
167 */ | 168 */ |
168int nbuf, nswbuf; | 169#ifdef NBUF 170int nbuf = NBUF; 171#else 172int nbuf = 0; 173#endif 174int nswbuf = 0; |
169 170/* 171 * These have to be allocated somewhere; allocating 172 * them here forces loader errors if this file is omitted 173 * (if they've been externed everywhere else; hah!). 174 */ | 175 176/* 177 * These have to be allocated somewhere; allocating 178 * them here forces loader errors if this file is omitted 179 * (if they've been externed everywhere else; hah!). 180 */ |
175struct callout *callout; | |
176struct cblock *cfree; | 181struct cblock *cfree; |
177struct buf *buf, *swbuf; | 182struct buf *swbuf; |
178char *buffers; 179 180/* 181 * Proc/pgrp hashing. 182 * Here so that hash table sizes can depend on MAXUSERS/NPROC. 183 * Hash size must be a power of two. 184 * NOW omission of this file will cause loader errors! 185 */ --- 18 unchanged lines hidden --- | 183char *buffers; 184 185/* 186 * Proc/pgrp hashing. 187 * Here so that hash table sizes can depend on MAXUSERS/NPROC. 188 * Hash size must be a power of two. 189 * NOW omission of this file will cause loader errors! 190 */ --- 18 unchanged lines hidden --- |