Commit Graph

6400 Commits

Author SHA1 Message Date
marcel
8c313e9083 Implement the O modifier. The O modifier sorts the words in a
variable. The implementation is based upon the patch sent to
arch@, but modified to be compatible with NetBSD. The modifier
that does a reverse sort has been dropped for now, but the
ability to add one later has been preserved.
2003-09-18 03:15:57 +00:00
marcel
9fef1a54f6 Fix a `cast to pointer from integer of different size' warning.
usage() has been made a (non-void) function so that it can be
used in a pointer expression (see macro `next'). Widen the
implied integer return type of usage() so that we can cast to
a pointer without warnings.
2003-09-17 03:58:52 +00:00
ru
cc9d2aeb39 Get rid of duplicates. 2003-09-14 13:41:59 +00:00
ru
7ad89d9544 - Cut out the code that caches the "." directory out of Dir_Init()
into a separate function, Dir_InitDot().

- Postpone the current and object directories detection (and caching
  of the "." directory) until after all command line arguments are
  parsed.  This makes the -C option DTRT.

PR:		bin/47149
2003-09-14 12:31:33 +00:00
simon
9e88fd273d Make the description of the connect, get, and put commands clearer.
Reported by:	Gary W. Swearingen <underway@comcast.net>
Submitted by:	Jim Brown <jpb@sixshooter.v6.thrupoint.net> (original version)
Reviewed by:	ru
PR:		docs/36459
MFC after:	3 weeks
2003-09-13 23:34:34 +00:00
tjr
5d369f4c62 Remove symorder. It's almost useless now that we have ELF kernels and
no a.out toolchain.
2003-09-11 05:58:21 +00:00
ru
1c23ef339b mdoc(7): Use the new feature of the .In macro. 2003-09-08 19:57:22 +00:00
ru
ecf79cde9e Finish the reversion of rev. 1.52. 2003-09-08 18:58:47 +00:00
ru
dd38dd5398 Command line variables take precedence over global variables.
Make this true in the .for loops too.  The following fragment,

	FOO=	foo bar

	all:
	.for f in ${FOO}
		@echo ${f}
	.endfor

when run as "make FOO=xxx" should print "xxx".  (OpenBSD had
this bug fixed for some time.)
2003-09-08 08:23:29 +00:00
charnier
eed88f7461 Do not print the result of strftime() in case of failure, the content is
indeterminate in such a case. The correct value for 2nd argument is
sizeof(buf). Do not NUL-terminate the result string, strftime() will do it
for us.
2003-09-07 16:31:32 +00:00
charnier
45cdaa9545 Add FBSDID. Do not \n terminate warnx() argument. fprint() -> warnx(). 2003-09-07 15:50:43 +00:00
charnier
31157a0435 Introduce arguments the standard way. In .Ar command ..., ... is not an
argument, command is.
2003-09-07 15:43:50 +00:00
charnier
7ea58f2955 Remove duplicate #include. Do not \n terminate errx() arg. 2003-09-07 15:30:42 +00:00
charnier
45feeef2ed Add FBSDID. Use errx() instead of fprintf()/exit(). Call exit() at the end
of usage() and make the code aware of that.
2003-09-07 15:26:44 +00:00
charnier
df17116fe2 The .Fn function. Dot terminate sentences. Use .Bd/.Ed instead of .Ar to
emphasize examples of source definition file.
2003-09-07 14:33:07 +00:00
tjr
f00a5ee894 Use KERN_PROC_PROC instead of KERN_PROC_ALL when enumerating processes so
that we kill each process once, not once for every thread it owns. This
avoids "No such process" warnings when killing threaded processes.
2003-09-07 09:13:44 +00:00
imp
da21b64ab6 Keep up with minor changes to NetBSD. Consider a variable empty when
not define.

Obtained From: NetBSD (rev 1.18; sjg)
2003-09-07 02:16:10 +00:00
hmp
5fa153fd70 Baud rate capability is br', not ba'.
PR:		docs/56426
Submitted by:	FUJISHIMA Satsuki <sf@FreeBSD.ORG>
2003-09-06 18:36:51 +00:00
schweikh
9d0084b76a Removed another spurious semicolon forgotten in the previous commit. 2003-09-06 11:55:05 +00:00
schweikh
c653c4017e Removed two spurious semicolons after function definitions.
Removed three spurious tabs on lines by themselves.

PR:		bin/56492
Submitted by:	Stefan Farfeleder <stefan@fafoe.narf.at>
MFC after:	6 weeks
2003-09-06 10:55:30 +00:00
obrien
f2b101f4e8 Finish the deorbital burn of the i386-only a.out toolchain. 2003-09-06 02:18:03 +00:00
tjr
3bdf2e08b5 #include <runetype.h> directly for the definition of _CACHED_RUNES, needed
by ldef.h, rather than relying on GCC-specific pollution from <ctype.h>.

Noticed by:	Stefan Farfeleder
2003-09-05 16:05:21 +00:00
roam
3a2d1f6823 Change /dev/rsa0 and /dev/rwt0 references to sa0 and wt0.
PR:		55925
Submitted by:	Michael L. Squires <mikes@siralan.org>
MFC after:	1 month
2003-09-05 15:28:09 +00:00
tjr
81063d1dcb Fix typo: c89, not c88. 2003-09-05 09:03:39 +00:00
dds
def341934a Removed unused macro definition
Approved by:	schweikh (mentor - blanket)
MFC after:	6 weeks
2003-09-04 20:05:46 +00:00
kan
80babb4e26 Eliminate last three uses of varargs.h in the tree. These three files
were including varargs.h file but did not use any of its macros,
so they escaped the clean-up before.
2003-09-01 04:12:18 +00:00
phk
21e62f9e80 Typo in last commit.
Spotted by:	tjr
2003-08-30 06:39:56 +00:00
phk
69a89b719e Introduce more knobs to slim down FreeBSD userland
NO_TOOLCHAIN	skips Compilers and Binutils
NO_USB		skips USB stuff
NO_VINUM	skips Vinum stuff
NO_ACPI		skips ACPI stuff
2003-08-29 10:35:01 +00:00
dds
31354e93b7 - Document gencat(1)
- Fix grammar error and rationale for not using the command

Approved by:	schweikh (mentor)
MFC after:	2 weeks
2003-08-22 17:55:56 +00:00
markm
598a90a3bd Big cleanup. Remove unused stuff, make closer to style(9).
OK'ed by:	peter (long time ago)
2003-08-22 17:47:40 +00:00
markm
39e9b9e989 Warns fixes. Mainly unused headers/params/vars removal, but also
some malloc cleanup.
2003-08-22 17:32:07 +00:00
phk
9a9a510c2c In case of zero span data supress the histogram plot. 2003-08-18 11:13:19 +00:00
tjr
d21c6d5071 Tidy up usage message. 2003-08-17 10:33:54 +00:00
tjr
050704951f Tidy up synopsis. 2003-08-17 10:24:53 +00:00
tjr
9c51d70f9b Tidy up usage message. 2003-08-17 10:21:19 +00:00
mat
9f239b6d69 Add my birthday to calendar
Approved by:	demon (mentor)
2003-08-15 12:02:31 +00:00
bland
52e66803f4 Add my birthday to the calendar.
Approved by: marcus (mentor)
2003-08-15 06:48:11 +00:00
dg
0ed08c885f Removed check of st_rdev changing in the -F support. st_rdev for regular
files is usually the first direct block pointer. Since FreeBSD does
automatic block reallocation to reduce filesystem fragmentation, the
file being tailed can be relocated to different blocks 'on-the-fly',
making the check for st_rdev unreliable. The result of this bug is
tail -F pseudo-randomnly thinking the file was rotated when it wasn't,
and as a result, spews out the entire file trying to catch up.

MFC after:	3 days
2003-08-14 11:02:03 +00:00
murray
63f7e0cd8d Add Alfred Hitchcock's birthday.
Inspired by:	google.com
2003-08-13 19:21:11 +00:00
phk
b3803c0021 A small statistics tool for gauging the statistical significance
of data from benchmarks etc.  Implements "Student's t" for various
confidence levels, defaults to 95%.

If your benchmarks are not significant at the 95% confidence level,
we don't want to hear about it.
2003-08-13 07:21:54 +00:00
tjr
e57dce4ab7 Add GB18030 and GBK to the list of encodings. Cross-reference the
new manual pages for the Big5, GB18030, GBK, and MSKanji encodings.
2003-08-10 11:51:14 +00:00
marcel
892df4d617 Fix sign-extension bug for 32 and 64-bit values. For 64-bit values
this involves the sign-extension of the high and low "word". Both
of which are 32-bit. The bug is especially harmful on ia64, where
0x9fffffffe0000000 is a common address (base of register stack).
This was invariably displayed as 0xffffffffe0000000.

The sign-extension is fixed by using {b|l}e{16|32|64}dec() where
applicable. Since elfdump(1) is not a bootstrap tool, dependency
on these functions is not a problem.
2003-08-09 01:55:37 +00:00
hsu
27325403c6 1. Add support for printing PIM-related statistics with
netstat -s -p pim

2. Print information about the bandwidth meters installed in the kernel with
	netstat -g

Submitted by:	Pavlin Radoslavov <pavlin@icir.org>
2003-08-07 18:21:21 +00:00
grog
c8a46634c8 Add Jonathan Postel's year of birth. 2003-08-06 03:38:12 +00:00
des
c8cb809e68 send() and recv() are just wrappers, not actual syscalls. 2003-08-05 19:34:36 +00:00
hsu
6d661f854b * Use sysctlbyname(3) to print statistics about the MFC and
multicast VIF tables.
  This change is needed for consistency with the rest of the
  netstat/mroute.c implementation, and because in some
  cases "netstat -g" may fail to report the multicast forwarding
  information (e.g., if we run a multicast router on PicoBSD).

* Remove "DVMRP" from the head comment of file netstat/mroute.c,
  because the printed multicast-related statistics are not
  DVMRP-specific anymore.

Submitted by:	Pavlin Radoslavov <pavlin@icir.org>
2003-08-05 17:07:04 +00:00
des
1f50902a45 Add recv(2), recvfrom(2), send(2) and sendfrom(2). 2003-08-05 10:45:06 +00:00
ache
e771f43084 Back out [:upper:] and [:lower:] classes sorting, it is not required
by POSIX and gains nothing with current code.
2003-08-05 07:59:46 +00:00
ache
1bdac03b07 Clarify upper/lower conversion description more. 2003-08-05 07:53:28 +00:00
das
c143c30d69 Remove redundant declarations. 2003-08-05 06:50:28 +00:00