tsutsui
c7276dbc04
Remove old workaround for Cygwin.
...
http://mail-index.netbsd.org/source-changes/2003/05/08/0042.html
16bit dev_t for !__CYGWIN_USE_BIG_TYPES__ was removed in Cygwin 1.7.2
http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/include/cygwin/types.h?cvsroot=src#rev1.32
and __dev32_t has been removed since 1.7.19.
http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/include/cygwin/types.h?cvsroot=src#rev1.36
2013-06-14 16:28:20 +00:00
joerg
c6d7b0bb59
static + __dead
2011-08-27 18:37:41 +00:00
lukem
9abbf3c336
fix -Wsign-compare issues
2009-02-13 01:37:23 +00:00
lukem
6543a91fea
Remove the \n and tabs from the __COPYRIGHT() strings.
...
(Tweak some to use a consistent format.)
2008-07-20 01:20:21 +00:00
martin
ce099b4099
Remove clause 3 and 4 from TNF licenses
2008-04-28 20:22:51 +00:00
dsl
df1814f734
Use block minor (from device name) for block devices (not char minor).
...
Fixes PR bin/36614
2007-07-07 20:11:07 +00:00
christos
c05266af8a
fix setmode error handling.
2005-10-01 20:23:54 +00:00
jmc
b2f782612f
Completely rework how tools/compat is done. Purge all uses/references to
...
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')
Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).
Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.
Fixes PR's: PR#17762 PR#25944
2004-06-20 22:20:14 +00:00
christos
4ac79ef5f7
We only need sys/sysctl.h when we are building on NetBSD not as a host tool.
2004-06-17 23:15:07 +00:00
dsl
62be2f7f79
Add support for specifying drivers by name and listing the drivers in the
...
current kernel.
Man page update in progress.
2004-06-17 21:09:01 +00:00
christos
9e68dee1a2
Constify.
2004-05-11 17:09:58 +00:00
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