Commit Graph

5664 Commits

Author SHA1 Message Date
dwmalone
fe8579aa8f ANSIify function definitions to avoid a warning.
Minor constness changes.
2002-07-28 14:55:59 +00:00
dwmalone
59dc008527 ANSIify function definitions to avoid a warning. 2002-07-28 14:41:26 +00:00
jmallett
fd7aefbcf8 Search the include path for the argument to -f, to make lives easier for
those of us who want to figure out how old Jim Mock is, but only want to
type 'calendar -f calendar.freebsd'.  This is done in a way that should
be totally backwards compatible with no noticable differences, at all.

Reviewed by:	mux
MFC after:	4 weeks
2002-07-28 13:46:09 +00:00
dd
82b3ef0386 Add a -v option that prevents switching virtual terminals while this
terminal is locked.  This permits the user to easily lock the entire
console from a single terminal.
2002-07-28 07:13:53 +00:00
jmallett
5a6eb0ca5f Print a warning when we are given two scripts for one target. This is neither
as wide-reaching nor intensive as NetBSD's similar, but the warning uses the
same text.

Inspired by:	NetBSD
2002-07-28 03:52:41 +00:00
grog
9cf68e2eb9 Clarify J.S. Bach's life: he was only born once, and he died in Leipzig.
Add entry for Antonio Vivaldi's death.
2002-07-28 00:42:02 +00:00
imp
7701b3e2af Back out jmallett's realpath changes. They break a set of makefiles that
we use in sublte ways with relative paths.  Until they can be resolved,
back out these changes and put a big comment about why using realpath is
busted.

Approved by: jmallett
MFC After:  100 millifortnights
2002-07-26 21:50:36 +00:00
tjr
32b632dfec Use sigaction(2) instead of signal(3) to avoid the signal handler being
re-entered.
2002-07-26 05:25:12 +00:00
johan
b54fc31edc Define all paths in pathnames.h
Approved by:	joerg, sheldonh (mentor)
2002-07-25 23:04:31 +00:00
tjr
b47ef0cbaf Give an example showing how to change the mesg status of terminals
other than the default one.

PR:		13073
2002-07-25 05:16:49 +00:00
robert
aa7e4582e3 style(9): - Put a space after the 'return' keyword.
- Wrap lines longer than 80 characters.
2002-07-24 18:54:59 +00:00
robert
a0562d2132 Use an ANSI-C function definition rather than a
K&R one to avoid a warning.
2002-07-24 18:39:51 +00:00
robert
6eea4ee200 - Add a COMPATIBILITY section explaining that the default
behaviour of obtaining the affected terminal has changed.
 - Refer to the user's terminal instead of the current
   terminal session.
 - Tell the reader what the utility does when it is invoked
   without arguments.

Submitted by:		johan
2002-07-24 18:37:22 +00:00
robert
6edce70ffe Allow selection of the affected terminal using redirection
of standard input or standard output, like mesg(1) does.

Suggested by:	sheldonh
2002-07-24 15:48:17 +00:00
johan
544f1a7f94 Teach whereis(1) about games.
Approved by:	joerg, sheldonh (mentor)
2002-07-24 14:35:29 +00:00
jdp
86b3836232 Widen struct sockbuf's sb_timeo member to int from short. With
non-default but reasonable values of hz this member overflowed,
breaking NFS over UDP.

Also, as long as I'm plowing up struct sockbuf ... Change certain
members from u_long/long to u_int/int in order to reduce wasted
space on 64-bit machines.  This change was requested by Andrew
Gallatin.

Netstat and systat need to be rebuilt.  I am incrementing
__FreeBSD_version in case any ports need to change.
2002-07-24 03:02:43 +00:00
trhodes
cef72b6149 Revert previous delta for cut(1) and calendar(1) as they were not applied
correctly.  My fault, forgot that -current was checked out.
2002-07-23 15:09:56 +00:00
jmallett
558b722f1e Remove duplicate __FBSDID() - spotted by trying to build with a non-GNU
compiler.
2002-07-23 14:39:20 +00:00
ru
1419e21345 Dependencies are delimited by space not tab. 2002-07-23 09:15:45 +00:00
eric
7ff3e005dc Handle directories correctly.
PR:		40801
MFC after:	5 days
2002-07-23 04:54:57 +00:00
trhodes
2f537c20aa Revert last commit. Sorry for breaking things 2002-07-22 21:45:16 +00:00
trhodes
e123a791c5 MFC: Fix some grammar, greater reduce diffs to HEAD 2002-07-22 21:14:16 +00:00
ume
a3550f2858 add -4 and -6 option to be able to specify an address family.
Requested by:	matusita
MFC after:	1 week
2002-07-22 17:19:54 +00:00
robert
28e1b1786c - Use MAXLOGNAME - 1 rather than UT_NAMESIZE.
- Remove the inclusion of <utmp.h>.
2002-07-22 11:36:25 +00:00
robert
ea42527996 - Use MAXLOGNAME - 1 instead of UT_NAMESIZE.
- Do not pretend there is something like '/etc/utmp'.
2002-07-22 11:32:16 +00:00
tjr
b8007ee7a0 Correct syntax error, remove the unescaped newline between "||" and the
command it is intended to test. pdksh and bash caught this syntax error,
sh(1) did not behave as intended.

PR:		40386
2002-07-22 05:35:59 +00:00
ru
516f6d963f Fixed improper SCRIPTS assignment that broke `clean'. 2002-07-21 21:03:47 +00:00
johan
9f194c6b43 Only use one %s when there is only one argument to print.
Submitted by:	keramida
Approved by:	sheldonh (mentor)
2002-07-21 15:11:32 +00:00
charnier
26ad533edb Removal of spaces at EOL. Add __FBSDID. New function xmalloc, xrealloc,
xstrdup. There is a crash() function that do cleaning before exiting the
program. The new functions are wrappers that make use of crash() in case
of allocation failure. warn, exit -> err.

Reviewed by:	alfred
2002-07-21 12:55:04 +00:00
charnier
9f90b488fd s/A last utility last appeared/A last utility appeared/ (horikawa).
Use .Pa for wtmp.

Submitted by:	horikawa
2002-07-21 12:45:54 +00:00
dillon
62fef107e4 Add the tcps_sndrexmitbad statistic, keep track of late acks that caused
unnecessary retransmissions.
2002-07-19 18:29:38 +00:00
markm
d283bf5723 Merge conflicts. 2002-07-19 16:38:21 +00:00
markm
b2c9482532 This commit was generated by cvs2svn to compensate for changes in r100360,
which included commits to RCS files with non-trunk default branches.
2002-07-19 15:19:23 +00:00
markm
e290933e4d Snapshot of NetBSD's (x)lint. Little functionality, just some code
tidy-ups.
2002-07-19 15:19:23 +00:00
markm
31fbc209c3 s/inline/__inline/ 2002-07-19 14:12:27 +00:00
markm
35b3fd6802 Merge from import. The import was done ages ago, and this diff has been
carried since then.
2002-07-19 14:10:35 +00:00
markm
7b9c43466d s/inline/__inline/ 2002-07-19 13:49:37 +00:00
markm
32ac7e2965 "inline" fixing. Replace "inline" with "__inline" to make more BSD
standard (and easier to define away with support in cdefs.h).
Also convert two function-like macros to static inline functions
for lint and the debugger.
2002-07-19 13:38:43 +00:00
ru
cd7c90d38f s/${INSTALL} -c/${INSTALL} ${COPY}/ 2002-07-18 12:07:49 +00:00
scop
5252eb95e9 Add myself.
Approved by:	knu (mentor)
2002-07-17 19:00:37 +00:00
roberto
c9fb996f3c Fix installworld.
Submitted by:	Udo Schweigert <Udo.Schweigert@siemens.com>
2002-07-17 15:35:31 +00:00
wollman
b5e36ca813 A little bit more thought has resulted in a generic script which can
implement any of the useless POSIX-required ``regular shell builtin''
utilities, saving one frag and one inode each.  The script moves to
usr.bin/alias which is alphabetically the first of these commands.
2002-07-16 22:16:05 +00:00
wollman
2183121c4b Forgot to change command name in Makefile. (Where's the pointy hat?) 2002-07-16 21:14:01 +00:00
wollman
55d0b83955 POSIX requires these shell builtins to also exist as totally pointless
external commands.  Since they serve no useful purpose, it's OK that their
implementation is not the most efficient possible.
2002-07-16 21:13:11 +00:00
kbyanc
5e26e30d89 Fix incorrect cast. 2002-07-16 05:57:21 +00:00
dd
9bc51ba681 Use proper article. 2002-07-16 05:38:26 +00:00
wollman
90c7f9135a Support POSIX ``programming environment'' mistake. 2002-07-15 22:51:24 +00:00
rse
5b0288dd0c s/progname/procname/ to be consistent with the other occurrences
of the option -c argument in SYNOPSIS and DESCRIPTION.
2002-07-15 11:33:30 +00:00
alfred
0524c94cee revert WARNS=4, it makes the alpha compile sad. 2002-07-15 09:53:34 +00:00
keramida
f7cbdf51ed mdoc fun: add a few more sentence breaks. 2002-07-15 07:51:10 +00:00