Commit Graph

2898 Commits

Author SHA1 Message Date
obrien
ffffe6481b Only output `rcsid' (set to our Id string) into the resulting parser file.
Don't output `sccsid' (set to an anchient UCB Id string) into the parser file.

Submitted by:	bde
1999-07-30 06:40:00 +00:00
green
a448a2abc0 Fix improper mmap length paramater which can result in improper behavior
or cmp crashing in specific cases.
1999-07-29 23:26:22 +00:00
sheldonh
bc7c4b861c Allow comments and blank lines as advertised in passwd(5).
PR:	12828
Submitted by:	Yasuhiro Fukuma <yasuf@big.or.jp>
1999-07-29 16:30:35 +00:00
obrien
d291b1f656 Follow the directions in the comments and add our Id string to the output
file.
1999-07-29 09:59:06 +00:00
obrien
b10abbc3c0 Check that user supplied the required argument; and if not, show usage().
Obtained from:	OpenBSD
1999-07-29 09:47:33 +00:00
obrien
ecc95f8e7b * Don't assume realloc() can take NULL as first arg. Yacc needs to
generate portable code...
* Correctly define yyparse() (ie, K&R vs. C++/ANSI-C)

Obtained from:	OpenBSD revs 1.5 & 1.10
1999-07-29 09:42:14 +00:00
obrien
0f208ce6bb YYRECOVERING(), not YYRECOVERING.
Obtained from:	OpenBSD rev 1.8 (approved by Robert Corbett)
1999-07-29 08:47:30 +00:00
obrien
d7c5d95faa Add support for Bison's "%expect <int>" directive.
I originally coded this myself, and now I realize {Net,Open}BSD had already
coded this.  I have tossed my version to reduce diffs between the projects.

Obtained from:	OpenBSD 2.5
1999-07-29 08:42:21 +00:00
green
e59fc97cc8 New w ability: you can list multiple users on the command line and it will
match with all of them, rather than only supporting a single user.

PR:		11121
Kinda submitted by:	James Howard <howardjp@byzantine.student.umd.edu>
Reviewed by:		DES
1999-07-28 19:29:46 +00:00
green
37fd08ae8d This covers the previous version, since a null commit message was accidentally
used:

Add a -c flag to print a count of messages and exit.

PR:             10921
Submitted by:   James Howard <howardjp@byzantine.student.umd.edu>
Requested by:	DES
1999-07-27 02:08:55 +00:00
green
f54e4029ae *** empty log message *** 1999-07-26 23:12:12 +00:00
n_hibma
a7afbdeb6b Convert interrupt count from signed to unsigned and the total
from signed long to unsigned lon long.

PR:		12808
Submitted by:	Kevin Day toasty@dragondata.com
Reviewed by:	bde
1999-07-26 09:18:26 +00:00
mjacob
5802e7035d Apply suggested patch- seems reasonable.
PR:		12020
Submitted by:	Matthew D. Fuller <fullermd@futuresouth.com>
1999-07-24 17:49:17 +00:00
n_hibma
3f78faa42d Correct a typo (22th -> 22nd)
Remove some whitespace
Fix a problem where any event on the Last whatever of the month
was duplicated after the last day of the month (e.g. 32oct.)

PR:		4907
Submitted by:	Mikhail Teterin mi@aldan.algebra.com
1999-07-24 16:23:52 +00:00
hoek
6520007244 Regenerate to match changes made in the embedded yacc parser. 1999-07-23 23:13:44 +00:00
hoek
2258385cd9 Regenerate this file. This fixes a y2k bogon. As an unintentional side-effect,
it also fixes that fact that this file badly needed to be regenerated due
to changes in yacc.

Not done by: pst (in misc/1380)
Almost done by: danny (in ftp.y)
1999-07-23 23:10:34 +00:00
sheldonh
52eee06a54 Don't dump core for a known, documented bug.
PR:	12611
Reviewed by:	markm
1999-07-22 17:33:11 +00:00
sheldonh
a2b1df94ad Improve printf(3) conversion specifier parsing so that silly formats
aren't allowed and the right casts can be used for printf() statements.

Document the conversion specifier limitations and the fact that
arithmetic overflow causes a fatal error.

PR:	12611
Reported by:	Frode Vatvedt Fjeld <frodef@acm.org>
Reviewed by:	bde
1999-07-22 17:11:59 +00:00
wes
0d2dd20d4a Vastly improve the speed of the file command by making
the expected size of the magic(5) database agree with the
real world.  Also, improve the behavior of the realloc
mechanism when the magic database does exceed expectations.

Reviewed by:	Peter Jeremy, Matt Dillon
Obtained from:	Peter Edwards <peter.edwards@isocor.ie>
1999-07-22 01:22:08 +00:00
nik
cd078e5427 Document the "skey" command in telnet(1).
PR:             docs/12360
Submitted by:   kjm@rins.ryukoku.ac.jp (KOJIMA Hajime)
1999-07-19 22:24:32 +00:00
jdp
328f802cb6 Add braces to appease the egcs -Wall mom. 1999-07-17 19:03:20 +00:00
jdp
05b2f4263f Make gcore work again. It was broken by a format change in the
procfs map file when object IDs were eliminated in the mega-commit
that included procfs_map.c revision 1.19.

The map file is a terrible hodge-podge.  The fields that are used
mainly for kernel debugging should be moved out of it into a
separate file, so that the interface presented by the map file to
applications can remain stable in the face of VM system changes.
1999-07-17 18:58:32 +00:00
bde
a76708b594 Decode new ptrace requests PT_GETDBREGS and PT_SETDBREGS. 1999-07-17 09:27:41 +00:00
simokawa
bd76338214 Enable gprof on alpha.
* alpha.{c,h} are same as i386.{c,h}.
* Force address calculation to be done in long precision(64bit on alpha)
  rather than double precision(52bit).
1999-07-16 07:22:10 +00:00
nik
6578739ddb Add $Id$, to make it simpler for members of the translation teams to
track.

The $Id$ line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;

     .\"    $Id$
     .\"

If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.

Approved by:            bde
1999-07-12 20:24:20 +00:00
cracauer
5c2c4901ff Break lines to be < 80 chars. This has been done only to that file in
doscmd that was affected by the SA_SIGINFO changes (which made many
lines longer).

This application is in need for general code reformatting and warning
fixes.

Submitted by:	Warner Losh <imp@village.org>
1999-07-07 06:44:53 +00:00
imp
136f27c25b Per requests from the community, commit rudimentary cross compilation
support.  I've been building world with these changes for months w/o
ill effect.  I've also managed to build the cross tool chain for MIPS
with these patches.

Please note that the extent to which these patches work is largely
dictated by how well our tool chains support the cross compilation.
Building alpha binaries on i386 doesn't work.  Supposedly building
i386 binaries on alpha does work, but I've not verified it with these
patches, however.
1999-07-07 04:46:46 +00:00
des
71fd17e057 Use -finet option to netstat(1), and don't discard anything.
Don't truncate the protocol field.
These two changes conspire to make sockstat(1) show divert sockets.

Submitted by:	ru
1999-07-06 19:12:31 +00:00
des
f234b406a4 Don't truncate port numbers.
Submitted by:	ru
1999-07-06 19:10:15 +00:00
cracauer
f30679239e Update to new struct sigcontext after SA_SIGINFO changes 1999-07-06 07:15:11 +00:00
billf
4822432874 Clean up some ambiguous nested if/elses. 1999-07-04 17:26:16 +00:00
dt
70ccb43727 Don't ignore weak symbols.
EGCS assign weak symbols to inline functions it couldn't inline (e.g. virtual
inline functions), template functions, etc. Omitting them result in quite bogus
profile.

Weak symbols created by __weak_reference are not really problem.

Caught by:	Ilya Segalovich <iseg@comptek.ru>
1999-07-03 12:30:04 +00:00
des
1e1f8ed63c Reverse the FTP_PASSIVE_MODE check, so it checks for "is not NO" rather
than "is YES".
1999-07-03 10:10:50 +00:00
billf
36415d9fe3 Remove unused variable.
Approved By:	phk
1999-07-02 20:46:03 +00:00
billf
267994fe47 Add braces to avoid ambigious else. 1999-07-02 15:26:53 +00:00
ru
4ba1aeb454 o use getprotobynumber(3) instead of hardcoded protocol names.
Divert(4) sockets will now appear as "internet raw divert"
  instead of "internet raw 254".

o -Wall tweak.

Reviewed by:	bde
1999-07-02 13:25:49 +00:00
bde
ae73a79332 Actually fixed ambiguous else. The previous revision had no effect. 1999-07-02 11:20:59 +00:00
green
090af66e8b "transfered" -> "transferred"
Reviewed by:	dict(1)
1999-07-02 08:57:06 +00:00
billf
56161029de Fix ambigious else.
Reviewed By:	eivind
1999-07-01 17:59:17 +00:00
ru
0624def54d Document that FTP_PASSIVE_MODE should be explicitly
set to `YES' for passive mode to be used by default.
Just setting FTP_PASSIVE_MODE is not sufficient, as
it was before.

Noted by:	eivind
Reviewed by:	des
1999-07-01 14:32:07 +00:00
billf
73d3a9b398 (1) Don't perror() when at.deny doesn't exist, that's an accepted behavior.
(2) Die when there is a problem opening at.allow other then it not existing.
    An error other then it not existing might be a trick to somehow
    circumvent system security.

Mostly Reviewed By:	msmith
1999-07-01 01:07:30 +00:00
kris
ed6a966fc1 retreived -> retrieved
Obtained from:		OpenBSD
1999-06-30 12:53:06 +00:00
bde
f1f4d770fd Decode all currently supported values of the ptrace `request' arg. 1999-06-26 07:31:13 +00:00
billf
9409c1b0e2 Make a reference to rtprio, which will definatly be of interest to someone
looking at this page.

Requested By:	Keith Stevenson <k.stevenson@louisville.edu>
1999-06-25 20:54:33 +00:00
ru
d321f9c4e4 - add "-s src_addr" option to allow setting of the source IP address;
- fix two minor bugs;
- slightly cleanup manpage.
1999-06-25 14:11:16 +00:00
imp
395d563b43 Don't add '?' to getopt's options. 1999-06-24 06:45:32 +00:00
mpp
74991d7076 Some man page cleanup. Make the NAME and SYNOPSIS sections agree so
that whatis(1) will produce the expected results.

Pointed-out-by: Jesus Monroy <jesus.monroy@usa.net> in freebsd-doc
1999-06-24 06:22:24 +00:00
mpp
496988a00f Add the 'reset' command to the NAME section.
Pointed-out-by: Jesus Monroy <jesus.monroy@usa.net> in freebsd-doc
1999-06-24 04:48:41 +00:00
sheldonh
5924813a9f Add a messy example of how to get debug-mode error messages written to
a file in the user's home directory.

Requested by:	hoek
1999-06-23 15:44:40 +00:00
hoek
187aef71ff Don't strip trailing .suffixes from filenames. Although obviously
intentional, this behaviour is far too obnoxious given the number of
filenames such as rpc.statd we have.

Submitted by:	Chris Costello [3]chris@calldei.com (bin/11303)
1999-06-21 19:52:09 +00:00