Deleted Added
full compact
sysctl.c (30602) sysctl.c (31214)
1/*
2 * Copyright (c) 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 28 unchanged lines hidden (view full) ---

37 The Regents of the University of California. All rights reserved.\n";
38#endif /* not lint */
39
40#ifndef lint
41#if 0
42static char sccsid[] = "@(#)from: sysctl.c 8.1 (Berkeley) 6/6/93";
43#endif
44static const char rcsid[] =
1/*
2 * Copyright (c) 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 28 unchanged lines hidden (view full) ---

37 The Regents of the University of California. All rights reserved.\n";
38#endif /* not lint */
39
40#ifndef lint
41#if 0
42static char sccsid[] = "@(#)from: sysctl.c 8.1 (Berkeley) 6/6/93";
43#endif
44static const char rcsid[] =
45 "$Id$";
45 "$Id: sysctl.c,v 1.15 1997/10/20 12:53:54 charnier Exp $";
46#endif /* not lint */
47
48#include <sys/types.h>
49#include <sys/stat.h>
50#include <sys/sysctl.h>
51#include <sys/resource.h>
52
53#include <ctype.h>

--- 120 unchanged lines hidden (view full) ---

174 case CTLTYPE_QUAD:
175 break;
176 sscanf(newval, "%qd", &quadval);
177 newval = &quadval;
178 newsize = sizeof quadval;
179 break;
180 default:
181 errx(1, "oid '%s' is type %d,"
46#endif /* not lint */
47
48#include <sys/types.h>
49#include <sys/stat.h>
50#include <sys/sysctl.h>
51#include <sys/resource.h>
52
53#include <ctype.h>

--- 120 unchanged lines hidden (view full) ---

174 case CTLTYPE_QUAD:
175 break;
176 sscanf(newval, "%qd", &quadval);
177 newval = &quadval;
178 newsize = sizeof quadval;
179 break;
180 default:
181 errx(1, "oid '%s' is type %d,"
182 " cannot set that", bufp);
182 " cannot set that", bufp,
183 kind & CTLTYPE);
183 }
184
185 i = show_var(mib, len);
186 if (sysctl(mib, len, 0, 0, newval, newsize) == -1) {
187 if (!i && !bflag)
188 putchar('\n');
189 switch (errno) {
190 case EOPNOTSUPP:

--- 271 unchanged lines hidden ---
184 }
185
186 i = show_var(mib, len);
187 if (sysctl(mib, len, 0, 0, newval, newsize) == -1) {
188 if (!i && !bflag)
189 putchar('\n');
190 switch (errno) {
191 case EOPNOTSUPP:

--- 271 unchanged lines hidden ---