Commit Graph

5799 Commits

Author SHA1 Message Date
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