Commit Graph

6145 Commits

Author SHA1 Message Date
arved
61cbca8d6b Add my birthday.
Approved by: kris (mentor)
2002-10-20 13:33:45 +00:00
grog
0d45c270ec Sort by date. 2002-10-20 02:20:31 +00:00
grog
3ba403b020 Clarify holidays which apply only to the USA
Clarify that the USSR no longer exists, but some of the holidays are
celebrated anyway.

Reviewed in part by:	ru

Remove Jewish and most Muslim holidays.  They're all wrong, since they
don't apply to the Western calendar.  The much more complete Jewish
holidays are in calendar.judaic.  The Muslim holidays need to be
collected into a file, but there's not much point in having the wrong
date.

Remove many Fiji holidays.  They change every year by Government
decree, and some were duplicated as a result.

Remove some duplicates.

There's still a lot to be done; in particular, I think the Japanese
and British holidays are very inaccurate.  This file needs checking by
people who know the details.
2002-10-20 02:12:46 +00:00
sobomax
62ac3ba58f Fix a problem with RTLD_TRACE flag to dlopen(3), which sometimes can return
even if there was no error occured (when trying to dlopen(3) object that
already linked into executable which does dlopen(3) call). This is more
proper fix for `ldd /usr/lib/libc.so' problem, because the new behaviour
conforms to documentation.

Remove workaround from ldd.c (rev.1.32).

PR:		35099
Submitted by:	Nathan Hawkins <utsl@quic.net>
MFC after:	1 week
2002-10-19 10:18:29 +00:00
ru
a2b48adeec Revert last delta. SGR support in grotty(1) is disabled system-wide
in /usr/share/tmac/troffrc pending the issue resolution on -arch.
2002-10-18 09:14:17 +00:00
markm
c955f36e2f When a user gets refused because the password is wrong, use the
older "BAD SU" syslog message that folks prefer. There is quite
a bit more tweaking that can be done with other similar messages.

Asked for by:	tjr
2002-10-18 08:23:24 +00:00
adamw
3ce14a4380 Add myself
Approved by:	pat (mentor)
2002-10-18 07:50:46 +00:00
trhodes
b515261a75 Everyone else is doing it! (adding their birthdays) 2002-10-18 06:21:09 +00:00
maho
ab0f2b7be5 New committer's first commit(birthday). 2002-10-18 05:48:55 +00:00
daichi
387ae9622a New committer first committion.
addition my birthday.
2002-10-18 04:56:03 +00:00
tjr
a09fdd84e6 Style: use sa_handler instead of __sigaction_u.__sa_handler. 2002-10-17 23:32:44 +00:00
charnier
dcefc83b9c Use .Fl/Ar for flags and arguments. 2002-10-17 13:04:49 +00:00
charnier
58dbe0ce7c Introduce option enumeration the standard way. 2002-10-17 12:58:14 +00:00
markm
f55bb1d531 Dekerberise. The corresponding userland stuff has been dekerberised
for ages, and no-one seems to have noticed. Viva PAM!
2002-10-16 16:10:46 +00:00
markm
5c345be330 Dekerberise. The corresponding userland stuff has been dekerberised
for ages, and no-one seems to have noticed. Viva PAM!

Fix some easy/trivial warnings while I'm here.
2002-10-16 16:09:05 +00:00
charnier
bdf2708e48 Add section number to .Xr directive. 2002-10-16 15:46:43 +00:00
charnier
18cd74415c The .Nm utility 2002-10-16 15:38:28 +00:00
charnier
b50035c8cf Introduce enumerate of options using the standard way.
Remove .Pp between items.
2002-10-16 15:32:16 +00:00
charnier
3df57627e5 Introduce enumerate of options using the standard way: 2002-10-16 15:28:20 +00:00
charnier
7430b7c468 Do not reuse flag name in its definition. Remove inadequate sentence. 2002-10-16 15:17:38 +00:00
charnier
1e67ecad50 Spelling 2002-10-16 13:58:39 +00:00
charnier
064bebe6d3 Remove done() which was just exit() so use of warn()/err() can be made. Abort
on allocation failure instead of displaying a warning and deferencing NULL
pointer after. Spelling. Add prototypes. Add list of option in synopsis section
of man page, -d is not referenced because available as a compile option. It
should be made a runtime option btw.
2002-10-16 13:50:09 +00:00
phantom
d6a3c23c58 Add locale(1). I have used it for while as useful debugging tool
for locale related things.  So, I think it could be useful for
others.  It's not yet implement (or implement in different manner)
all POSIX things, but I think it's good enough for start.

POSIX conformance related updates and manpage to follow relatively soon.
2002-10-16 13:17:18 +00:00
charnier
8e05dc143a Normalize FILES section by using .Bl/.El enumerate. 2002-10-16 13:00:42 +00:00
charnier
39a491d141 Test getopt() against -1 instead of EOF. 2002-10-16 12:56:22 +00:00
charnier
591fe004dc Spelling. 2002-10-16 12:42:15 +00:00
charnier
c106559170 Do not repeat option name in its definition. Use .Nm. In the sequence ``~.'',
``.'' is not a sentence termination, it must be escaped to be put inside
quotes.
Abort if execv() fails by adding err(). Do not dot terminate error messages.
2002-10-16 12:33:14 +00:00
phk
10a95012cf Be consistent about functions being static.
Spotted by:	FlexeLint
2002-10-15 18:24:31 +00:00
joerg
00d15800f1 Add information about the SDLT density codes.
Submitted by:	"Stewart MacLund" <sundie@lunaticfringe.org>
MFC after:	1 week
2002-10-15 12:53:29 +00:00
phk
95d3ce583e Remove an unused variable. 2002-10-14 08:54:08 +00:00
tjr
f884e12d21 Add Big5, MSKanji and UTF-8 to the list of supported encodings.
Mark UTF2 as being deprecated.
2002-10-14 00:45:51 +00:00
grog
6d7a906aa2 Clarify that a number of incidents relate to Germany.
This file contains a number of incidents which do not related to
Germany.  It's not clear whether they should remain or not, so I have
left them.
2002-10-14 00:45:13 +00:00
anders
0ba96181bb Add self. 2002-10-12 18:10:13 +00:00
jmallett
1e4091ec2b The -a and -d flags are mutually exclusive, show them as such in usage() and
manual page for showmount(8)

Sponsored by:	Bright Path Solutions
MFC after:	2 weeks
2002-10-12 05:45:01 +00:00
grog
d756d4e555 Clarify details of the birth of Richard I of England. 2002-10-12 00:42:34 +00:00
mike
8630abe45f Change iov_base's type from char *' to the standard void *'. All
uses of iov_base which assume its type is `char *' (in order to do
pointer arithmetic) have been updated to cast iov_base to `char *'.
2002-10-11 14:58:34 +00:00
cognet
50fb07a069 Add myself.
Reviewed by:	mux (mentor)
2002-10-11 13:06:42 +00:00
ru
683dd9f551 Groff 1.18.1 comes in with ANSI color support, enabled by default.
In "nroff" mode, italic font renders as an underlined text, which
makes it indistinguishable from the bold text on color monitors
(cons25 terminal type), yet it requires the less(1)'s -R option.
(Refer to the new grotty(1) manpage for details.)

So turn off the color support for now (when generating catpages),
until we figure out what do we do with this new feature.  I have
a patch for grotty(1) that tells it to use the "reverse video"
attribute to render the italic font.  Once this is accepted, we
can turn color support back on (if there won't be any objections
from the community).
2002-10-11 09:16:24 +00:00
jmallett
acfa6aea13 Move utilitarian routines to util.c, which isn't the same as the old
compatability-geared util.c.  These are things like message printers
and the PrintAddr function for traversing lists.  Other general-purpose
utilities inside make(1) can go here, in time.
2002-10-10 19:27:48 +00:00
jmallett
d466dc0ec0 Convert make(1) to use ANSI style function declarations. Variable
documentation already adequatedly existed in the description in most
cases.  Where it did not, it was added.  If no documentation existed
beforehand, then none was added.  Some unused dummies for use in the
traversal functions were marked as __unused during the conversion.
Occasionally, local style fixes were applied to lines already being
modified or influenced.

Now make(1) should always build with WARNS=3.
2002-10-09 03:42:10 +00:00
jmallett
03d461282b Use __FBSDID in the lst.lib files, to match to main make(1) files. It is
defined to __RCSID when bootstrapping, by the Makefile, but this change is
for consistency
2002-10-09 02:00:22 +00:00
jmallett
cc747c11c5 Remove extern declarations from functions and source files where they would
happily fit into headers.
2002-10-09 01:56:02 +00:00
jmallett
5788a2c1bb Remove unused local-locals, where upper-level locals may safely be used. 2002-10-09 01:51:00 +00:00
jmallett
71de896c12 Reference the correct local variable in all parts of a for loop, so we
operate on the correct data (properly).

Tracked down by:	Dan Nelson
2002-10-08 21:29:04 +00:00
tjr
50bdbd28da Re-add the code which maps POSIX standard library names into the ones
FreeBSD uses; f.e. -lpthread -> -pthread, -lxnet -> nothing.
2002-10-08 02:19:54 +00:00
tjr
c149a29f01 Add the c99(1) utility, which is nothing more than a synonym for
cc -std=iso9899:1999 -pedantic, and is required by SUSv3.

PR;	36087
2002-10-07 09:37:55 +00:00
kris
beeea993c6 Use strlcpy() instead of strcpy() to not overflow static buffers. 2002-10-06 23:52:06 +00:00
mike
d72c913927 Don't depend on <signal.h> to include <sys/time.h>, instead include
<sys/time.h> directly.  This is mostly bogus since CLOCK_REALTIME
should be defined in <time.h>, which these files already include.
2002-10-06 21:46:04 +00:00
phk
16827939fa Give make(1) the ability to use KQUEUE to wait for worker processes
instead of polling for them.

Unfortunately we cannot enable it yet because it panics the kernel
somewhere in kqueue.

Submitted by:	Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
2002-10-04 20:30:03 +00:00
tjr
d2ae103f16 Fix off-by-one error processing the line after an empty line when the
-a option is not specified.

Submitted by:	schweikh
MFC after:	1 week
2002-10-04 16:45:25 +00:00
johan
b8f13ad643 Actually implement gzip's -c option. minigzip now also doubles
as zcat properly.

PR:		13043
Submitted by:	Toshihiko ARAI <toshi@jp.freebsd.org>
		Jonathan Towne <jontow@twcny.rr.com>

Approved by:	peter, sheldonh (mentor)
MFC After:	2 weeks
2002-10-03 19:30:22 +00:00
jmallett
cea0ea5b91 In lieu of a good way to prevent every possible looping in make(1), stop
there from being more than 500 processes forked by make(1), to prevent a
forkbomb from happening, in a dumb and mechanical way.

PR:		alane
Submitted by:	bin/42772
MFC after:	2 weeks
2002-10-03 04:32:47 +00:00
jhb
b79961de95 Catch up to SMTX -> SLOCK changes. 2002-10-02 20:33:52 +00:00
jmallett
354670df50 Code that has been #if0'd with the comment "WHY" since revision 1.1 can
disappear.
2002-10-02 16:06:39 +00:00
jmallett
980f400848 Remove 6-years-stale #if0, the behaviour isn't ever going to be limited to
compatible mode, as far as I know, since we use it...
2002-10-02 16:03:26 +00:00
roam
e474e1f04d Teach ncal(1) about month names specified on the command line.
Reviewed by:	-audit
Approved by:	silence on -audit
MFC after:	3 weeks
2002-10-02 12:31:10 +00:00
dd
e6b1ede7fb Remove some #if 0'd code. After this, a "make unifdef" here produces
no changes (against crypto telnet).

Reviewed by:	MD5
2002-10-02 00:37:01 +00:00
dd
9c9f69c519 Merge from crypto telnet: permit the argument to -s to be a hostname. 2002-10-02 00:29:34 +00:00
jmallett
f9ba7e0f17 Fix spurious three-space indentation in a four-space indentation file. 2002-09-29 00:20:28 +00:00
jmallett
539e643c0d Fix ability to use csh(1) as the make(1) shell.
Sponsored by:	Bright Path Solutions
2002-09-29 00:02:04 +00:00
jmallett
21a07813ec Make make(1) WARNS=6 clean except for const issues. This mostly involves
renaming variables to not shadow libc functions or greater scope locals.  Kinda
makes one wonder if the extern ones weren't meant in some of these places :)

The only thing I'd still like to do WRT this is possibly combine rstat and
status in compat.c -- that should be fine, as I do not think the codepaths
will want both around at once.

Sponsored by:	Bright Path Solutions
2002-09-28 23:35:07 +00:00
jmallett
64ed1d5707 Fix merge error in previous commit.
Sponsored by:	Bright Path Solutions
2002-09-28 20:04:17 +00:00
jmallett
06c333e3a8 Add empty default cases where they should be, remove non-local execution stuff
in compat.c which doesn't even have preprocessor-conditional-hidden support
code, and add a debugging statement where we might end up with a nil list
somehow, but where I doubt it.

First confirmed userland kill for Flexelint.

Sponsored by:	Bright Path Solutions
2002-09-28 20:03:26 +00:00
phk
834ddd1bcc Rename struct specinfo to the more appropriate struct cdev.
Agreed on:	jake, rwatson, jhb
2002-09-27 18:27:10 +00:00
ru
34f9f49c0e Document the parsing bug. 2002-09-27 09:21:07 +00:00
jmallett
ffb0656a90 Remove a semicolon that appears to be a lie.
Spotted by:	SPARC64 make WARNS=3
Sponsored by:	Rachel Hestilow <rachel@jerkcity.com>
2002-09-26 06:44:30 +00:00
jmallett
0da9497fc7 When formatting the time for a target, use %H instead of %k, which is mostly
the same, but uses a non-extension option.

Sponsored by:	Rachel Hestilow <rachel@jerkcity.com>
2002-09-26 06:40:04 +00:00
jmallett
571ff8bdeb Don't declare things as extern when they will be static.
Sponsored by:	Rachel Hestilow <rachel@jerkcity.com>
2002-09-26 01:39:22 +00:00
markm
1407fc5c4e Unifdef(1) the crypto telnet sources. 2002-09-25 07:53:29 +00:00
fanf
e51e2c42c3 The spec says that unifdefall removes all #ifs, and this now requires
the -k flag to unifdef.
2002-09-24 19:50:03 +00:00
fanf
31ed0a9f39 The readability is improved by reducing the use of the passive voice.
No changes to the meaning are made.
2002-09-24 19:48:39 +00:00
fanf
e90165a4c9 It is probably a bad idea to unconditionally process directives with
constant controlling expressions: in particular, removing #if 0 sections
is considered "rude". This commit changes the default so that such
things are passed through unchanged, and the old behaviour can be had
with the -k "kill konsts" flag.

Suggested by:	markm
MFC after:	3 weeks
2002-09-24 19:27:44 +00:00
ache
136752fc53 Make it work with POSIX sort (POS arg).
All old sorts understand -k too.
2002-09-24 19:05:40 +00:00
ache
f827f40f52 Make it work with POSIX sort (POS arg)
All old sorts understand -k too.
2002-09-24 18:16:36 +00:00
jmallett
5f673cf82e Use some macro evil to create the functions for using sysctl(3) to get each
variable natively.  It should allow you to use any sysctl mib set, but due
to limitations of what I can do with macros, right now it's limited to two,
which is all this program used anyway.

Sponsored by:	Bright Path Solutions
2002-09-23 06:47:39 +00:00
jmallett
a7014de16e Check to see if we should print a space, rather than using the annoying
prefix methodology.  Adjust nearby style.

Sponsored by:	Bright Path Solutions
2002-09-23 06:14:13 +00:00
jeff
280b42baf6 - Add the -i option to read in a saved ktr file output by KTR_ALQ. 2002-09-22 07:21:28 +00:00
grog
54bef63e73 Update equinoxes and solstices.
PR:	bin/43166
2002-09-22 01:53:18 +00:00
wollman
aa09d8b564 Make the threatened fts(3) ABI fix. FTSENT now avoids the use of the struct
hack, thereby allowing future extensions to the structure (e.g., for extended
attributes) without rebreaking the ABI.  FTSENT now contains a pointer to the
parent stream, which fts_compar() can then take advantage of, avoiding the
undefined behavior previously warned about.  As a consequence of this change,
the prototype of the comparison function passed to fts_open() has changed
to reflect the required amount of constness for its use.  All callers in the
tree are updated to use the correct prototype.

Comparison functions can now make use of the new parent pointer to access
the new stream-specific private data pointer, which is intended to assist
creation of reentrant library routines which use fts(3) internally.

Not objected to in spirit by: -arch
2002-09-21 01:28:41 +00:00
eric
97eee3cd78 Initialize a variable in order to fix when faced with picky compilers.
Sponsored by:	Apple
2002-09-20 19:40:23 +00:00
ru
19b228300a Update for FILE v3.39. 2002-09-19 13:53:17 +00:00
ru
1564160a1a Bootstrapping aid for systems without <stdint.h>.
(Needed to build mkmagic in build-tools.)
2002-09-19 12:30:34 +00:00
wollman
cb45d14fee Completely revamp the way getconf(1) works, for better adherence to the
intent of the Standard.

- Make getconf able to distinguish between configuration variables which
  are entirely unknown and those which are merely not defined in the
  compilation environment.  The latter now get a more appropriate
  "undefined\n" result rather than a diagnostic.  This may not be
  exactly right, but it's closer to the intent of the Standard than
  the previous behavior.

- Support ``programming environments'' by validating that the environment
  requested with the `-v' flag is the one-and-only execution environment.
  (If more environments are supported for some platforms in the future,
  multiple getconf(1) executables will be required, but a simple edit in
  progenv.gperf will enable automatic support for it.)  Document POSIX
  standard programming environments.

- Add all of the 1003.1-2001 configuration variables.  FreeBSD does not
  support all of these (including some that are mandatory); getconf will
  later be fixed to break the world should a required variable not be
  defined.

As a result of all these changes, gperf is no longer adequate.  Keep the
overall format and names of the files for now, to preserve revision history.
Use an awk script to process the .gperf files into C source, which does a
few things that gperf, as a more general tool, cannot do.  The keyword
recognition function is no longer a perfect hash function.

This may obviate the need for gperf in the source tree.

- Add a small compile-time regression test to break the build if any of the
  .gperf files declare conflicting token sets.  (gperf itself would have done
  this for the simple case of duplicate tokens in the same input file.)
2002-09-19 03:39:03 +00:00
green
040e8fab25 Update the usage string in the limits(1) manpage to include -b for
sbsize. Also, correct the format string in getopt(3) usage to reflect
that -b takes an argument, and correct another case of RLIMIT_SBSIZE
having been forgotten.
2002-09-18 16:25:59 +00:00
jmallett
b1a7ec95a8 Make the DEBUGF() macro portable by (ugh) adding a Debug() function, which
is merely printf() but to stderr.  This takes care of the caveat which lead
to the use of a vararg macro -- getting everything to stderr.
2002-09-18 16:13:03 +00:00
mike
705073e549 ARIN has annoyingly started using caps when referencing
whois.apnic.net.  To properly receive hints for recursive IP searches,
we convert a buffer to lowercase before searching for magic words.

PR:		42834
Submitted by:	Andre Albsmeier <andre.albsmeier@mchp.siemens.de> (mostly)
X-MFC-After:	re approval
2002-09-18 07:51:46 +00:00
jmallett
a96623e90a Mostly rewrite the flag handling of uname(1) to be overridable, such as:
freefall% uname -s
  FreeBSD
  freefall% env UNAME_s=Linnex ./uname -s
  Linnex

MFC after:	1 month
2002-09-18 04:33:10 +00:00
wollman
e90b0d5381 Make obrien happy. Add a bad awk script which emulates as much of
gperf's behavior as we ever actually needed here.  This generates
a much-less-efficient keyword recognizer, but it's not like that matters
in this application.  Makefile changes coming once this passes the world
test.
2002-09-18 03:15:25 +00:00
jmallett
7fd8427cf7 Move common use of if (DEBUG(FOO)) printf... to DEBUGF(FOO, ...), using
variable length arguments to a macro.  Bump version as this makes DEBUG
statements *always* go to stderr rather than sometimes stdout.  There are
a few stragglers, which I will take care of as soon as I can.  Mostly these
relate to the need-for-death-of some of the remote job code.

Nearby stylistic nits and XXX added/fixed where appropriate.
2002-09-17 22:31:26 +00:00
jmallett
64620c0f76 #define<space> -> #define<tab> 2002-09-17 21:29:06 +00:00
jmallett
a336071222 Print debugging from DEBUG(VAR) level to stderr. About to macroise this.
(Read: More commits to come).

MFC in:		4 days.
2002-09-17 21:26:57 +00:00
peter
a51c9b6627 Initiate deorbit burn for the i386-only a.out related support. Moves are
under way to move the remnants of the a.out toolchain to ports.  As the
comment in src/Makefile said, this stuff is deprecated and one should not
expect this to remain beyond 4.0-REL.  It has already lasted WAY beyond
that.

Notable exceptions:
gcc - I have not touched the a.out generation stuff there.
ldd/ldconfig - still have some code to interface with a.out rtld.
old as/ld/etc - I have not removed these yet, pending their move to ports.
some includes - necessary for ldd/ldconfig for now.

Tested on: i386 (extensively), alpha
2002-09-17 01:49:00 +00:00
bde
8d4dce1438 Backed out revs 1.32-1.33. The problem has been fixed better by
depolluting <netinet/if_gre.h> in the !_KERNEL case.

Reviewed by:	sobomax
2002-09-16 10:06:02 +00:00
obrien
576537351a Update for version 3.39. 2002-09-16 06:31:49 +00:00
obrien
09d4703abd Update for 3.39. 2002-09-16 06:22:04 +00:00
njl
72ca599da8 Userland changes to go with vnode->v_tag change. 2002-09-14 18:51:10 +00:00
peter
c8ada7e754 Promote gcore from i386-specific to the MI section.
Compiled on: alpha, sparc64, ia64
2002-09-13 18:29:08 +00:00
peter
2b79601456 Add #include <sys/queue.h> for sparc64's benefit. The MD includes there
have less polution.
2002-09-13 18:24:59 +00:00
peter
2efd9305d0 Use a crowbar to move the a.out code out of gcore.c and into its own
file so that we have a chance of using gcore on non-i386 platforms.  Use
linker sets to reduce the registration glue.  Remove md-sparc.c, we do not
have an a.out sparc32 port.  aoutcore.c was repocopied from gcore.c.
2002-09-13 16:33:35 +00:00
mike
ee94c6be46 Some uses of the variable n needed to be int, others needed to be
size_t.  Add a new variable to cope.
2002-09-11 04:26:09 +00:00
mike
6c06606f5b Unbreak world by fixing 4 syntax errors and 1 wrong variable type. 2002-09-11 01:00:56 +00:00
fanf
c01083a28d Fix style bugs in macros. 2002-09-10 21:14:14 +00:00
fanf
2ce47bcfdf Tidy up the base64 code and relax the error handling. 2002-09-10 21:10:33 +00:00
fanf
5cb3e55396 Style: Don't treat pointers as booleans. 2002-09-10 20:53:46 +00:00
fanf
0df46c2bed Fix tilde-expansion of the filename obtained from the "begin" line in -s
mode, and be more accurate about identifying begin lines so that spurious
ones don't have to be manually edited out, and be more forgiving about
errors so that -c mode is more useful.
2002-09-10 20:48:44 +00:00
fanf
02ac4ff9b2 Replace a goto with continue. 2002-09-10 20:33:39 +00:00
fanf
c5e31d5ee6 Remove register keyword. 2002-09-10 19:23:44 +00:00
fanf
ec1f90b434 Style: space after return. 2002-09-10 18:52:03 +00:00
fanf
f0b6e43cfb Make the handling of -i neater. 2002-09-10 18:34:07 +00:00
fanf
e7f41abf9d Only try to chmod the output if it's a regular file, rather than
hard-coding /dev/stdout as a special case.

Suggested by:	jmallett
2002-09-10 18:28:19 +00:00
thomas
cf69565b5f Prevent the wrapper from looping on itself forever, when there
is a symbolic link in the PATH pointing back to /usr/bin/perl.

Change WARNS from 6 to 5 to account for the fact that sys/time.h,
included from sys/stat.h, produces a warning when compiled with
-pedantic.

PR:		bin/42418
Reviewed by:	roberto
2002-09-10 13:56:30 +00:00
grog
b677ec0ef8 Add the 1109 incident. 2002-09-10 00:07:19 +00:00
nectar
89a48b22ec Check for FD_SET overrun. 2002-09-09 16:14:03 +00:00
obrien
71fe626844 Catch up with the ISO-C++ standard.
Submitted by:	Craig Rodrigues <rodrigc@attbi.com>
2002-09-09 02:58:42 +00:00
sobomax
e2042467a2 Also add #include <netinet/in_systm.h> before <neinet/ip.h> to fix the
world.

Submitted by:	Brooks Davis <brooks@one-eyed-alien.net>
2002-09-07 12:20:47 +00:00
sobomax
8a9b28b5fb Add #include <netinet/ip.h> in attempt to fix the world. 2002-09-07 06:16:22 +00:00
archie
8ee3bf6a2a Make it clear that the ":C" variable modifier expects an extended
regular expression instead of an obsolete regular expression.
Also, cross-reference re_format(7) instead of regex(3).

MFC after:	3 days
2002-09-06 17:33:11 +00:00
dwmalone
cb4604919f Warns cleanups for netstat:
1) Include arpa/inet.h for ntohs.
2) Constness fixes.
3) Fix shadowing except for "sin" which shouldn't be in scope.
4) Remove register keyword.
5) Add missing initialsers to user defined structs.
5) Make prototype of netname6 globally visable.
6) Use right macros for printing syncache stats (even though entrie isn't
   a word).
2002-09-05 17:06:51 +00:00
iedowse
5e1032e4e5 Include stdint.h to make this compile.
Submitted by:	Garance A Drosihn <drosih@rpi.edu>
2002-09-05 07:43:34 +00:00
dwmalone
b4339b74ad ANSIify function definitions.
Add some constness to avoid some warnings.
Remove use register keyword.
Deal with missing/unneeded extern/prototypes.
Some minor type changes/casts to avoid warnings.

Reviewed by:	md5
2002-09-04 23:29:10 +00:00
dwmalone
eed11ca251 Avoid a signedness warning by casting chain_index to a size_t.
(Should be OK as chain_index is supposed to be positive).
2002-09-04 21:22:49 +00:00
dwmalone
abb26c53dd No need to declare optind as an external int. 2002-09-04 21:16:51 +00:00
jmallett
eadd2de4a6 Die on -D=foo, when parsing options - we can't let someone define (nil).
MFC after:	3 days
2002-09-04 01:12:39 +00:00
fanf
e442c885fb Don't try (and fail) to fchmod /dev/stdout. Revert the manual page
to suggest the portable alternative to -p.

PR:		42356
Submitted by:	Kimura Fuyuki <fuyuki@hadaly.org>
MFC after:	1 week
2002-09-03 19:37:23 +00:00
fanf
0429c5021e Suggest -p instead of -o /dev/stdout.
PR:	42356
2002-09-03 10:18:56 +00:00
fanf
e43529519e Remove spurious whitespace 2002-09-03 09:58:11 +00:00
iedowse
99766d4bf1 If the CC environment variable contains multiple words then split
it up into separate exec arguments.

Reviewed by:	markm
2002-09-01 12:49:27 +00:00
peter
e9b6904091 Deal with bootstrapping from an old -current (almost exactly a year old)
which fails the make tests (doesn't understand ${notdef:U}) and therefore
fails on __FBSDID in usr.bin/make/*.  -DBOOTSTRAPPING is no help here since
this is before we are using the new share/mk/* files, and it would conflict
with the builtin -DBOOTSTRAPPING support later.. so use a different flag.
2002-08-31 07:18:40 +00:00
ache
92c6409aea Switch to new format which allows unlimited numbers of chains and
usually saves 2K in both data file and program memory.
Updated libc required.
2002-08-31 01:48:56 +00:00
grog
0ec51877f0 Add dates of foundation for Malaya, Malaysia and Singapore. 2002-08-30 21:36:16 +00:00
ache
c6dfd055df Prepare for switching to unlimited chains format 2002-08-30 20:34:36 +00:00
grog
3177d246be Add date of foundation of Federal Republic of Germany.
Remove bogus event of 22 September 1953.

Submitted by:  Jan-Oliver Neumann <jneumann@ix.urz.uni-heidelberg.de>
2002-08-29 00:26:26 +00:00
grog
34c70c6794 - Clarify events which happened in the USA.
- Note that the USA has no King.
- Unify spelling "US", not "U.S.".
- Remove USSR holiday (anniversary of the revolution).
- Don't remove claim that the Federal Republic of Germany was founded
  in 1953 (22 September).  Somebody should clarify if something
  reallly did happen on that day.
2002-08-28 00:33:11 +00:00
charnier
eef2c40d6e Do not repeat the name of the flag in its description 2002-08-27 19:14:08 +00:00
charnier
47d7dbef22 Use strchr() instead of index(). Use getopt(). Use err(). 2002-08-27 19:06:44 +00:00
des
19b896d323 s/optarg/s/ (cut'n'paste braino)
Spotted by:	kris
2002-08-27 10:19:24 +00:00
grog
af38190071 Clarify that the date 26 August 1920 was the date women got the vote
in USA, not the world first.

Add dates for women's votes in New Zealand.

Add dates for women's votes and rights to political office in South
Australia.
2002-08-26 00:23:56 +00:00
charnier
7dd9d47059 Replace various spelling with FALLTHROUGH which is lint()able 2002-08-25 13:23:09 +00:00
jmallett
b56d4d7791 Add a -C ala GNU make(1) for Makefiles which are too lazy to use $(MAKE) and
this particular GNU flag.  It changes into the given directory for the
operation in question.  This just goes into said directory at the time of
parsing the argument for getopt(3).

Submitted by:	Rachel Hestilow <rachel@jerkcity.com>
2002-08-25 02:45:04 +00:00
ache
25def6a90c Tweak chain example to show more possibilities 2002-08-23 14:03:59 +00:00
seanc
ad6e764632 Fix warning when calling w(1) when logged in via xdm/kdm. This is
really a problem with utmp/wtmp, but takes the same approach as who(1).

Reviewed by:	knu (mentor), mini, silence on -audit
Approved by:	knu (mentor), mini
2002-08-23 04:31:58 +00:00
ache
e528806f99 Allow chains in any form like <name1><name2> or \xf1\xf2, not binary
representation only.
2002-08-23 04:18:26 +00:00
johan
242b6ef476 Use correct document date for the -a option. 2002-08-22 01:54:18 +00:00
johan
28c233cdd0 Add the -a option to report all matches instead of only the
first of each requested type.

Approved by: joerg, sheldonh (mentor)
2002-08-22 01:50:51 +00:00
thomas
b2a49bf492 Jump in.
Reviewed by:	roberto
2002-08-21 21:18:14 +00:00
joerg
d0dc6152ac For scripts that are called in non-login environments (in particular
mail filters), the /usr/bin/perl dummy fails since it assumes that the
installed package could be reached via the existing $PATH.  Also,
since we are obviously looking for a perl installed by a package, we
should make sure that at least the default package bindir is being
searched.
2002-08-21 20:54:45 +00:00
obraun
e383817c6e Add myself.
Approved by:	dwcjr (mentor)
2002-08-21 14:25:48 +00:00
ache
b4ad7c01c4 Document SWIDTH* 2002-08-20 15:19:34 +00:00
ru
4c934d6757 Allow embedded :' and !' in target names.
PR:		bin/6612
Obtained from:	OpenBSD
MFC after:	1 week
2002-08-20 12:50:32 +00:00
imp
dcbe7e6b18 When login tries to do the chmod/chflags on a read only file system,
it complains that it can't do it because the filesystem is readonly.
Assume that when the user has a readonly /dev that they don't care if
login can't change the permissions/flags.  While this does break a few
things like msgs, we'll assume that the user setting up the read only
system knows what they are doing.

All this change does is to stop the complaint when the file system is
read only.  It also adds comments as to why EROFS and EOPNOTSUPP are
ignored.

This allows one to have a read-only / w/o a /dev MFS and have a
relatively warning-free existence.  /etc/rc still complains when it
can't chown/chflags/chmod things, but that's easy to ignore/tweak.

Reviewed by: roberto, phk
Sponsored by: Timing Solutions
2002-08-19 20:54:00 +00:00
jmallett
2b6e4e1504 Remove local prototypes for main(). 2002-08-19 03:07:56 +00:00
jmallett
bd88fce4f3 Add a unary -not operator ala -false and !, for sake of completeness.
Obtained from:	OpenDarwin
MFC after:	1 week
2002-08-19 02:27:33 +00:00
johan
28378cc9b0 Correctly handle empty path arguments, e.g., whereis -S -f biff.
Approved by:	joerg, sheldonh (mentor)
2002-08-18 18:21:18 +00:00
keichii
c7575e1fcc Add swidth definitions and lex code to mklocale
After adding swidth support in iswctype.c and ctype.h

Submitted by:	clkao@clkao.org
Reviewed by:	keichii,ache
Obtained from:	NetBSD
MFC after:	1 month
2002-08-16 13:46:43 +00:00
seanc
03d830a6c2 Forgot to change branches for my src tree. MFS my birthdate.
Pointed out by:	maxim
Reviewed by:	knu (mentor)
Approved by:	knu (mentor)
2002-08-16 09:41:07 +00:00
johan
3fcc723a46 Bump document date for the 'beep only' change. 2002-08-16 03:08:25 +00:00
marcus
2ba12a117b Bah! Use the full name for Florida. 2002-08-15 22:44:56 +00:00
marcus
858b0c53ec Add myself. 2002-08-15 22:43:01 +00:00
dg
5a9591b4a5 Add myself. 2002-08-15 22:34:45 +00:00
jmallett
2439b56e98 Oops, add -false to the operators list in the manual page for find(1), as added
in revision 1.17 of option.c.

MFC after:	1 week
2002-08-15 18:30:13 +00:00
jmallett
fd28cd5d8f Add support for -false instead of '!' cause it can be hard to use that in
some shells, etc., and also for GNU compatability (lack of this broke the
Mono CVS build for me).

MFC after:	1 week
2002-08-15 18:24:55 +00:00
dougb
bf0a4d7027 I was too conservative with my header changes, so restore some sanity
via bde. atatat@NetBSD.org made basically the same change in their
version, so bring over their CVS Id which I neglected last time.

Obtained from:	bde, Andrew Brown <atatat@NetBSD.org>
2002-08-15 04:58:46 +00:00
bmilekic
1ea9bfcd52 Unbreak building of fstat following version 1.23 of
src/sys/ufs/ufs/quota.h by including mount.h before ufs/quota.h.
2002-08-14 16:34:13 +00:00
ache
db791732e2 Use proper #include 2002-08-14 11:59:57 +00:00
ache
b87a80a757 Add #undefs to separate local buffers declaration and now dinamic libc buffers 2002-08-14 11:51:26 +00:00
ru
aed6bc195b mdoc(7) police: simplify. 2002-08-14 11:38:30 +00:00
ru
96d2524b4e mdoc(7) police: Forgot to bump .Dd. 2002-08-14 11:32:32 +00:00
ru
a573fc7181 mdoc(7) police:
Added -F and -W options to the SYNOPSIS.
Fixed options DESCRIPTION to match style(9).
Document the default for -F.
2002-08-14 11:31:37 +00:00
ru
72b565cff0 Fix the usage() to match style(9). 2002-08-14 11:28:07 +00:00
ru
d5054e6434 mdoc(7) police: nits. 2002-08-14 11:05:40 +00:00
dougb
ecc0e08193 A much better description of the -q option.
Obtained from:	Andrew Brown <atatat@NetBSD.org>
2002-08-13 20:07:36 +00:00
iedowse
9d7acfc814 If a timeout is specified, make sure that rcmd() completes within
the specified time. Previously, rsh could potentially hang indefinitely
at this point even when a timeout was set, for example if the server
accepts the connection and then never sends any reply.

PR:		bin/20042
Submitted by:	Keith White <Keith.White@site.uottawa.ca>
MFC after:	1 week
2002-08-13 16:25:38 +00:00
ru
ce971426f4 mdoc(7) police: Removed redundant .Ns calls. 2002-08-13 16:07:28 +00:00
ru
14f702a402 mdoc(7) police: untangle. 2002-08-13 15:59:28 +00:00
dougb
a5d6ffe944 A cooperative effort...
1. Update the code to the latest from NetBSD, which includes:
* A new command line option to suppress stat(2) errors
* Output is now done via stdio
* Fixes for bitwise OR'ing of letters

2. Andrew from NetBSD merged in our own Johan's readlink patches.

3. Andrew also merged in some brucifications.

I made some small contributions to the header cleanup, and tried
to generally improve the overall style(9)'ishness. I also documented
the new -q option and added the *LINKS to the Makefile.

All responsibility for mistakes in merging the contributions
from the above is mine.

Obtained from:	Andrew Brown <atatat@NetBSD.org>, bde, johan
2002-08-13 08:23:49 +00:00
ache
d95ba53c2b Fix typing error in prev. commit 2002-08-12 17:24:42 +00:00
ache
54c34d65e7 Fix style bug in prev. commit 2002-08-12 17:23:06 +00:00
ache
3ad9cb5821 Fix su job control (recently introduced for PAM cleanup purposes) to not
kill login shell on either "suspend/fg" or "stop $$/fg" for tcsh. Since
this bug occurse on -stable too, it is not kernel threads bug.

Submitted by:	 David Xu <bsddiy@yahoo.com>
2002-08-12 10:49:01 +00:00
schweikh
b2bb39b1eb Fix typos; each file has at least one s/seperat/separat/
(I skipped those in contrib/, gnu/ and crypto/)
While I was at it, fixed a lot more found by ispell that I
could identify with certainty to be errors. All of these
were in comments or text, not in actual code.

Suggested by:	bde
MFC after:	3 days
2002-08-11 13:05:30 +00:00
ru
9f330c956f main.c:450: warning: `targs' might be used uninitialized in this function
Spotted by:	patrick@godloveya.com, naddy, -Wuninitialized

This segfaulted alpha and sparc64; i386 had this magically zeroed.
2002-08-11 11:10:43 +00:00
tjr
a9d85f1bcc Locale environment variables influence wc(1) regardless of whether the
-m option is specified; correct ENVIRONMENT section.
2002-08-11 10:54:19 +00:00
tjr
40eb0ec9c3 Use the iswspace(3) function now that it's been implemented. 2002-08-11 10:52:13 +00:00
tjr
9e94669b31 Correct boundary condition error in D' and P' commands when the last
line of the pattern space is empty. Don't emit spurious newline when
EOF is reached with the `N' command.

Pointed out by:	Oleg Osyka
MFC after:	1 week
2002-08-11 09:53:44 +00:00
mux
9c2a740b94 Add #include <sys/sysctl.h>. In my tree, mount.h includes
sysctl.h and I was depending on this namespace pollution.

Submitted by:	jake
2002-08-11 02:07:43 +00:00
mux
f43070c325 - Introduce a new struct xvfsconf, the userland version of struct vfsconf.
- Make getvfsbyname() take a struct xvfsconf *.
- Convert several consumers of getvfsbyname() to use struct xvfsconf.
- Correct the getvfsbyname.3 manpage.
- Create a new vfs.conflist sysctl to dump all the struct xvfsconf in the
  kernel, and rewrite getvfsbyname() to use this instead of the weird
  existing API.
- Convert some {set,get,end}vfsent() consumers to use the new vfs.conflist
  sysctl.
- Convert a vfsload() call in nfsiod.c to kldload() and remove the useless
  vfsisloadable() and endvfsent() calls.
- Add a warning printf() in vfs_sysctl() to tell people they are using
  an old userland.

After these changes, it's possible to modify struct vfsconf without
breaking the binary compatibility.  Please note that these changes don't
break this compatibility either.

When bp will have updated mount_smbfs(8) with the patch I sent him, there
will be no more consumers of the {set,get,end}vfsent(), vfsisloadable()
and vfsload() API, and I will promptly delete it.
2002-08-10 20:19:04 +00:00
jake
8d72d232ef truss hasn't been ported to ia64 yet.
Noticed by:	ru
2002-08-10 06:10:17 +00:00
jake
b46f5a1520 xlint seems to build fine on sparc64. 2002-08-10 05:44:44 +00:00
jake
ba018bfce3 Put getconf in the right place. 2002-08-10 05:43:40 +00:00
tmm
c516cea85b The boottime variable in sys/kern/kern_tc.c is a struct timeval, not a
time_t, so do not use the latter as type when retrieving the variable
via libkvm. This should fix vmstat on sparc64.
2002-08-09 15:47:43 +00:00
iedowse
6e02be7780 Add a new flag (-l) that suppresses quota checks on NFS filesystems.
PR:		bin/12939
Submitted by:	Neil Blakey-Milner <nbm@rucus.ru.ac.za>
2002-08-09 00:53:00 +00:00
iedowse
10e78eec8c Fix a few compiler warnings, sort options and make the usage()
output match the synopsis.
2002-08-09 00:43:36 +00:00
ru
2c0f1f41c3 Pacify ``make -f /dev/null -V FOO''. 2002-08-07 13:25:51 +00:00
mdodd
582f479cac Remove an unnecessary cast. 2002-08-07 11:35:18 +00:00
ache
376dbc34ba Back out workaround of fixing "suspend/fg" by price of breaking "stop $$/fg".
This is real kernel bug (threads) and don't attempt to mask it by
workarounds to increase chances to fix it in the kernel.
2002-08-07 05:44:50 +00:00
mdodd
d20661ba22 - Use time.h not sys/time.h.
- Fix printf format errors.

Submitted by:	 bde
2002-08-06 12:46:14 +00:00
grog
64d495bae6 Remove Australia from list of locations supposedly having a bank
holiday on 6 August.  Since this claim isn't dependent on the weekday,
I have my strong doubts about the other locations too, but I can't
confirm, so I'm leaving them in.
2002-08-05 23:54:22 +00:00
mdodd
e46b84ca00 Remove extra space in output. 2002-08-05 14:56:20 +00:00
mdodd
a4b3e13b54 Diff reduction. 2002-08-05 13:23:41 +00:00
mdodd
2ba9baa8d3 Use timespec not timeval. 2002-08-05 12:22:55 +00:00
jake
38c44f7803 Ported to sparc64. 2002-08-04 17:57:01 +00:00
bde
4418f4740b Include <sys/time.h> for the declaration of struct timeval. Do not
depend on namespace pollution in <signal.h>.  (truss shouldn't be
using timevals anyway, since it was implemented long after timevals
were obsoleted by timespecs.)
2002-08-04 10:57:41 +00:00
mdodd
c3ab10b179 Add options to print the argument and environment string parameters to
execve().

This could be done in a more general manner but it still wouldn't
be very pretty.

MFC after:	 3 weeks
2002-08-04 02:24:21 +00:00
mdodd
b4aa304f72 Add a "FreeBSD ELF32" entry to ex_types[]. 2002-08-04 02:20:06 +00:00
mdodd
ca2c836450 Terminate the output line when a non-returning syscall is printed. 2002-08-04 01:28:13 +00:00
mdodd
3cb287247d Add options to print absolute and relative timestamps.
PR:		 bin/25587 (in part)
MFC after:	 3 weeks
2002-08-04 01:27:31 +00:00
mdodd
65f8611398 Allow tracking fork()ed children.
PR:		 bin/25587 (in part)
MFC after:	3 weeks
2002-08-04 01:02:52 +00:00
mdodd
357fc6060d Parameterize globals.
PR:		bin/25587 (in part)
MFC after:	3 weeks
2002-08-04 00:46:48 +00:00
robert
1495d7e56f Use a cast to `void *' before casting to a pointer to a structure
to stop GCC emitting warnings about increased alignment requirements
which broke the build for sparc64.

Approved by:	des
2002-08-02 11:57:59 +00:00
des
1d14d5adc9 Don't depend on namespace pollution from <netinet/in_pcb.h>.
Submitted by:	bde
2002-08-01 16:49:31 +00:00
des
7884f69d0c Implement the -l and -c options, which I'd forgotten. 2002-08-01 11:02:30 +00:00
des
06dac20202 Rewrite sockstat(1) in C.
Sponsored by:	DARPA, NAI Labs
2002-07-31 12:32:03 +00:00
fanf
cd1b46e6b0 Fix some bugs in in-place editing:
(1) errors from freopen were not reported correctly
(2) large files were not handled correctly
(3) read-only files broke things

MFC after:	1 week
2002-07-30 19:42:18 +00:00
tjr
e465cc4382 Ignore leading semicolons on commands; required by SUSv3.
Obtained from:	NetBSD (kleink, Aymeric Vincent)
2002-07-30 14:07:30 +00:00
tjr
6d20181e60 When translating and -C is specified, behave as if the complemented set was
in the locale collating order as required by SUSv3.
2002-07-29 23:42:00 +00:00
tjr
fb4f03d256 When translating and the -c option is specified, handle the case where the
second string argument is more than one character in length in the way
required by SUSv3 (and the way GNU textutils and SVR4 do it).
2002-07-29 14:50:54 +00:00
ru
a8adf98c82 Drop support for COPY, -c has been the default mode of install(1)
for a long time now.

Approved by:	bde
2002-07-29 09:40:17 +00:00
ru
2a8927efce Ignore -C, -p, and -S options of install(1) when used with the -d
option.  Warn about COPY being phased out.  Restore the old method
of always comparing before installing: INSTALL="install -C".

Requested by:	bde
2002-07-29 08:51:04 +00:00
des
403946d7ed fetch(1) is WARNS-5 clean (tested on i386 and Alpha) 2002-07-28 21:09:57 +00:00
des
9413d584e7 Use strtol(3) instead of a home-grown version, and fix a "possibly
unitialized variable" warning.
2002-07-28 21:09:25 +00:00
dwmalone
8e2ebdedb2 Add enough consts to keep everyone happy. 2002-07-28 16:23:28 +00:00
dwmalone
3f2a3935bb Don't reuse a const char * when we really want a char *. 2002-07-28 16:17:38 +00:00
dwmalone
4233e58352 Improve WARNS situation for kdump:
1) Define _KERNEL while including sys/time.h to get some function prototypes.
2) Add prototypes and ANSIify definitions.
3) Constness changes.
4) Remove register keyword.
5) Actually return a sensible value from main.
6) Make fread_tail take a void * instead of a char *.
7) Avoid a signedness warning by casting to a size_t. Should be safe
   enough 'cos we also check for nonnegativity.
8) Be extra chummy with sigset_t rather than passing a struct to printf
   and pretending it is an int.
2002-07-28 16:05:07 +00:00
dwmalone
391a69a94d ANSIify function definitions to avoid a warning. 2002-07-28 15:50:38 +00:00
dwmalone
39f15130f8 The return value of snprintf should be always nonnegative, so it should
be safe to cast it to a size_t before comparing it to a sizeof().
2002-07-28 15:41:15 +00:00
dwmalone
1dca0716ff ANSIify function definitions to avoid a warning. 2002-07-28 15:32:17 +00:00
dwmalone
bf25e6dcaf ANSIify function definitions to avoid a warning.
Minor constness changes.
2002-07-28 15:28:38 +00:00
dwmalone
0e9dee55c6 ANSify function definitions to avoid a warning. 2002-07-28 15:25:15 +00:00
dwmalone
3f5f42dd5a ANSIify function definitions to avoid a warning. 2002-07-28 15:22:43 +00:00
dwmalone
165587ded9 ANSIify function definitions to avoid a warning.
PR:		38930
Submitted by:	keramida
2002-07-28 15:20:10 +00:00
dwmalone
6b76694948 ANSIify function definitions to avoid a warning. 2002-07-28 15:13:17 +00:00
dwmalone
c86f1a950a ANSIify function definitions to avoid some warnings.
Include stdlib.h for exit.
2002-07-28 15:02:24 +00:00
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
keramida
bfae74eab6 Kill excessive whitespace between macro arguments. 2002-07-15 07:35:36 +00:00
keramida
be36fd0f14 mdoc style: break up sentences 2002-07-15 07:16:54 +00:00
jmallett
fed551e328 Bit-width fields should be of type 'int'. 2002-07-15 06:57:25 +00:00
jmallett
35fdcc10ba Use %zu to print size_t. 2002-07-15 06:57:01 +00:00
keramida
f5da93b3aa Fix last hard sentence break. 2002-07-15 06:15:38 +00:00
keramida
402593a44e ^Z suspends any and all programs that don't do anything special about
it.  There's really no reason to explicitly mention it here.

Suggested by:	Mark Valentine <mark@thuvia.demon.co.uk>
2002-07-15 05:54:35 +00:00
tjr
3635de5b6e Support larger files (at least 64-bit offsets) by using off_t instead of
int to store offsets.
2002-07-15 05:31:55 +00:00
jmallett
5cf2af5a27 Kill extraneous whitespace. 2002-07-15 02:15:12 +00:00
keramida
6823a7fabe ^Z doesn't "stop" systat, but it "suspends" it.
PR:		docs/40489
Submitted by:	Dave McCammon <davemac11@yahoo.com>
2002-07-15 01:53:29 +00:00
alfred
c288b01e7d WARNS=4 2002-07-14 18:23:22 +00:00
alfred
adf0fb9f4e WARNS=4, add 2002-07-14 18:21:07 +00:00
alfred
6241f40508 WARNS=2, de-__P() 2002-07-14 18:16:06 +00:00
alfred
b7f8470fdf WARNS=2 2002-07-14 17:55:35 +00:00
alfred
d95d8b89ab - TI-RPC is now the default again for code generation.
- As before, inetd support support is turned of per default.
  Code for inetd can be made with -I.

- Support for ``transport monitors'' and the NLSPROVIDER env
  variable is still there , even if their use is not clear in
  non TLI stream based systems like Free-/NetBSD. It can be activated
  with -P.

- There are a few corrections in rpcgen.1 and usage function to conform
  to the code. Added and documented -P

- I removed the #ifdefs checks for Free-/NetBSD since we are the only
  ones who use this code. MaxOS X may have the same limitations as
  we have, so this code will correctly build for them.

- Generate correct cflags.

Submitted by: mbr, Jean-Luc Richier <Jean-Luc.Richier@imag.fr>
PR: bin/29175, misc/27816
2002-07-14 17:54:00 +00:00
charnier
abd215c87f The .Nm utility 2002-07-14 15:12:00 +00:00
luigi
0a62a25a08 Clear local screen when ^D is typed.
Use setproctitle to remove arguments from 'ps' output.

MFC after: 3 days
2002-07-14 14:08:43 +00:00
ache
662958d09e More Russian holidays
PR:		39578
Submitted by:	Sergey A. Osokin <osa@FreeBSD.org.ru>
2002-07-14 13:29:27 +00:00
jmallett
8dcca6c133 Add a default case to the getopt(3) switch, remove a blank line nearby. 2002-07-14 02:34:37 +00:00
jmallett
868a694e34 Functions declared as <type> <identifier>(<nil>) should be declared as
<type> <identifier>(<void-type>) in ANSI C.
2002-07-14 02:03:23 +00:00