Commit Graph

2519 Commits

Author SHA1 Message Date
lukem fbab1e72fb move guts of non-F special parsing into separate openpartition() func 2001-11-09 11:48:39 +00:00
lukem e48d7547e2 Change -F from "special must be a regular file" to "special can be any type,
and don't attempt to do any file name translation (e.g, search in fstab)".

In the non -F case, search for special in fstab. If found, convert fs_spec
to a raw device name. In any case, use opendisk(3) to open the device.
2001-11-09 09:05:51 +00:00
lukem 3c367dcbb0 use MAXPATHLEN instead of 32 as the size of the rawbuf 2001-11-09 07:50:19 +00:00
christos 522d8e170c PR/14498: Wesley Chen: Support symbol loading on elf lkms. 2001-11-08 15:33:15 +00:00
lukem c3e4fa53d9 if sysctl kern.root_device is availalbe, use that the default device
(rather than /dev/rwd0d).  display the disk device used when printing
the partition table.
2001-11-07 14:50:32 +00:00
lukem 9bf29de9d5 fix many -Wshadow warnings 2001-11-02 05:57:38 +00:00
lukem 6c07f34b54 fix -Wshadow warnings 2001-11-02 05:44:46 +00:00
lukem 04d5555436 fix -Wshadow warning 2001-11-02 05:33:21 +00:00
lukem cbbd79f700 fix -Wshadow warnings 2001-11-02 05:30:56 +00:00
lukem 895db4cb83 fix -Wshadow warnings 2001-11-02 03:57:25 +00:00
lukem fd87fe6aaa fix -Wshadow warnings 2001-11-02 03:51:48 +00:00
lukem 5b5d0d23b8 oops, remove temporary comment 2001-11-01 08:21:57 +00:00
lukem 7f675a25b7 fix -Wshadow warnings 2001-11-01 08:21:07 +00:00
lukem 3a17632dfb remove arg name in prototype decl 2001-11-01 08:18:01 +00:00
lukem 7623928b3a fix a couple of -Wshadow warnings 2001-11-01 08:06:57 +00:00
lukem 4c4307e3ce fix -Wshadow warnings 2001-11-01 08:03:03 +00:00
lukem fa02ec4ccb fix a -Wshadow warning 2001-11-01 07:48:08 +00:00
lukem 3d6fc56715 fix -Wshadow warning by moving "int version" from global to main() scope 2001-11-01 07:44:05 +00:00
lukem d3656d428d fix a couple of -Wshadow warnings 2001-11-01 07:39:38 +00:00
lukem 4475e1747e fix a couple of -Wshadow warnings 2001-11-01 07:31:22 +00:00
lukem 058fbb840d opendisk(3) checks the device type for us 2001-11-01 07:04:18 +00:00
jdolecek d66dfc84d0 Xref disklabel and mention that mbrlabel can help setup the disk label
Note that NTFS partition is no longer accessible in NetBSD once
it's marked 'dynamic' in MS Windows XP.

Pointed out by Christos.
2001-10-31 21:04:45 +00:00
jdolecek 1295376b01 Couple changes, mainly to address stuff raised recently on port-i386
('Does i386 support NTFS5 now?'):

add a note both NTFS4 and NTFS5 are supported
reformat the Limitations a bit
assert the write support is not really useful, and should not be used
add a BUGS section, note missing stuff for the write support to be useful,
and the disk label thing spotted by Christos Zoulas
2001-10-31 19:16:36 +00:00
wiz f1dd0210ab Sort sections, whitespace nits. 2001-10-30 07:28:22 +00:00
kml 1d2a82ea66 Added descriptions of the new sysctls for controlling the disposition
of IPv4 routes added via redirects, rediraccept and redirtimeout.
2001-10-30 06:43:21 +00:00
lukem 99147a7648 remove #include <ufs/ufs/quota.h> where it was just to appease
<ufs/ufs/inode.h>, since the latter now includes the former.  leave the former
in source that obviously uses specific bits of it (for completeness.)
2001-10-26 05:56:06 +00:00
lukem ca2a1a8c3b in msg(), don't call va_list using functions twice in a row without calling
va_start() in between; reorder code so that we call vsnprintf and then
just fputs that buffer. crank the size of lastmsg whilst we're here
problem noted by Hideo Saito in [bin/14348].
2001-10-25 08:04:27 +00:00
atatat 70478477a0 Clean up the code a bit so that the ioctl() return value is always
compared to -1 (instead of <0 or !=0) and always to call err() with
EXIT_FAILURE instead of sometimes using 1.
2001-10-24 22:10:15 +00:00
atatat cdc6282274 Provide a short output format for the get command that only prints the
address corresponding to RTA_GATEWAY, or nothing if it doesn't exist.
Modify the exit value of route depending on this, so that one can do
stuff like:

#!/bin/sh
gw=`route -sn get default 2>/dev/null`
if [ -z "$gw" ]; then
	echo no default route
	exit 1
fi
ping -w1 -c1 $gw >/dev/null 2>&1
if ! route -sn get $gw >/dev/null; then
	echo default gateway not responding
	exit 1
fi
echo default gateway is at $gw
2001-10-24 18:40:16 +00:00
atatat 2e4d1a174e Print a R on reject routes to indicate that they're not normal routes,
and check netmask (or prefix) length as well as the destination
address when determining if a route is a "default" or not.  This means
that the output from 'route show' will no longer say:

	Internet6:
	Destination       Gateway            Flags
	default           localhost          UG
	default           localhost          UG

but instead

	Internet6:
	Destination       Gateway            Flags
	::/104            localhost          UGR
	::/96             localhost          UGR

which makes much more sense.
2001-10-24 16:05:06 +00:00
lukem 8064490359 minor WARNS=2 stuff 2001-10-19 01:16:37 +00:00
christos b77fb2a456 PR/14286: reed@reedmedia.net: Explain default. 2001-10-18 13:42:32 +00:00
atatat 39c4f538a3 Use the new sh script instead of the (now defunct) pl one 2001-10-15 17:34:50 +00:00
uch 0cbd019fc3 playstation2 support 2001-10-15 16:22:50 +00:00
wiz 699d58b177 Whitespace fixes, sort SEE ALSO, sort sections. 2001-10-15 13:43:06 +00:00
blymn a152a6a92a Add the capability for dump to print timestamps on all informational
messages.
2001-10-15 13:25:33 +00:00
lukem 9f95bf0782 fix error reporting in rdfs() and wtfs() 2001-10-14 01:38:53 +00:00
atatat 04fb6977ef Install the shell script instead of the perl script 2001-10-12 16:19:30 +00:00
atatat c9281cb7dd Bye bye, perl script. 2001-10-12 16:19:05 +00:00
atatat 149865a4d7 Remove the perl script from the mount_portal example for cvs and
replace it with a regular sh script.
2001-10-12 16:15:26 +00:00
atatat 9305145646 Add another example that shows how to map a cvs server into your local
file system so that you can pull random files out of it easily.
2001-10-11 18:41:11 +00:00
yamt 01f308933f - use IP_MAXPACKET instead of 65535.
- change max packet size from 65468 to 65467(= IP_MAXPACKET-60-8).
2001-10-10 15:58:04 +00:00
yamt d549add37f - fix overrun bug.
- bump bufsize to fix "packet loss" with large packet.
2001-10-09 19:17:02 +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
bjh21 6ef5a92fbb When dumping the routing table, use getnameinfo() to print link-layer
addresses rather than doing it ourselves and falling back to link_ntoa().
2001-10-06 18:32:45 +00:00
bjh21 3821a9917d Use getnameinfo() to format AF_LINK addresses again. 2001-10-06 17:05:29 +00:00
bjh21 daa1982d02 Revert last change. getnameinfo() AF_LINK support is going away until I can
make it lint-clean.
2001-10-05 20:50:19 +00:00