Commit Graph

7214 Commits

Author SHA1 Message Date
Joerg Wunsch
4f0b1b7805 Make fdformat WARN=2 ready. 2001-07-03 21:43:41 +00:00
Matt Jacob
9c7ef644aa Use correct type of argument to fgetln.
MFC after:	1 week
2001-07-03 21:40:34 +00:00
Dima Dorfman
b63a058632 mdoc(7) police: fix spacing and punctuation issues. 2001-07-03 21:22:09 +00:00
Hajimu UMEMOTO
4b68082379 drop setgid bit. ifmcstat(8) is not audited, and is needed only for root.
Obtained from:	KAME
MFC after:	1 week
2001-07-03 18:15:07 +00:00
Ruslan Ermilov
ac731e6941 Fixed the world breakage in rev. 1.8 (space after -I).
While here, removed the GCCism (replaced with WARNS?=1).
2001-07-03 09:48:28 +00:00
Brian Somers
7aab014be6 Do away with the ``err'' variable.
Inspired by: kris
2001-07-03 01:02:26 +00:00
Dima Dorfman
6060f58628 Document continuation line support.
PR:		8479
Submitted by:	Adrian Filipi-Martin <adrian@ubergeeks.com>
2001-07-02 23:59:06 +00:00
Dima Dorfman
376f839026 Correct handling of continuation lines. Instead of treating the
backslash as nothing, treat it like a space so that adjacent lines
aren't glued together.

PR:		8479
Submitted by:	Adrian Filipi-Martin <adrian@ubergeeks.com>
2001-07-02 23:56:01 +00:00
Joerg Wunsch
e42ad56f1a Use the printstatus() function from ${.CURDIR}/../fdread/fdutil.c to
give a bit more information about up to 10 errors encountered during
formatting (unless -q has been specified, of course).

While being here, removed a bitrotten comment in the Makefile, and
kill the old Emacs local variable stuff at the end of fdformat.c
that's no longer useful anway.
2001-07-02 21:24:03 +00:00
Joerg Wunsch
65217f13ff Break out the function to print the FDC error information into
fdutil.c so it can be used elsewhere.
2001-07-02 21:21:58 +00:00
Hajimu UMEMOTO
96fbd5a8e7 correct arg to getopt (-P takes arg).
Submitted by:	mikeh
MFC after:	1 week
2001-07-02 17:50:50 +00:00
Crist J. Clark
6ca048f825 Lose any stray host bits that a user may have entered when providing
a network number and netmask to the '-a' option.

Approved by:	ru
MFC after:	1 week
2001-07-02 15:26:47 +00:00
Kris Kennaway
0c50e5287e Silence some of the -Wnon-const-format warnings and add __printflike()
to a function prototype which needs it.

Approved by:	brian
MFC After:	2 weeks
2001-07-02 12:27:49 +00:00
Nik Clayton
168b0b9d70 "changing" -> "charging"
PR:             docs/15004
Submitted by:   Kazuo Horikawa <horikawa@jp.FreeBSD.org>
2001-07-02 09:33:50 +00:00
Warner Losh
a3d1987d23 Bump config version in config. 2001-07-02 05:38:26 +00:00
Dima Dorfman
91308c55b5 Bring back part of rev. 1.296 I accidently reverted in the previous
commit.
2001-07-02 00:24:23 +00:00
Dima Dorfman
13704ca508 Introduce DEVICE_INIT, DEVICE_GET, and DEVICE_SHUTDOWN macros. As the
names suggest, they perform methods on Device's.  In addition, they
check that the pointer passed to them is valid; if it isn't, they
pretend that the action failed.  This fixes some crashes due to NULL
dereferences (e.g., PR 26509).

Approved by:	jkh (some time ago)
2001-07-02 00:18:04 +00:00
Warner Losh
971470c36c Move kernel compile directory from sys/compile/FOO to
sys/compile/${MACHINE}/FOO.

Reviewed by: obrien, peter and the USENIX terminal room secret kernel cabal
2001-06-30 06:28:12 +00:00
Dima Dorfman
f6751868e4 Set WARNS=2 on programs that compile cleanly with it; add $FreeBSD$
where necessary.

Submitted by:	Mike Barcroft <mike@q9media.com>
2001-06-30 05:39:36 +00:00
Nik Clayton
38363ccec2 Various changes to the messages so that they are now appropriate for both
CD and DVD releases of FreeBSD.
2001-06-27 17:48:43 +00:00
Joerg Wunsch
a5cef3b45a Now that we've got it, use FDOPT_NOERRLOG for fdformat and fdwrite to
avoid blasting the syslog with error messages from bad floppies.  Both
tools have their own error reporting anyway (which could easily be
cluttered by the syslog output on your terminal).
2001-06-26 22:19:32 +00:00
Joerg Wunsch
8a5f4c1290 Implement the -I option that uses the FD_READID ioctl in order to read
sector ID fields from a floppy, and display them.
2001-06-26 22:17:21 +00:00
Dima Dorfman
015fadf9d7 Add appropriate includes and prototypes; staticize; set WARNS=2. Also
minor Makefile nits.

Submitted by:	Mike Barcroft <mike@q9media.com>
2001-06-26 22:11:13 +00:00
Dima Dorfman
d0fddb0c1c Back out previous commit; this can't compile with WARNS=2 because
xdr.h isn't warning-free.

Submitted by:	ru
2001-06-26 07:31:00 +00:00
Brooks Davis
fa8d8b2e04 Actually implement -a as documented since import (set access point density).
Remove documentation for short-lived usage as "print keys in ASCII."

PR:		bin/21803
MFC after:	1 week
2001-06-26 00:12:58 +00:00
Brooks Davis
362967568a Output the current TX rate when showing status.
PR:	bin/25470
2001-06-26 00:00:58 +00:00
Dima Dorfman
789784547f ANSIize, staticize, and unsignedize; set WARNS=2.
Submitted by:	Mike Barcroft <mike@q9media.com>
2001-06-25 21:12:52 +00:00
Dima Dorfman
0cbc94d0e8 Constify and set WARNS=2.
Submitted by:	Mike Barcroft <mike@q9media.com
Reviewed by:	md5(1)
2001-06-25 21:06:15 +00:00
George C A Reid
efe4cd6a18 Add an acceleration option to moused
PR:		28369
Submitted by:	Daniel O'Connor <darius@dons.net.au>
manpage reviewed by:	ru
MFC after:	10 days
2001-06-25 20:15:34 +00:00
Garance A Drosehn
004c9c5da2 Make 'lpc clean' somewhat safer. Add an 'lpc tclean' command, which allows
one to see what files would be removed *if* an 'lpc clean' is done.  'tclean'
will remove no files, and is therefore not a privileged command.  Also, both
'lpc clean' and 'lpc tclean' will now look for 'core' files in spool directories
(but not remove them).  They also print out an extra line of info when a
datafile to be removed is a symlink (from 'lpr -s'), saying what file it is
a symlink to.

The 'lpc clean' commands also now print out a summary line saying how many
queues were checked, how many files were removed (or "would be" removed, for
tclean), and how much disk space is involved.  For the benefit of those who
have many print queues, 'lpc clean all' will only print out the names of print
queues where some "interesting" files were found, instead of printing out a
header-line for every queue in your printcap file.

Reviewed by:	freebsd-print@bostonradio.org  freebsd-audit@FreeBSD.org
MFC after:	2 weeks
2001-06-25 02:05:03 +00:00
Garance A Drosehn
6ddb63cad6 Add two new options for lpd: -c will log all connection-errors to syslog,
while -w allows connection from non-reserved ports.  Also improves the
helpfulness of various connection-error messages.

The changes for IPv6 added back in the reserved-port check which was mistakenly
dropped from lpd in 1997 (copying a change from openbsd).  It is best to have
that check in place, but the check breaks lpr's from some implementations of
lpr/lpd for Windows.  The -w option is for those admins who need to accept
jobs from non-reserved ports, the -c option is for admins who would like a
print-server machine to log all failed connection-attempts to syslog.

Reviewed by:	freebsd-audit@FreeBSD.org  freebsd-print@bostonradio.org
MFC after:	2 weeks
2001-06-25 01:45:25 +00:00
Dima Dorfman
727b8ed309 Xref to extattr(2) and extattr(3). 2001-06-24 23:59:22 +00:00
Dima Dorfman
7309915e7a Nuke unused variables. 2001-06-24 23:41:57 +00:00
Dima Dorfman
b5bf845d5d Xref extattr_set_file(2). 2001-06-24 21:14:46 +00:00
Dima Dorfman
3627fb0997 Xref extattr_get_file(2). 2001-06-24 21:13:58 +00:00
Dima Dorfman
cfbcaeda78 Add a namespace argument to one of the examples. 2001-06-24 21:13:01 +00:00
Dima Dorfman
3876038a6f Add missing includes and sort includes. 2001-06-24 20:28:19 +00:00
Dima Dorfman
8006f275bb Include missing header files. 2001-06-24 20:26:00 +00:00
Dima Dorfman
2694efd413 Include missing header files which define functions for which gcc has
builtints (e.g., exit, strcmp).
2001-06-24 20:25:23 +00:00
Dima Dorfman
c869717158 Include stdlib.h for exit(3).
Submitted by:	Mike Barcroft <mike@q9media.com>
2001-06-24 20:05:30 +00:00
Dima Dorfman
0e304b4853 Constify and set WARNS=2.
Submitted by:	Mike Barcroft <mike@q9media.com>
Reviewed by:	md5(1)
2001-06-24 18:51:40 +00:00
Dima Dorfman
167ce4fb00 Constify, add a prototype, and set WARNS=2.
Submitted by:	Mike Barcroft <mike@q9media.com>
Reviewed by:	md5(1)
2001-06-24 18:43:33 +00:00
Dima Dorfman
dfe60c7914 Constify and set WARNS=2.
Submitted by:	Mike Barcroft <mike@q9media.com>
Reviewed by:	md5(1)
2001-06-24 18:41:30 +00:00
Ian Dowse
99d4ecdfc0 Clean up the addrmerge() function, which was over-complicated and
contained a number of memory leaks. The changes include:

 - Add a comment describing what addrmerge() does.
 - Deal with 0.0.0.0./::. or AF_LOCAL callers correctly.
 - Use rpcbind_get_conf() instead of getnetconfigent() so we don't
   have to remember to free the returned netconfig struct.
 - Make just one pass through the ifaddrs list; we can pick up a fallback
   interface address in the same pass as the netmask comparison.
 - Define and use SA2SIN* macros to avoid the need for loads of
   protocol-specific local variables.
 - Use mostly protocol-independent code for building the netbuf version
   of the address to be returned.
 - Use the common cleanup code for virtually all error and non-error
   cases, fixing a number of memory leaks.
2001-06-24 15:03:06 +00:00
Dag-Erling Smørgrav
0afcb0871d Constify, staticize and add a missing include; add WARNS?=2.
Submitted by:	Mike Barcroft <mike@q9media.com>
MFC after:	2 weeks
2001-06-24 12:38:28 +00:00
David Malone
a933327c4b Don't add -Wall, as it's a compiler specific flag. 2001-06-24 09:20:42 +00:00
David Malone
b585f768e1 Fix most of the warnings given by WARNS=2. 2001-06-24 09:20:07 +00:00
Dima Dorfman
a910f192bb Remove duplicate words. 2001-06-24 01:34:38 +00:00
Ian Dowse
98f36a359d Fix some return-value brain-damage in forward_register(). This
function has a return type of u_int32_t, into which it was somehow
supposed to encode:
 *  A valid 32-bit XID (which could be any value including 0).
 *  0, meaning a duplicate request.
 *  -1, meaning a malloc failed (!);
We now ensure that all XIDs are non-zero, and pass the XID out via
a pointer argument.

In forward_find() and free_slot_by_xid(), remove an unnecessary
and confusing test for a negative result from an unsigned modulo
operation, but add an unnecessary cast to highlight why.
2001-06-23 21:54:47 +00:00
Ben Smithurst
f1a1584029 remove -g -O0, that was only for debugging... 2001-06-23 19:24:18 +00:00