1/*-
2 * Copyright (c) 1982, 1986, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Mike Karels at Berkeley Software Design, Inc.
7 *
8 * Redistribution and use in source and binary forms, with or without
--- 168 unchanged lines hidden (view full) ---
177char hostname[MAXHOSTNAMELEN];
178int hostnamelen;
179char domainname[MAXHOSTNAMELEN];
180int domainnamelen;
181long hostid;
182int securelevel = -1;
183extern int vfs_update_wakeup;
184extern int vfs_update_interval;
185extern int osreldate;
186
187/*
188 * kernel related system variables.
189 */
190int
191kern_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
192 int *name;
193 u_int namelen;
--- 14 unchanged lines hidden (view full) ---
208 case KERN_OSTYPE:
209 return (sysctl_rdstring(oldp, oldlenp, newp, ostype));
210 case KERN_OSRELEASE:
211 return (sysctl_rdstring(oldp, oldlenp, newp, osrelease));
212 case KERN_OSREV:
213 return (sysctl_rdint(oldp, oldlenp, newp, BSD));
214 case KERN_VERSION:
215 return (sysctl_rdstring(oldp, oldlenp, newp, version));
216 case KERN_OSRELDATE:
217 return (sysctl_rdint(oldp, oldlenp, newp, osreldate));
218 case KERN_MAXVNODES:
219 return(sysctl_int(oldp, oldlenp, newp, newlen, &desiredvnodes));
220 case KERN_MAXPROC:
221 return (sysctl_int(oldp, oldlenp, newp, newlen, &maxproc));
222 case KERN_MAXFILES:
223 return (sysctl_int(oldp, oldlenp, newp, newlen, &maxfiles));
224 case KERN_UPDATEINTERVAL:
225 /*
--- 599 unchanged lines hidden ---
2 * Copyright (c) 1982, 1986, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Mike Karels at Berkeley Software Design, Inc.
7 *
8 * Redistribution and use in source and binary forms, with or without
--- 168 unchanged lines hidden (view full) ---
177char hostname[MAXHOSTNAMELEN];
178int hostnamelen;
179char domainname[MAXHOSTNAMELEN];
180int domainnamelen;
181long hostid;
182int securelevel = -1;
183extern int vfs_update_wakeup;
184extern int vfs_update_interval;
185extern int osreldate;
186
187/*
188 * kernel related system variables.
189 */
190int
191kern_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
192 int *name;
193 u_int namelen;
--- 14 unchanged lines hidden (view full) ---
208 case KERN_OSTYPE:
209 return (sysctl_rdstring(oldp, oldlenp, newp, ostype));
210 case KERN_OSRELEASE:
211 return (sysctl_rdstring(oldp, oldlenp, newp, osrelease));
212 case KERN_OSREV:
213 return (sysctl_rdint(oldp, oldlenp, newp, BSD));
214 case KERN_VERSION:
215 return (sysctl_rdstring(oldp, oldlenp, newp, version));
216 case KERN_OSRELDATE:
217 return (sysctl_rdint(oldp, oldlenp, newp, osreldate));
218 case KERN_MAXVNODES:
219 return(sysctl_int(oldp, oldlenp, newp, newlen, &desiredvnodes));
220 case KERN_MAXPROC:
221 return (sysctl_int(oldp, oldlenp, newp, newlen, &maxproc));
222 case KERN_MAXFILES:
223 return (sysctl_int(oldp, oldlenp, newp, newlen, &maxfiles));
224 case KERN_UPDATEINTERVAL:
225 /*
--- 599 unchanged lines hidden ---