Commit Graph

6432 Commits

Author SHA1 Message Date
John-Mark Gurney
25d136776e make minimum column size for interrupt name be the heading (depends upon
Total being shorter than interrupt)..

Pointed out by:	bde
2003-11-09 20:39:56 +00:00
Marcel Moolenaar
1bcb5f5a96 Port truss(1) to 64-bit architectures:
o  Syscall return values do not fit in int on 64-bit architectures.
   Change the type of retval in <arch>_syscall_exit() to long and
   change the prototype of said function to return a long as well.
o  Change the prototype of print_syscall_ret() to take a long for
   the return address and change the format string accordingly.
o  Replace the code sequence
	tmp = malloc(X);
	sprintf(tmp, format, ...);
   with X by definition too small on 64-bit platforms by
        asprintf(&tmp, format, ...);

With these changes the output makes sense again, although it does
mess up the tabulation on ia64. Go widescreen...

Not tested on: alpha, sparc64.
2003-11-09 03:48:13 +00:00
John-Mark Gurney
2eb7cf1a2b fix an overflow bug when scanning for length of names that I introduced in
the last commit...

include some minor style changes and fixes that bde sent me

Submitted by:	bde
2003-11-08 07:24:03 +00:00
Tim J. Robbins
e4d88ab134 Add GB2312 to the list of supported encodings. Cross-reference gb2312(5). 2003-11-08 03:19:26 +00:00
David Xu
6d7a04b013 Add gb2312 encoding. 2003-11-05 22:52:51 +00:00
Matthew Hunt
ed642a38dd Add r_earth, r_moon, r_sun, representing the terrestrial, lunar, and
solar radii.  The corresponding masses (m_earth, etc.) were already
present.

Source:		"An Introduction to Modern Astrophysics," Carroll & Ostlie.
2003-11-05 22:29:48 +00:00
Dag-Erling Smørgrav
591c337e01 Fix the case where the file is not in the current directory.
Discovered by:	Vladimir Kravchenko <jimson@mostcom.ru>
Pointy hat to:	des
2003-11-04 22:39:25 +00:00
David Xu
7430623f55 Be sure to restore foreground group to parent su before parent su
exits, otherwise shell will be confused and does not set foreground
group correctly for next su command. This sounds like a bug in sh.
2003-11-04 14:51:34 +00:00
Dag-Erling Smørgrav
f54cda1467 Reimplement in-place editing in a slightly less disgusting manner. Also,
make an effort to preserve the ownership and mode of the file we are
editing.

Sponsored by:	Registrar AS
2003-11-04 13:09:16 +00:00
Dag-Erling Smørgrav
9cde9a2e85 Whitespace cleanup 2003-11-04 12:16:47 +00:00
Dag-Erling Smørgrav
e6478125c8 ANSIfy 2003-11-04 12:15:20 +00:00
Dag-Erling Smørgrav
9df25dda8c Correct style bugs in the in-place editing code. 2003-11-04 12:07:09 +00:00
David Xu
bcf123b3f6 It seems when su executes in a shell scripts, there is a timing race,
sometimes, su will receive a SIGTTOU when parent su tries to set child
su's process group as foreground group, and su will be stopped unexpectly,
ignoring SIGTTOU fixes the problem.

Noticed by: fjoe
2003-11-03 23:54:55 +00:00
Marcel Moolenaar
c219b2ef38 Build lint(1) on ia64. 2003-11-03 05:14:47 +00:00
Marcel Moolenaar
8d3e35d805 The size of a long double is 16 bytes, not 12 bytes. 2003-11-03 05:09:57 +00:00
Tim J. Robbins
ce20a8e9be Change the buffer length test in NEEDSP() so that it does not
subtract one unsigned number from another potentially smaller
one, leading to wraparound (and heap corruption, eventually).

PR:		58813
MFC after:	2 weeks
2003-11-02 23:20:24 +00:00
Ruslan Ermilov
52964a40af Removed (after the env(1)/printenv(1) split) extraneous arguments
to the .Nm macro.
2003-11-02 21:46:11 +00:00
Tim J. Robbins
d980da6c66 Copy cur's snap_time to last when refreshing statistics. Fixes problem
where MB/s and tps statistics would always be zero, presumably because
they were being averaged out over the time between now and when the
system booted instead of a few seconds.

PR:		58683
2003-11-01 02:06:02 +00:00
Brooks Davis
9bf40ede4a Replace the if_name and if_unit members of struct ifnet with new members
if_xname, if_dname, and if_dunit. if_xname is the name of the interface
and if_dname/unit are the driver name and instance.

This change paves the way for interface renaming and enhanced pseudo
device creation and configuration symantics.

Approved By:	re (in principle)
Reviewed By:	njl, imp
Tested On:	i386, amd64, sparc64
Obtained From:	NetBSD (if_xname)
2003-10-31 18:32:15 +00:00
Poul-Henning Kamp
573e036e31 Attached is a small patch to ministat that separates the
avg/median/stddev bars onto two lines.  Useful for datasets that
overlap.

Submitted by:    Dan Nelson <dnelson@allantgroup.com>
2003-10-31 13:25:43 +00:00
Tim Kientzle
8491f23424 Rename logf --> chat_logf to avoid naming conflicts
with GCC built-in (and with C90 reserved library name).

Approved by:	gordon (Mentor)
2003-10-31 06:22:03 +00:00
Peter Wemm
4a4c2efa6a Replace -fno-builtin-logf with a -D argument to change the function name. 2003-10-30 22:53:56 +00:00
Mitsuru IWASAKI
edc4d47f55 Cosmetic fix on some TIME related columns. 2003-10-30 16:52:14 +00:00
Hartmut Brandt
7ff34dc884 Use (char *)NULL to terminated to argument list for execl().
Without this cast the compiler cannot know that it has to convert
the null pointer constant NULL to a null pointer.
2003-10-30 15:14:34 +00:00
Tim J. Robbins
e4b4ed071b Remove MD bits for unsupported architectures. 2003-10-30 12:21:31 +00:00
Peter Wemm
144b6720d9 Disclaim ownership of pppd/chat. It is vendor code, but has been badly
neglected here.
2003-10-29 19:24:04 +00:00
Hartmut Brandt
4f35c8461f Build the NgATM user space SSCOP tool (unless NOATM is defined). 2003-10-29 10:30:54 +00:00
John-Mark Gurney
a86e06a60c take mux's fix to the next level, scan the names and make the field larger
as necessary... on sparcs where:
atapci0 vec1996
is a bit too long
2003-10-28 05:02:03 +00:00
Marcel Moolenaar
a7a08c7e63 Fix truss so that it doesn't abort/exit when a syscall has been given
a NULL-pointer for a sockaddr argument.
2003-10-27 06:50:57 +00:00
Peter Wemm
cd9df72840 Fix up warnings. There were some biggies here. There seems to be two
different sets of definitions in /usr/include/rpcsvc, mostly compatable,
but with different names.  Will the real one please stand up?
In order to get prototypes for yp_maplist, we had to use the 'other'
naming system.
2003-10-26 05:30:40 +00:00
Peter Wemm
ba7887c77f Stop gcc warnings 2003-10-26 05:28:01 +00:00
Peter Wemm
10ebb45ae0 Fix a warning that showed up on 64 bit systems. It was actually a real
bug that had been swept under the carpet.
2003-10-26 05:05:48 +00:00
Peter Wemm
d75a18e3d2 Fix warning about cgetent() argument. 2003-10-26 05:03:11 +00:00
Peter Wemm
0c65eed7f9 More xdrproc_t issues. 2003-10-26 04:58:44 +00:00
Peter Wemm
ed838bb1cd More xdrproc_t warnings. 2003-10-26 04:57:32 +00:00
Peter Wemm
35f47c5002 The math function logf() probably isn't doing us much good for logging
stuff.  Add -fno-builtin-logf.
2003-10-26 04:49:58 +00:00
Peter Wemm
017ea7dbc2 Move the -Wtraditional warning from the global cpp flags to when the -p
(portability warnings) switch is used.  Add -Wno-system-headers after it so
that we dont get 500 screenfulls of warnings about #elif in /usr/include.
I'm not entirely happy with this.  Maybe cdefs.h shouldn't use #elif and
instead nest #else clauses?
2003-10-26 03:34:13 +00:00
Greg Lehey
dd18558aaa Add coup d'état in Chile, 1973. 2003-10-26 01:18:08 +00:00
Greg Lehey
c1c65b7ef8 Add end and start dates for DST. 2003-10-26 00:03:49 +00:00
Poul-Henning Kamp
84b4ac514e Use 'k' as suffix for Kilo
Pointed out by:	several.
2003-10-24 21:23:47 +00:00
Ruslan Ermilov
0237ca7b95 Print the correct ICMP statistics for "no return routes". 2003-10-23 13:53:19 +00:00
Sergei Kolobov
8ffdadcf4a Add myself.
Approved by:	krion (mentor)
2003-10-21 19:56:23 +00:00
Poul-Henning Kamp
f46a0535ef When a numeric field overflows its width, try formatting the number in
'kilo' or 'mega' with appropriate suffix instead of filling the field
with stars.
2003-10-20 20:13:50 +00:00
Olivier Houchard
f6a43a2b50 Fix broken su -m behaviour :
chshell must return 0 if the shell is not a standard shell, or else it is
possible to use an account without a valid shell.

Reviewed by:	des
2003-10-19 02:09:36 +00:00
Sean Chittenden
77879b47b7 Uses wait4() instead of wait3() when waiting for a child process to exit.
Reviewed by:	yar
2003-10-17 07:53:30 +00:00
Thomas Gellekum
453e88a2b7 Fix typos; reformat some entries. 2003-10-15 08:18:59 +00:00
Mark Linimon
b8ead740b8 Let the world figure out exactly how superannuated I am. 2003-10-15 03:31:06 +00:00
Bruce Evans
1f85f71570 Include <nlist.h> for nlist-related declarations instead of depending on
namespace pollution in <kvm.h>.
2003-10-13 05:30:20 +00:00
Maksim Yevmenkin
0986ab12e4 Update Bluetooth code.
Reviewed by: M. Warner Losh <imp@bsdimp.com>; John Hay <jhay@freebsd.org>
Approved by: M. Warner Losh <imp@bsdimp.com> (mentor)
2003-10-12 22:04:24 +00:00
Tim J. Robbins
7f3a5689e7 Fix BSS buffer overflow in makeargv(). 2003-10-12 00:27:55 +00:00