OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.39 / (download) - annotate - [select for diffs], Thu Apr 7 10:11:27 2022 UTC (2 years, 2 months ago) by tb
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, HEAD
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored)

Adjust mkioconf so the emitted extern struct cfattach are const.

tweak/ok miod

Revision 1.38 / (download) - annotate - [select for diffs], Fri Jun 28 13:33:55 2019 UTC (4 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: 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
Changes since 1.37: +13 -13 lines
Diff to previous 1.37 (colored)

fputc/fputs return EOF on error

Revision 1.37 / (download) - annotate - [select for diffs], Wed Sep 27 15:14:51 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.36: +4 -4 lines
Diff to previous 1.36 (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.36 / (download) - annotate - [select for diffs], Thu Oct 27 14:33:30 2016 UTC (7 years, 7 months ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.35: +1 -21 lines
Diff to previous 1.35 (colored)

Remove some code that was already disabled when it was committed
20 years ago.  While there, eliminate two dead assignments.

ok natano

Revision 1.35 / (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.34: +6 -11 lines
Diff to previous 1.34 (colored)

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

ok jca, improvements and ok millert, natano

Revision 1.34 / (download) - annotate - [select for diffs], Fri Sep 11 07:13:58 2015 UTC (8 years, 9 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored)

Change device locators type from int to long, for the sake of 64-bit ports
without proper device trees.

Be sure to build and install config(8) and rerun it before attempting to build
a kernel.

ok kettenis@ deraadt@ jasper@ visa@

Revision 1.33 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:16 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.32: +1 -3 lines
Diff to previous 1.32 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible.  Annotate <sys/param.h> lines with their current reasons.  Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc.  Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution.  These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

Revision 1.32 / (download) - annotate - [select for diffs], Sun May 18 09:29:54 2014 UTC (10 years ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored)

use reallocarray and friends. okay miod@

Revision 1.31 / (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_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.30: +3 -1 lines
Diff to previous 1.30 (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.30 / (download) - annotate - [select for diffs], Sat Jul 16 11:34:43 2011 UTC (12 years, 10 months ago) by chl
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

remove unused variable

ok miod@ matthew@

Revision 1.29 / (download) - annotate - [select for diffs], Wed Jun 1 04:35:21 2011 UTC (13 years ago) by matthew
Branch: MAIN
Changes since 1.28: +4 -6 lines
Diff to previous 1.28 (colored)

Kill the nearly-15-years-dead cf_ivstubs field from struct cfdata.

ok miod@, deraadt@

N.B.: If you're following -current, you MUST recompile config(8) and
re-config your kernel or else ioconf.c will fail to compile.

Revision 1.28 / (download) - annotate - [select for diffs], Mon Mar 24 21:35:03 2008 UTC (16 years, 2 months ago) by maja
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.27: +6 -3 lines
Diff to previous 1.27 (colored)

Make it possible to disable/enable pseudo devices in UKC, config file and
at config -e. -moj  ok deraadt@

Revision 1.27 / (download) - annotate - [select for diffs], Sun Jan 2 21:59:33 2005 UTC (19 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, 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
Changes since 1.26: +1 -1 lines
Diff to previous 1.26 (colored)

breaks at least vax; backout

Revision 1.26 / (download) - annotate - [select for diffs], Sat Jan 1 16:20:04 2005 UTC (19 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

Make sure uextraloc ends up in .data so UKC works.  OK deraadt@

Revision 1.25 / (download) - annotate - [select for diffs], Sun Jan 4 18:30:05 2004 UTC (20 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.24: +2 -3 lines
Diff to previous 1.24 (colored)

knf and lint

Revision 1.24 / (download) - annotate - [select for diffs], Sat Dec 6 21:46:53 2003 UTC (20 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

NULL not 0 at end of pdevinit[]

Revision 1.23 / (download) - annotate - [select for diffs], Fri Sep 26 17:01:25 2003 UTC (20 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

use erealloc

Revision 1.22 / (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.21: +14 -25 lines
Diff to previous 1.21 (colored)

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

Revision 1.21 / (download) - annotate - [select for diffs], Mon Jun 2 23:36:52 2003 UTC (21 years ago) by millert
Branch: MAIN
Changes since 1.20: +2 -6 lines
Diff to previous 1.20 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.20 / (download) - annotate - [select for diffs], Wed May 29 09:45:39 2002 UTC (22 years ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.19: +4 -3 lines
Diff to previous 1.19 (colored)

more snprintf

Revision 1.19 / (download) - annotate - [select for diffs], Thu Mar 14 16:44:24 2002 UTC (22 years, 3 months ago) by mpech
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.18: +28 -28 lines
Diff to previous 1.18 (colored)

kill more registers.

millert@ ok

Revision 1.18 / (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.17: +11 -11 lines
Diff to previous 1.17 (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.17 / (download) - annotate - [select for diffs], Sat Nov 10 20:46:07 2001 UTC (22 years, 7 months ago) by maja
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Move extraloc to data segment. This fixes save of new locators for cloned devices. -moj ok @deraadt

Revision 1.16 / (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.15: +14 -1 lines
Diff to previous 1.15 (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.15 / (download) - annotate - [select for diffs], Sat Oct 2 07:38:20 1999 UTC (24 years, 8 months ago) by deraadt
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.14: +9 -2 lines
Diff to previous 1.14 (colored)

extraloc[] support; maja

Revision 1.14 / (download) - annotate - [select for diffs], Sun Apr 18 17:15:08 1999 UTC (25 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

Make -W -Wall happier.
Classical modern C type-checking, signed vs. unsigned.

Revision 1.13 / (download) - annotate - [select for diffs], Mon May 11 09:59:40 1998 UTC (26 years, 1 month ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.12: +4 -4 lines
Diff to previous 1.12 (colored)

Formerly reuse of unit numbers of detached devices was impossible, with
this change starred devices will search from the first allowed unit for
such devices and up for free units when attaching.  This means you have
to rerun config(8) before yopu compile current kernels.  FYI, this is
a necessity when doing PCMCIA flashcard reading, otherwise you soon run
out of unit numbers.

I have also added a way to detach all children of a certain device, used
in a new PCMCIA framework to come, so you detach all functions on a
single PCMCIA card when pulling it out.

A few bugs wrt starred devices fixed in the autoconfig_verbose code too.
Last and least, fixed some panic messages.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Aug 7 10:36:58 1997 UTC (26 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.11: +5 -39 lines
Diff to previous 1.11 (colored)

jason is tired.  this is not needed. our locator table stuff uses less
memory too.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Aug 7 10:22:26 1997 UTC (26 years, 10 months ago) by downsj
Branch: MAIN
Changes since 1.10: +40 -6 lines
Diff to previous 1.10 (colored)

cf_locnames support, from NetBSD (jtk, according to the RCSids).

Revision 1.10 / (download) - annotate - [select for diffs], Sun Jul 6 04:07:11 1997 UTC (26 years, 11 months ago) by downsj
Branch: MAIN
Changes since 1.9: +1 -2 lines
Diff to previous 1.9 (colored)

-Wall happiness

Revision 1.9 / (download) - annotate - [select for diffs], Mon Feb 3 13:59:43 1997 UTC (27 years, 4 months ago) by maja
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.8: +9 -6 lines
Diff to previous 1.8 (colored)

Added some code lost in last rev. Now BOOT_CONFIG might work again. -moj

Revision 1.8 / (download) - annotate - [select for diffs], Sat Jan 18 02:24:17 1997 UTC (27 years, 4 months ago) by briggs
Branch: MAIN
Changes since 1.7: +6 -9 lines
Diff to previous 1.7 (colored)

Sync. with current NetBSD--keeping local changes.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Oct 23 22:37:55 1996 UTC (27 years, 7 months ago) by niklas
Branch: MAIN
Changes since 1.6: +11 -90 lines
Diff to previous 1.6 (colored)

Merge of NetBSD 961020.  Includes flexible build/source dir specs

Revision 1.6 / (download) - annotate - [select for diffs], Fri Sep 6 08:53:44 1996 UTC (27 years, 9 months ago) by maja
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.5: +16 -4 lines
Diff to previous 1.5 (colored)

Added support for add device in subr_userconf. Not perfect but a good start.
This needed changes in config, so if your kernel uses BOOT_CONFIG you need
to rebuild config before a new kernel can be built. -moj

Revision 1.5 / (download) - annotate - [select for diffs], Sun Jul 7 22:02:20 1996 UTC (27 years, 11 months ago) by maja
Branch: MAIN
Changes since 1.4: +13 -3 lines
Diff to previous 1.4 (colored)

Add support for allowing disabled devices in a config file. e.g.
ep0 at isa? disable port ? irq ?
disable must be placed before any attribute for the device. /moj

Revision 1.4 / (download) - annotate - [select for diffs], Sun Jun 16 10:30:00 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +129 -4 lines
Diff to previous 1.3 (colored)

provide locator names to kernel (update your config(8) binary!)

Revision 1.3 / (download) - annotate - [select for diffs], Sun Apr 21 23:40:17 1996 UTC (28 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.2: +22 -11 lines
Diff to previous 1.2 (colored)

sync to netbsd 960418

Revision 1.2 / (download) - annotate - [select for diffs], Mon Mar 25 15:55:08 1996 UTC (28 years, 2 months ago) by niklas
Branch: MAIN
Changes since 1.1: +3 -1 lines
Diff to previous 1.1 (colored)

From NetBSD: merge of 960317

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:48:34 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:48:34 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN

Initial revision

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.