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
atatat
d7035f6c9a
Fix spelo
2003-12-29 02:11:03 +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
agc
276d62f603
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22308, verified by myself.
2003-08-07 10:04:22 +00:00
wiz
8cf282a707
Use .Nm instead of .Xr mknod, and sort options in HISTORY (incl. mdoc and grammar nit fixes).
2003-05-09 09:15:20 +00:00
christos
0c737a5345
/sbin/wizd points out that it is CYGWIN not GYGWIN.
2003-05-08 14:47:19 +00:00
christos
96618476db
deal with cygwin's dev_t (John Gordon)
2003-05-08 13:29:39 +00:00
lukem
670700cfd8
2.0, not 1.7
2003-05-08 11:36:28 +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
2ac07ea296
Move major_netbsd(), minor_netbsd(), and makedev_netbsd() from
...
pack_dev.c to pack_dev.h, so that #include-rs of the latter can use them.
2003-05-08 09:38:03 +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
wiz
990562bfef
.Nm does not need a dummy argument ("") before punctuation or
...
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
ross
dc5571b22e
Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
2002-02-08 01:21:55 +00:00
tv
9fbd88883c
Roll in fixes to permit cross-compiling from non-NetBSD hosts. This
...
round has been tested on Solaris/x86 and Linux hosts.
* Add host tools cap_mkdb, ctags, m4, uudecode.
* Protect __RCSID() and __COPYRIGHT() better.
* Reduce the number of places that need to include "config.h", to keep
sources closer to their "vanilla" versions.
* Add more compat #defines and autoconf-checked functions.
2002-01-31 22:43:33 +00:00
tv
fcae5f73b7
Add hooks to make mtree compilable from src/tools.
2002-01-29 00:07:27 +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
mycroft
7e21660e42
Fix a formatting error.
2001-10-08 01:40:43 +00:00
wiz
73f545bb5b
Drop arguments of .Os.
2001-06-05 11:22:41 +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
fair
d143ba5da7
To resolve PR 9451, wording and formatting adjusted to be more clear about
...
the -F option for making device nodes for other versions of UNIX.
2000-05-17 09:43:33 +00:00
simonb
cff93eae67
Arch-specific directories now live under .../sys/arch, not directly
...
under .../sys.
2000-03-22 02:11:51 +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
christos
f95d18485e
- document 'p' file type.
...
- fix stale documentation about the location of the major/minor device
tables in the kernel.
1998-11-24 22:55:23 +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
enami
776a465431
Sort SEE ALSO list; first by section number, then alphabetical order.
1997-10-11 02:59:26 +00:00
lukem
beb3ef1e7e
* cleanup for WARNS+1
...
* use .Nm correctly
1997-09-15 03:46:27 +00:00
phil
152140cb4e
Added mkfifo(1) and mkfifo(2) to the SEE ALSO list. (PR 1307)
1997-06-30 17:17:56 +00:00
jtc
ea00559d41
Convert to use err(3)
1995-08-11 00:08:18 +00:00
jtc
7320c39038
makedev(8) -> MAKEDEV(8); PR #1306
1995-08-10 23:47:32 +00:00
cgd
0114e805ce
convert to new RCS Id conventions; reduce my headache
1995-03-18 14:54:19 +00:00
cgd
06e2955ff1
specify man pages the new way.
1994-12-22 10:44:04 +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
jtc
ab3a89f913
Fix spelling errors
1994-01-14 02:05:23 +00:00
jtc
93a125034a
Use ".At v6" macro instead of spelling out "Version 6 AT&T UNIX".
1993-11-30 00:11:45 +00:00
mycroft
e9d867ef50
Add RCS identifiers.
1993-08-01 17:54:45 +00:00
mycroft
dfb9caab49
Add RCS indentifiers.
1993-08-01 07:32:48 +00:00
mycroft
cda4f8f6ee
Add RCS identifiers.
1993-08-01 05:37:30 +00:00