ross
9e754b3749
Don't exit on error from pack_dev.c, but return an error string and
...
have the caller do cleanup and (potentially) report errors in context.
This is needed because mknod(8) is not the only user of pack_dev.[ch]
2004-01-30 19:06:55 +00:00
jmmv
b635f565e7
Homogenize usage messages: make the 'usage' word all lowercase, as this seems
...
to be the most common practice in our tree.
2004-01-05 23:23:32 +00:00
lukem
171d653219
Overhaul how `build.sh tools' are used:
...
* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/compat/config.h versus "standard autoconf" config.h
* Consistently move the inclusion of nbtool_config.h to before
<sys/cdefs.h> so that the former can provide __RCSID() (et al),
and there's no need to protect those macros any more.
These changes should make it easier to "tool-ify" a program by adding:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
to the top of the source files (for the general case).
2003-10-27 00:12:41 +00:00
christos
96618476db
deal with cygwin's dev_t (John Gordon)
2003-05-08 13:29:39 +00:00
dsl
4f32e6a229
Add -g gid -m mode -u uid so that MAKEDEV can run when chown/chmod are
...
not available.
Add -r and -R to do two (different) sensible things if node exists.
From a discussion with Lukem.
2003-05-08 11:34:19 +00:00
lukem
85828b646a
clear errno before strto(u)l() if we're going to test it for ERANGE afterwards
2003-04-17 04:01:56 +00:00
lukem
7ca2a2b569
cleanups suggested by simonb:
...
- rename "format.c" -> "pack_dev.c", "mknod.h" -> "pack_dev.h"
- make the private stuff in pack_dev.c static
2001-10-08 04:45:29 +00:00
lukem
da188f40f2
improve arg clamping
2001-10-08 04:25:00 +00:00
lukem
a1dcc3ea23
- move parsing of format type and format handlers into format.c, for easier
...
use in other programs
- do a bit of KNF whilst here
- enable WARNS=2
2001-10-08 04:20:43 +00:00
cgd
8a986b2e96
convert to use getprogname()
2001-02-19 22:48:57 +00:00
christos
a84f9073c7
fix nested extern
2001-02-04 20:09:40 +00:00
matt
0f6818e4eb
More include fixups and GCC 2.96 nonsense
2000-07-03 03:37:59 +00:00
christos
f53f6fbf73
Add mknod <name> p which creates a named pipe. There is no real reason for
...
a separate mkfifo program and there is prior art.
1998-11-24 22:56:26 +00:00
tron
f1283a32e6
Print correct filename if mknod() fails.
1998-10-13 16:41:20 +00:00
wsanchez
3e7294fa8d
Init dev to quiet compiler.
1998-10-08 02:01:11 +00:00
mycroft
a50da02192
Oops; update usage message.
1998-09-11 07:22:13 +00:00
mycroft
f193968581
Add isc, sco, and bsdos 3-field format.
1998-09-11 07:20:48 +00:00
mycroft
3748c7c959
Assign my copyrights to TNF.
1998-08-15 09:16:27 +00:00
mycroft
095b5f39c4
Add a `bsdos' format.
1998-01-17 13:04:16 +00:00
mycroft
535aef9832
Add a -F option to specify the device number format.
...
Also accept a single opaque device number.
1998-01-17 12:14:31 +00:00
cgd
1c9d9590f6
lint
1997-11-05 21:29:29 +00:00
lukem
beb3ef1e7e
* cleanup for WARNS+1
...
* use .Nm correctly
1997-09-15 03:46:27 +00:00
jtc
ea00559d41
Convert to use err(3)
1995-08-11 00:08:18 +00:00
cgd
0114e805ce
convert to new RCS Id conventions; reduce my headache
1995-03-18 14:54:19 +00:00
cgd
c9117f53b5
-Wall cleanups from Jim Jegers
1994-12-18 00:15:01 +00:00
mycroft
3c78ef3311
Merge with 4.4-Lite version.
1994-09-23 01:38:45 +00:00
mycroft
e9d867ef50
Add RCS identifiers.
1993-08-01 17:54:45 +00:00
cgd
06be60083d
changed "Id" to "Header" for rcsids
1993-03-23 00:22:59 +00:00
cgd
346aa5dd48
added rcs ids to all files
1993-03-22 08:04:00 +00:00
cgd
61f282557f
initial import of 386bsd-0.1 sources
1993-03-21 09:45:37 +00:00