Commit Graph

6864 Commits

Author SHA1 Message Date
msmith
69143c0c88 Simple tool to print the device tree and resource usage by devices. Also
serves as an example of libdevinfo usage.
2001-04-21 00:13:25 +00:00
obrien
a4fe9a6114 Style changes. Not purfect, but closer to other Makefiles in the tree.
Approved by:	fenner
2001-04-20 17:30:12 +00:00
jkh
3fc7b2c53b Add Greece to the FTP mirror list.
Submitted by:	Konstantinos Konstantinidis <kkonstan@duth.gr>
PR:		26073
2001-04-20 15:04:59 +00:00
bmah
afa1440b6c Fix a problem with tests of the form "1.0" vs. "1.0a".
MFC candidate.

Pointed out by:		knu
2001-04-19 22:17:07 +00:00
alfred
0c62408904 Remove section from bugs that says we don't support client locks.
Pointed out by: Martin Blapp <mb@imp.ch>
2001-04-19 12:29:43 +00:00
alfred
9f1f7e7991 remove debug code left in by accident 2001-04-18 21:41:27 +00:00
joerg
be8b30a28f ``An undocumented feature is a bug.''
Turn on my asbesto suit, and document the DD and Wizard mode menu
keys.  It's a nuisance to always have to look them up in the source
code when needed.
2001-04-18 20:26:28 +00:00
ru
1db489053b mdoc(7) police: normalize .Nd. 2001-04-18 15:54:10 +00:00
dd
1c4a0a819d List the explanations of the command line arguments in the same order
as they're listed in the synopsis (alphabetical).
2001-04-18 07:21:58 +00:00
iedowse
84cb08b184 A few more mountd cleanups:
- Remove some horrible code that faked a "struct addrinfo" to be
  later passed to freeaddrinfo(). Instead, add a new group type
  "GT_DEFAULT" used to denote that the filesystem is exported to the
  world, and treat this case separately.
- Don't clear the AI_CANONNAME flag in a struct addrinfo returned
  by getaddrinfo. There's still a bit more struct addrinfo abuse
  left in here.
- Simplify do_mount() slightly by using an addrinfo pointer to keep
  track of the current address.
2001-04-18 00:28:37 +00:00
iedowse
cc38e735a4 Various bugfixes and cleanups, mainly from Martin Blapp:
- Revert del_mlist() to its pre-tirpc prototype. Unlike NetBSD's version,
  ours lets the caller generate any syslog() messages, so that it
  can include the service name in the message.
- Initialise a few local variables to clarify the logic and avoid some
  compiler warnings.
- Remove a few unused functions and local variables, and fix some
  whitespace issues.
- Reinstate the logic for avoiding duplicate host entries that got
  removed accidentally in revision 1.41 (added in r1.5). This bit
  was submitted in a slightly different form by Thomas Quinot.

Submitted by:	Martin Blapp <mb@imp.ch>,
		Thomas Quinot <quinot@inf.enst.fr>
PR:		bin/26148
2001-04-17 22:25:48 +00:00
alfred
7cae9abd49 Implement client side NFS locks.
Obtained from: BSD/os
Import Ok'd by: mckusick, jkh, motd on builder.freebsd.org
2001-04-17 20:45:23 +00:00
dougb
094094c9a5 By popular demand, have adduser preserve comments at the top of the
group file. Because of the way the group sorting works while printing
out the new file it's not possible at this time to restore comments
in other locations, but at least they won't just disappear altogether.
2001-04-17 09:42:07 +00:00
kris
009b80133e '%' is not a valid format string :-) 2001-04-17 07:35:41 +00:00
kris
63c296c85c Remove spurious extra format string argument. 2001-04-17 07:32:37 +00:00
ru
99720afb85 mdoc(7) police: Prepare for mdocNG.
The .Cd macro does not cause a line break until in the SYNOPSIS section.
2001-04-16 15:18:16 +00:00
dougb
429d9d797f Add a more useful solution to the problem of password files with more than
one user who differs only by case. The other perl tools assume (or enforce)
the all lowercase requirement, therefore making the search through
master.passwd case insensitive seemed a reasonable optimization, IMO.

I understand, although I do not sympathize with, the argument that someone
might want to do this on purpose, and might subsequently want to use the
wrong tool for the job. So, this fix should hopefully satisfy both camps.
2001-04-15 20:43:49 +00:00
obrien
9fb6dac6ae Rev 1.11 introduced a bug where the processing became case insensative for
username to rm.

PR:		25961
Submitted by:	Linh Pham <lplist@closedsrc.org>
2001-04-15 20:01:02 +00:00
dd
746d677de3 Grammar police: "its", not "it's", is the possessive form of "it". 2001-04-15 19:53:47 +00:00
dd
e08b2a66e0 mdoc(7) police: misc. markup fixes in the DIAGNOSTICS section.
Submitted by:	ru
2001-04-13 20:43:59 +00:00
dd
da69977622 mdoc(7) police: properly use a -diag list in the DIAGNOSTICS section.
Reviewed by:	ru
2001-04-13 19:59:47 +00:00
ru
eacc9e6321 mdoc(7) police: Fixed markup. 2001-04-13 09:33:03 +00:00
ru
8668060bc4 mdoc(7) police: Fixed markup in rev.1.5. 2001-04-13 09:17:56 +00:00
peter
cde7fba5bf Remove the 'DO NOT EDIT THIS FILE' crud that we spit out with 'crontab -l'.
Otherwise, "crontab -l > file; vi file; crontab file" adds an extra set
of "DO NOT EDIT" markers each and every time which is a bit silly.
2001-04-13 01:45:22 +00:00
murray
d99608b2e4 Source rc.conf so that named.restart can restart named with the correct
flags.

PR:		misc/25049
Submitted by:	Richard Roderick <richard@gohome.net>
2001-04-11 02:12:14 +00:00
brian
4d6ffe2977 kldload ng_pppoe as necessary 2001-04-10 08:31:13 +00:00
sobomax
f771fe1a20 Allow user to omit font size specification when loading a font. In addition
the following fixes had been made:

- check the size of the font being loaded and compare it with possible sizes
  to minimise possibility of loading something that is not a fontfile at all
  and turning console screen into garbage;

- prevent buffer overflow (and coredump as a result ) when loading valid
  uuencoded file with size that exceeds allocated buffer;

- correct and improve several error messages.

Approved by:	-audit, -hackers (silently)
2001-04-09 17:24:29 +00:00
jkh
a115d84eba Clarify that we're talking about KBytes per second vs kBits per second.
Reminded by:	bde
2001-04-09 16:49:50 +00:00
greid
58bee941aa Change the behaviour of mixer slightly such that not explicitly specifying
a mixer device will set/get the master volume levels

PR:		25156
Submitted by:	Tony Finch <dot@dotat.at>
Reviewed by:	cg, nik
2001-04-09 11:10:34 +00:00
joe
4329712ba7 Don't complain about deprecated environment variables, like MUSIC_CD,
being present in the environment if the user has CDROM defined, or
has specified a device on the command line.

This avoids users of ports like 'workman' that use these variables
getting gratuitous warnings from cdcontrol.

Suggested by:	John Sellens <jsellens@generalconcepts.com>
2001-04-08 21:35:17 +00:00
jkh
ace0603dac According with RFC 2330 ("Framework for IP Performance Metrics", from
Paxson et al, Status: Informational, May 1998), we should use "bits per
second" and "k" as 1000 not 1024 for throughput measures.

Submitted by:   Eduardo Souza Machado da Silva <esms@acm.org>
2001-04-08 20:42:52 +00:00
ru
2ac87222ba beforeinstall -> SCRIPTS. 2001-04-07 11:21:35 +00:00
gad
7cf038688c Make sure the euid is restored in an obscure error situation.
Submitted by:	J Wunsch <j@ida.interface-business.de> in freebsd-audit
2001-04-06 02:14:39 +00:00
brian
72ae9ef73c It's possible to kldload netgraph (as well as the other ng_* bits),
so do it if required.
2001-04-05 22:53:35 +00:00
obrien
4191911b37 Bump the default / size up another 10MB to 120MB.
Requested by:	jhb
2001-04-05 21:34:47 +00:00
obrien
ef9f6f3c45 Remove -Wall. It breaks compiling with non-gcc compilers. 2001-04-05 20:52:33 +00:00
obrien
c7397aa36a Default the UTC question to "yes" on the Alpha. 2001-04-05 02:46:40 +00:00
obrien
c5bea7f88e This builds fine with -Wall. 2001-04-05 02:46:21 +00:00
brian
c28a5b744e When we change the interface MTU, run through the routing table and tweak
all route MTUs too.
2001-04-05 02:23:48 +00:00
yar
844dce0dff Add the VLAN interface type to the list of ARP-capable interface types. 2001-04-04 15:14:06 +00:00
ru
9b926bbc70 mdoc(7) police: removed hard sentence break. 2001-04-04 11:33:01 +00:00
ru
b1d33dd269 mdoc(7) police: removed hard sentence breaks. 2001-04-04 11:27:36 +00:00
ru
ad57725115 mdoc(7) police: you don't need to use enclose macros for blocks of text. 2001-04-04 11:25:07 +00:00
ru
864fa879aa mdoc(7) police: .Nm remembers its argument on the first call. 2001-04-04 11:19:09 +00:00
ru
acf4680285 Document ``special <progname> ident <identifier>'' command. 2001-04-04 08:28:00 +00:00
ru
e62b5a8239 - Call subclean' after clean' for each program.
- Eliminate compiler warning.
2001-04-04 08:26:54 +00:00
bmah
ca9ae26ab3 Implement a package number comparison routine for pkg_version(1)
that actually conforms to the Porters Handbook.

Add a -t option to pkg_version(1) for doing comparison testing.

Add a script (and make test target) to do some regression tests on
the package number comparison routine, to help debug future revisions.

Submitted by:		knu
Procrastination by:	bmah
2001-04-03 21:26:32 +00:00
brian
1cff8b6731 Be a bit more persistent when the NET_RT_IFLIST sysctl returns ENOMEM
rather than dropping out immediately.
2001-04-03 08:21:28 +00:00
brian
de5ac06866 Don't say ``PPP enabled'' if we're given the -quiet switch 2001-04-03 08:20:20 +00:00
fenner
57eab15da0 Update for tcpdump 3.6.2 2001-04-03 07:52:38 +00:00
ru
0326d42906 Backout revision 1.6 (removed the NOSHARED bit.)
These must be compiled static so that it is possible
to use them early in the boot process.

Requested by:	imp
2001-04-02 08:47:25 +00:00
ru
e759df540b Removed the NOSHARED bit. 2001-04-02 07:27:46 +00:00
dd
68c29b7b0d Fix a grammar bogon. 2001-04-02 06:21:13 +00:00
brian
2958f8a7d2 Don't assume challenges and responses don't contain embedded '\0's.
Mschapv2 response generation may produce embedded NULs... causing
us to send a bogus response to the radius server and end up
failing the client's valid response.

Problem pointed out by: Eugene Vigovskiy <vigov@com2com.ru>
2001-04-01 22:39:17 +00:00
obrien
fe28abf88a Give a little more variety in the /etc/exports example. 2001-04-01 09:19:23 +00:00
iwasaki
2865960545 Remove NOSHARED.
The usr.sbin/acpi/ utilities should be compiled non-static.
It just followed the usr.sbin/pccard/Makefile.inc way last time.

Pointed out by: ru and msmith
Committed at:   BSD HANAMI in Japan 2001
2001-04-01 07:00:35 +00:00
ru
d2d76c8dac -DRELEASE_CRUNCH moved into crunchgen(1) config files for
release building.  Remove a hack that is no longer needed.
2001-03-31 17:07:55 +00:00
jesper
2936ba582a MFC candidate
Change the default mode from ad-hoc to
infrastructure, as noted in

src/share/man/man4/an.4 rev 1.8
2001-03-30 16:32:52 +00:00
ru
99beb84315 `buildopts' may affect the selection of object files.
Make sure we pass $(BUILDOPTS) to the `clean' target
so that `make clean' works on the same set of object
files.  Otherwise, we may end up with an incorrectly
built and up-to-date object file.
2001-03-30 08:04:25 +00:00
jkh
d11eb55932 Correct message to say "shutting down" rather than just "shutting"
Noticed by:	Joachim Strömbergson <watchman@ludd.luth.se>
2001-03-29 19:56:20 +00:00
asmodai
11ead03a88 Change NO_MAKEDEV to a finer granularity method:
NO_MAKEDEV_INSTALL and NO_MAKEDEV_RUN.  The former implying the latter.
The names imply what they do.  The last commit by DES based on a PR defeated
the original idea behind NO_MAKEDEV, which was not to run MAKEDEV, but to do
the installation of MAKEDEV.  This should satisfy both parties on the MAKEDEV
challenge.
Reflect this in mergemaster, this might later on be decided to be set to
NO_MAKEDEV_INSTALL, for now I kept to the old behaviour.
2001-03-29 14:04:19 +00:00
asmodai
92d117fb8d Change NO_MAKEDEV to a finer granularity method:
NO_MAKEDEV_INSTALL and NO_MAKEDEV_RUN.  The former implying the latter.
The names imply what they do.  The last commit by DES based on a PR defeated
the original idea behind NO_MAKEDEV, which was not to run MAKEDEV, but to do
the installation of MAKEDEV.  This should satisfy both parties on the MAKEDEV
challenge.
Reflect this in the documentation.
2001-03-29 14:03:29 +00:00
ben
d61c3b42ac Kill vn related manual pages, they're not used any more.
Approved by:	phk
2001-03-29 11:36:46 +00:00
dd
c0c097b2eb Note that the -v option is not supported. Don't remove the actual
text because the code is still in pstat.c, and may be reincarnated at
some point.

PR:		26054
Approved by:	nik
2001-03-29 01:46:20 +00:00
ben
1d9bfe6296 Fix some minor nits:
IEEE802.11 -> IEEE 802.11
(infrastructure) mode. -> (infrastructure mode).
place of ".".

PR:		25985
Submitted by:	SUZUKI Koichi <metal@vc-net.ne.jp>
2001-03-29 00:12:01 +00:00
dwmalone
c2eb2de08d Allow ident requests with trailing junk following the terminating "\n".
Reviewed by:	ben
Approved by:	green
2001-03-28 13:41:19 +00:00
brian
c003d28076 Bring the PPPoE interface UP if required
Suggested by: archie
2001-03-28 09:45:27 +00:00
dd
657e60faab Mention that the vga(4) driver supports 90-column video modes.
PR:		26050
Submitted by:	Alex Kapranoff <alex@kapran.bitmcnit.bryansk.su>
Approved by:	nik
2001-03-28 02:32:10 +00:00
brian
10711cb0d5 Add some comments to two examples and extend a ``set ifaddr''. 2001-03-28 00:23:30 +00:00
wpaul
54b2849efe Finally fix __yp_ping(). We can't use the old locally defined clntudp_call()
method anymore since the code inside the RPC library has changed too much.
Now that the clnt_dg module has the necessary code internally, we can yank
out the local method code and turn on the ASYNC hack with clnt_control().
This will make the -m flag work again.
2001-03-27 21:29:31 +00:00
cwt
54127cc6ae Document LOG_CONSOLE. 2001-03-27 19:55:53 +00:00
obrien
b45c7e6fc5 Mirror the newfs(8) defaults change I made in rev 1.33 of newfs.c where
I made `22' the default number of cylinders per group.
2001-03-27 17:05:23 +00:00
ru
6b679f791a Fix LDADD and add missing DPADD. 2001-03-27 16:45:16 +00:00
alfred
a44e6455e2 give the "netgrent" functions a home in netdb.h 2001-03-27 09:49:03 +00:00
ru
b15a893144 - Backout botched attempt to introduce MANSECT feature.
- MAN[1-9] -> MAN.
2001-03-26 14:42:20 +00:00
ru
e7c03cd6b0 - Backout botched attempt to introduce MANSECT feature.
- MAN[1-9] -> MAN.
2001-03-26 14:33:27 +00:00
sobomax
0ed286a913 Decapitalise first letter of warning message. 2001-03-26 09:57:26 +00:00
sobomax
700bd4cfbe In which(1) mode resolve "/../", "/./" in arguments and PLIST contents. This
is done without realpath() to avoid symlinks resolving.

Submitted by:	sobomax, Garrett Rooney <rooneg@electricjellyfish.net>
2001-03-26 09:31:41 +00:00
alfred
e3c12d88e2 Don't call daemon() and setup our signal handlers until after we check
and do the unregister/reregister work.

Don't call syslog in the unregister/reregister code as we haven't called
openlog() yet.

Be a more conservative about accepting errno values from socket(2),
only EPROTONOSUPPORT means that the kernel isn't supporting it
something like INET6.  The other possible errnos would be returned
if there was a mistake in the socket(2) call so remove them from the
list of "acceptable" return values.
2001-03-25 23:32:55 +00:00
alfred
8db3d58567 Disable ipv6 when getnetconfigent("udp6"/"tcp6") fails.
Submitted by: Martin Blapp <mb@imp.ch>
2001-03-25 23:28:03 +00:00
brian
e6c63c0ada Issue a ``quit'' after other ppp commands given on the command line and
then wait for the connection to be closed by the peer.

This means that commands such as ``pppctl ... show links'' will
display the correct output again (rather than truncating it depending
on how much data arrived in the last packet).
2001-03-25 20:06:08 +00:00
alfred
aef90db04c Replace pmap_unset() with rpcb_unset() which fixes the unregistering.
Submitted by: Martin Blapp <mb@imp.ch>
2001-03-25 19:59:07 +00:00
alfred
f6fc8275e0 Deal with lack of IPv6 support gracefully.
Submitted by: Martin Blapp <mb@imp.ch>
2001-03-25 19:57:58 +00:00
brian
a82e20fa98 If we're adding an interface address that is already one of the interface's
aliases with the same netmask and destination, don't remove it and then
re-add exactly the same thing.

This means that static (non-sticky) routes that use the interface address
(or destination address) as a destination will not suddenly evaporate when
IPCP comes up (not unless the negotiated IPs have changed anyway).
2001-03-25 01:34:27 +00:00
asami
97d88398f2 Add new categories science and ukrainian. 2001-03-24 21:52:25 +00:00
obrien
d21e13aa9c Revert the warning elimination in rev 1.292. It breaks the Alpha build with:
/usr/src/usr.sbin/sysinstall/menus.c:1323: initializer element is not computable at load time
/usr/src/usr.sbin/sysinstall/menus.c:1323: (near initialization for `MenuNetworking.items[9].aux')
2001-03-24 17:28:06 +00:00
jkh
71ac316479 Preserve ssh directory across upgrades.
Submitted by:	Edwin Groothuis <edwin@mavetju.org>
PR:		conf/25633
2001-03-24 05:40:43 +00:00
jkh
c756ed4205 afterstep doesn't need an explicit xterm started for it either. 2001-03-24 03:17:35 +00:00
jkh
bbed553b66 s/dependant/dependent
Submitted by:	rwatson
2001-03-24 01:26:51 +00:00
alfred
fcac6cfb84 revert rev 1.3: restore MAN1 directive to unbreak world 2001-03-24 01:17:51 +00:00
sobomax
349a03a6b1 - Add which(1)-like functionality into pkg_info;
- fix a harmless bug in match_installed() function introduced in my last
  commit;
- uniformely reorder includes across files.

Submitted by:		Garrett Rooney <rooneg@electricjellyfish.net>
Not objected by:	jkh, -ports
2001-03-23 18:45:24 +00:00
bde
03281e76f0 Fixed style bugs (use normal formatting for assignment, and don't override
the correct default for MAN1).
2001-03-23 13:47:46 +00:00
brian
94dfffde91 Quote PPP_CONFDIR in CFLAGS 2001-03-23 13:28:28 +00:00
brian
28e219f561 Change _PATH_PPP to PPP_CONFDIR and allow it to be overridden at compile time 2001-03-23 11:43:22 +00:00
jkh
bf004b122a Make wizard mode get out of raw mode first before going interactive with
the user.

Submitted by:	Cyrille Lefevre <clefevre@citeweb.net>
PR:		bin/24061
2001-03-23 08:26:43 +00:00
jkh
c666965dab Fix a bug with setting the soft updates option from a script.
Eliminate an old warning brought about by insufficient foresight when creating
the Menu structure.  Have I ever mentioned that sysinstall really needs to
be rewritten?
2001-03-23 08:06:19 +00:00
jkh
c7a10133f7 Switch from lynx to "links" as the default doc browser.
Submitted by:	jim
2001-03-23 07:53:45 +00:00
iedowse
77f53cc0c7 Add missing specification of the `-s' option to the usage line.
PR:		bin/26004
Submitted by:	ushida@msa.biglobe.ne.jp
Reviewed by:	rnordier
2001-03-22 22:55:13 +00:00
alfred
c3c6ed25b4 Remove struct cmessage from sys/socket.h and reintroduce the private
definitions.

Requested by: wollman
2001-03-22 20:43:13 +00:00
ache
592f5975cd Unbreak world by removing struct cmessage already define in sys/socket.h 2001-03-22 18:18:32 +00:00