dholland
cb79ede2d1
Give option definitions their own data structure instead of using nvlists.
...
(and using messy hacks to make up for nvlists not holding quite the right
things)
2012-03-12 02:58:55 +00:00
dholland
f5d4142b2d
Move locator lists to their own data structure. This can use more tidying;
...
it is not clear to me at the moment what the "string" and "num" values
pushed around in locator lists are supposed to actually mean.
2012-03-11 21:16:07 +00:00
dholland
25c56bd707
Add some organizational comments
2012-03-11 20:02:55 +00:00
dholland
a551c5e8b7
Create a struct condexpr type to hold condition expressions, instead
...
of abusing struct nvlist to make trees.
(These are the a|b and a&b constructs.)
2012-03-11 08:21:53 +00:00
dholland
bbe96a5ad8
Create a new type struct attrlist to manage lists of attributes,
...
instead of using struct nvlist.
(struct nvlist holds lists (or trees!) of semi-arbitrary stuff with no
structure and almost no type safety; it should go away.)
2012-03-11 07:32:41 +00:00
dholland
671dbef5d6
Use __printflike. Build products unchanged.
2012-03-10 21:53:38 +00:00
christos
0001b92828
rename nv_int -> nv_num and make it long long, so that dev_t will fit when
...
we change it.
2008-12-28 01:23:46 +00:00
lukem
82d7cb8306
Use a common function to generate the "MACHINE GENERATED" comment,
...
and ensure mkswap.c adds it too.
2007-12-12 00:03:33 +00:00
christos
c7295a4c51
- rename {x,}error -> cfg{x,}error and {x,}warn -> cfg{x,}warn so that we
...
can use err(3) and warn(3) to display errors instead of using inconsistent
fprintf's.
- remove emalloc/estrdup etc. We have them in libutil.
2007-01-13 23:47:36 +00:00
cube
718ffd7615
Handle defopt lists properly, as ':=' syntax introduce an additional
...
element... For that, introduce nvcat(nv1, nv2).
2007-01-12 21:49:51 +00:00
dsl
17ff309c84
There isn't really any point in the 'union' for nv_str and nv_ptr, all it
...
does is cause confusion when I try to add default values for defparam.
Also if malloc()/free() aren't efficient enough for us, we ought to fix
them rather than having local free list - so kill the local free lists.
2006-09-03 07:45:40 +00:00
christos
d0fb89015b
Now that this is part of tools, we don't need the extra build glue.
2006-08-26 18:17:13 +00:00
cube
0dbd1c0e04
- Keep track of the file in which we find the device instance
...
- Introduce xwarn() for delayed warnings
- Use xerror() and xwarn() in fixdevis() to notify about orphans
That way the correct file is printed when listing orphaned devices.
Reported by Juergen Hannken-Illjes in private mail.
2005-10-04 12:35:00 +00:00
thorpej
5ecc953bdb
config and genassym are not sysadmin tools, they are development tools.
...
As such, they don't belong in /usr/sbin, but rather /usr/bin. Move them
there.
2005-06-05 18:19:52 +00:00