OpenBSD CVS

CVS log for src/usr.sbin/config/ukc.c


[BACK] Up to [local] / src / usr.sbin / config

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.25 / (download) - annotate - [select for diffs], Tue Aug 13 21:36:18 2019 UTC (4 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, HEAD
Changes since 1.24: +7 -1 lines
Diff to previous 1.24 (colored)


config -eu uses a second copy of the nlist array[], which should never
become different or the #define's for the slots could diverge.  To avoid
this, make one a copy of the other at runtime.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Aug 11 17:08:33 2019 UTC (4 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.23: +1 -2 lines
Diff to previous 1.23 (colored)

delete the bufcachepercent command (since this can be done at runtime),
and leftovers from past commands shmseg/shmmaxpg/nmbclusters
ok kettenis

Revision 1.23 / (download) - annotate - [select for diffs], Wed Sep 27 15:14:52 2017 UTC (6 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.22: +4 -4 lines
Diff to previous 1.22 (colored)

config -e's adds new devices to an extra locator array, which is accounted
using a variable which started at 0 and hence got planted in .bss.
Refactor that variable to begin at the maximum and decrease, such that it
lands in .data instead.
ok jsg

Revision 1.22 / (download) - annotate - [select for diffs], Wed Oct 19 16:39:02 2016 UTC (7 years, 7 months ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.21: +2 -5 lines
Diff to previous 1.21 (colored)

There used to be disabled code that used /dev/tty to determine the
terminal size. That code was removed a while ago, and now there is
no longer any reason to open /dev/tty right before exiting init().

ok natano

Revision 1.21 / (download) - annotate - [select for diffs], Sun Oct 16 17:50:00 2016 UTC (7 years, 7 months ago) by tb
Branch: MAIN
Changes since 1.20: +4 -5 lines
Diff to previous 1.20 (colored)

Use the err(3) family of functions more consistently.

ok jca, improvements and ok millert, natano

Revision 1.20 / (download) - annotate - [select for diffs], Mon Oct 12 04:43:30 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.19: +1 -2 lines
Diff to previous 1.19 (colored)

does not need ioctl.h

Revision 1.19 / (download) - annotate - [select for diffs], Thu Apr 23 05:58:14 2015 UTC (9 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.18: +1 -25 lines
Diff to previous 1.18 (colored)

delete a NOTDEF of unused code

Revision 1.18 / (download) - annotate - [select for diffs], Sun Oct 2 22:20:50 2011 UTC (12 years, 8 months ago) by edd
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

Fix some minor things in config(8):
 * As haesbaert suggests, correctly order include files.
 * Found some old style function defs. Updated.
 * Found a prototype inside a function. Moved.

OK nicm@

Revision 1.17 / (download) - annotate - [select for diffs], Sun Oct 2 10:10:30 2011 UTC (12 years, 8 months ago) by edd
Branch: MAIN
Changes since 1.16: +7 -5 lines
Diff to previous 1.16 (colored)

When using `config -e`:
 * Don't print a NULL pointer if binary loaded is not a kernel.
 * Don't segfault of binary loaded is not a kernel.
 * Report non-existent kernel via a preliminary stat().
 * Make a warning look like the rest.

OK haesbaert@, nicm@

Revision 1.16 / (download) - annotate - [select for diffs], Thu Dec 10 22:07:19 2009 UTC (14 years, 5 months ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.15: +1 -3 lines
Diff to previous 1.15 (colored)

Now that the old SysV SHM size limits global variables are gone, remove
support for setting them from config(8).

Revision 1.15 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:51 2009 UTC (14 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.14: +1 -5 lines
Diff to previous 1.14 (colored)

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable).  these days, people use source.  these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms

Revision 1.14 / (download) - annotate - [select for diffs], Thu Jun 28 00:52:37 2007 UTC (16 years, 11 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.13: +8 -7 lines
Diff to previous 1.13 (colored)

Add check for nlist failure to prevent a segfault.
Remove ret variable, which is only set but not never checked.
return (1) instead of exit(1) for consistency.

Original diff from Rainer Giedat.

OK millert, maja, and otto.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Jun 8 20:59:29 2004 UTC (19 years, 11 months ago) by mcbride
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.12: +2 -3 lines
Diff to previous 1.12 (colored)

Remove 'nmbuclust' setting of NMBCLUSTERS. They don't exist anymore.

ok millert@

Revision 1.12 / (download) - annotate - [select for diffs], Sun Jan 4 00:47:01 2004 UTC (20 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.11: +6 -6 lines
Diff to previous 1.11 (colored)

Wall and spacing, I am hunting bugs

Revision 1.11 / (download) - annotate - [select for diffs], Sat Jun 28 04:55:07 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.10: +4 -8 lines
Diff to previous 1.10 (colored)

ansi & prototype cleanup.  tested in mkr on most arch's.  ok dhartmei

Revision 1.10 / (download) - annotate - [select for diffs], Mon Jun 2 21:19:03 2003 UTC (21 years ago) by maja
Branch: MAIN
Changes since 1.9: +2 -7 lines
Diff to previous 1.9 (colored)

remove clause 3 and 4. -moj

Revision 1.9 / (download) - annotate - [select for diffs], Sat Mar 23 13:30:24 2002 UTC (22 years, 2 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.8: +15 -13 lines
Diff to previous 1.8 (colored)

small cleanups:
ansi prototypes,
help formating,
common code to handle integer parameters.

Let SystemV shm parameters be settable.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Feb 17 23:01:19 2002 UTC (22 years, 3 months ago) by maja
Branch: MAIN
Changes since 1.7: +14 -2 lines
Diff to previous 1.7 (colored)

Patch from Daniel Lucq <daniel@lucq.org>

The patch allows you to change the value of NMBCLUSTERS, BUFCACHEPERCENT
and NKMEMPAGES using the config command, instead of recompiling the kernel.

This is the userland part of the patch. I have compiled it on i386, sparc64,
alpha and macppc. -moj ok art@ maja@

Revision 1.7 / (download) - annotate - [select for diffs], Sat Feb 16 21:28:01 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.6: +4 -4 lines
Diff to previous 1.6 (colored)

Part one of userland __P removal.  Done with a simple regexp with some minor hand editing to make comments line up correctly.  Another pass is forthcoming that handles the cases that could not be done automatically.

Revision 1.6 / (download) - annotate - [select for diffs], Wed Dec 5 10:11:23 2001 UTC (22 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +40 -47 lines
Diff to previous 1.5 (colored)

more free KNF from maja, though this was hard to do

Revision 1.5 / (download) - annotate - [select for diffs], Sun Feb 4 20:42:12 2001 UTC (23 years, 4 months ago) by maja
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.4: +18 -4 lines
Diff to previous 1.4 (colored)

Add support for pseudo devices. This is done by adding more information
in ioconf.c. The only thing that can be done with pseudo devices is
changing the number of created units. -moj ok deraadt@

Revision 1.4 / (download) - annotate - [select for diffs], Wed Jan 31 22:41:32 2001 UTC (23 years, 4 months ago) by maja
Branch: MAIN
Changes since 1.3: +12 -5 lines
Diff to previous 1.3 (colored)

Dont write kernel if nothing has changed. ok @deraadt. -moj

Revision 1.3 / (download) - annotate - [select for diffs], Wed Dec 6 14:06:16 2000 UTC (23 years, 6 months ago) by ho
Branch: MAIN
Changes since 1.2: +3 -2 lines
Diff to previous 1.2 (colored)

Add a 'saving modified kernel' message. (deraadt@ ok)

Revision 1.2 / (download) - annotate - [select for diffs], Sat Oct 16 13:13:27 1999 UTC (24 years, 7 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

Fix typo.

Revision 1.1 / (download) - annotate - [select for diffs], Mon Oct 4 20:00:51 1999 UTC (24 years, 8 months ago) by deraadt
Branch: MAIN

config -e support; ukc from maja@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.