Tony Finch
abfd963f3e
Fix style bugs in macros.
2002-09-10 21:14:14 +00:00
Tony Finch
0987aa405b
Tidy up the base64 code and relax the error handling.
2002-09-10 21:10:33 +00:00
Tony Finch
af08438611
Style: Don't treat pointers as booleans.
2002-09-10 20:53:46 +00:00
Tony Finch
e95d61f1c2
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
Tony Finch
89f6a6d229
Replace a goto with continue.
2002-09-10 20:33:39 +00:00
Tony Finch
6ce2a155da
Remove register keyword.
2002-09-10 19:23:44 +00:00
Tony Finch
c613756f77
Style: space after return.
2002-09-10 18:52:03 +00:00
Tony Finch
279c15995c
Make the handling of -i neater.
2002-09-10 18:34:07 +00:00
Tony Finch
1e4cc34122
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 Quinot
39449b2c8a
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
Greg Lehey
f50b40bd4e
Add the 1109 incident.
2002-09-10 00:07:19 +00:00
Jacques Vidrine
75bed0534a
Check for FD_SET overrun.
2002-09-09 16:14:03 +00:00
David E. O'Brien
6c1739987a
Catch up with the ISO-C++ standard.
...
Submitted by: Craig Rodrigues <rodrigc@attbi.com>
2002-09-09 02:58:42 +00:00
Maxim Sobolev
3b68178c89
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
Maxim Sobolev
885564890b
Add #include <netinet/ip.h> in attempt to fix the world.
2002-09-07 06:16:22 +00:00
Archie Cobbs
1b69f09c39
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
David Malone
a01e3379df
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
Ian Dowse
56d037c684
Include stdint.h to make this compile.
...
Submitted by: Garance A Drosihn <drosih@rpi.edu>
2002-09-05 07:43:34 +00:00
David Malone
f4ac32def2
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
David Malone
b073168829
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
David Malone
2698bbe2da
No need to declare optind as an external int.
2002-09-04 21:16:51 +00:00
Juli Mallett
c624d24df3
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
Tony Finch
23a4f59e03
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
Tony Finch
59706ac3bb
Suggest -p instead of -o /dev/stdout.
...
PR: 42356
2002-09-03 10:18:56 +00:00
Tony Finch
4023416250
Remove spurious whitespace
2002-09-03 09:58:11 +00:00
Ian Dowse
83c5a3b583
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 Wemm
7b2f27b0fe
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
Andrey A. Chernov
c9887a654b
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
Greg Lehey
6c4028203e
Add dates of foundation for Malaya, Malaysia and Singapore.
2002-08-30 21:36:16 +00:00
Andrey A. Chernov
3ce74edd70
Prepare for switching to unlimited chains format
2002-08-30 20:34:36 +00:00
Greg Lehey
bdb9312632
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
Greg Lehey
959d9e0b51
- 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
Philippe Charnier
3c94f41f51
Do not repeat the name of the flag in its description
2002-08-27 19:14:08 +00:00
Philippe Charnier
835279c2c0
Use strchr() instead of index(). Use getopt(). Use err().
2002-08-27 19:06:44 +00:00
Dag-Erling Smørgrav
dacff75286
s/optarg/s/ (cut'n'paste braino)
...
Spotted by: kris
2002-08-27 10:19:24 +00:00
Greg Lehey
045d6370fc
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
Philippe Charnier
93b0017f88
Replace various spelling with FALLTHROUGH which is lint()able
2002-08-25 13:23:09 +00:00
Juli Mallett
acdb9a105e
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
Andrey A. Chernov
7f4fd84cf9
Tweak chain example to show more possibilities
2002-08-23 14:03:59 +00:00
Sean Chittenden
d0d0355e4d
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
Andrey A. Chernov
79458607f6
Allow chains in any form like <name1><name2> or \xf1\xf2, not binary
...
representation only.
2002-08-23 04:18:26 +00:00
Johan Karlsson
eb238d0692
Use correct document date for the -a option.
2002-08-22 01:54:18 +00:00
Johan Karlsson
1f05bc6c92
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 Quinot
f763d3ef0a
Jump in.
...
Reviewed by: roberto
2002-08-21 21:18:14 +00:00
Joerg Wunsch
0dfcc59353
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
Oliver Braun
feec8fd25b
Add myself.
...
Approved by: dwcjr (mentor)
2002-08-21 14:25:48 +00:00
Andrey A. Chernov
8011a282e0
Document SWIDTH*
2002-08-20 15:19:34 +00:00
Ruslan Ermilov
4612010cdd
Allow embedded :' and
!' in target names.
...
PR: bin/6612
Obtained from: OpenBSD
MFC after: 1 week
2002-08-20 12:50:32 +00:00
Warner Losh
84bbb6cab3
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
Juli Mallett
3a7fc8ce59
Remove local prototypes for main().
2002-08-19 03:07:56 +00:00
Juli Mallett
4a0193d39e
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 Karlsson
ad23c58318
Correctly handle empty path arguments, e.g., whereis -S -f biff.
...
Approved by: joerg, sheldonh (mentor)
2002-08-18 18:21:18 +00:00
Michael C . Wu
ff9c912816
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
Sean Chittenden
ffd711039f
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 Karlsson
af3c8cb07d
Bump document date for the 'beep only' change.
2002-08-16 03:08:25 +00:00
Joe Marcus Clarke
3bc63f613f
Bah! Use the full name for Florida.
2002-08-15 22:44:56 +00:00
Joe Marcus Clarke
ed093a2098
Add myself.
2002-08-15 22:43:01 +00:00
David Greenman
25de38b6dc
Add myself.
2002-08-15 22:34:45 +00:00
Juli Mallett
c9776a935f
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
Juli Mallett
65acff377a
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
Doug Barton
782ce28781
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
Bosko Milekic
d8aadd88cf
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
Andrey A. Chernov
3b2d61780f
Use proper #include
2002-08-14 11:59:57 +00:00
Andrey A. Chernov
02826007ca
Add #undefs to separate local buffers declaration and now dinamic libc buffers
2002-08-14 11:51:26 +00:00
Ruslan Ermilov
93df249471
mdoc(7) police: simplify.
2002-08-14 11:38:30 +00:00
Ruslan Ermilov
eaa529121a
mdoc(7) police: Forgot to bump .Dd.
2002-08-14 11:32:32 +00:00
Ruslan Ermilov
3791250688
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
Ruslan Ermilov
67cb90ecd7
Fix the usage() to match style(9).
2002-08-14 11:28:07 +00:00
Ruslan Ermilov
d3ee5eafe5
mdoc(7) police: nits.
2002-08-14 11:05:40 +00:00
Doug Barton
a6d192950e
A much better description of the -q option.
...
Obtained from: Andrew Brown <atatat@NetBSD.org>
2002-08-13 20:07:36 +00:00
Ian Dowse
35655e3c45
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
Ruslan Ermilov
a654c53e16
mdoc(7) police: Removed redundant .Ns calls.
2002-08-13 16:07:28 +00:00
Ruslan Ermilov
5e27573309
mdoc(7) police: untangle.
2002-08-13 15:59:28 +00:00
Doug Barton
5b812a140d
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
Andrey A. Chernov
3e2322fcff
Fix typing error in prev. commit
2002-08-12 17:24:42 +00:00
Andrey A. Chernov
09d932cf40
Fix style bug in prev. commit
2002-08-12 17:23:06 +00:00
Andrey A. Chernov
54c93e4f4d
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
Jens Schweikhardt
2b239dd118
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
Ruslan Ermilov
ef3a89cfe8
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
Tim J. Robbins
98c385e7d6
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
Tim J. Robbins
e58245f7dc
Use the iswspace(3) function now that it's been implemented.
2002-08-11 10:52:13 +00:00
Tim J. Robbins
13ee49d316
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
Maxime Henrion
24befda40b
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
Maxime Henrion
5965373e69
- 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 Burkholder
d9ac5b20fb
truss hasn't been ported to ia64 yet.
...
Noticed by: ru
2002-08-10 06:10:17 +00:00
Jake Burkholder
9b9669488b
xlint seems to build fine on sparc64.
2002-08-10 05:44:44 +00:00
Jake Burkholder
298f4dc3a2
Put getconf in the right place.
2002-08-10 05:43:40 +00:00
Thomas Moestl
95ba428ccb
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
Ian Dowse
e56990e43b
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
Ian Dowse
e608ec61bd
Fix a few compiler warnings, sort options and make the usage()
...
output match the synopsis.
2002-08-09 00:43:36 +00:00
Ruslan Ermilov
19d732af8b
Pacify ``make -f /dev/null -V FOO''.
2002-08-07 13:25:51 +00:00
Matthew N. Dodd
fb034d05ac
Remove an unnecessary cast.
2002-08-07 11:35:18 +00:00
Andrey A. Chernov
04a0be1f97
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
Matthew N. Dodd
37169f9446
- Use time.h not sys/time.h.
...
- Fix printf format errors.
Submitted by: bde
2002-08-06 12:46:14 +00:00
Greg Lehey
6dba302111
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
Matthew N. Dodd
28c4ea6da8
Remove extra space in output.
2002-08-05 14:56:20 +00:00
Matthew N. Dodd
42a389ac3e
Diff reduction.
2002-08-05 13:23:41 +00:00
Matthew N. Dodd
203098d816
Use timespec not timeval.
2002-08-05 12:22:55 +00:00
Jake Burkholder
f84c971a6f
Ported to sparc64.
2002-08-04 17:57:01 +00:00
Bruce Evans
c69d844294
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
Matthew N. Dodd
9897b20356
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
Matthew N. Dodd
0629483c41
Add a "FreeBSD ELF32" entry to ex_types[].
2002-08-04 02:20:06 +00:00
Matthew N. Dodd
88a6987d40
Terminate the output line when a non-returning syscall is printed.
2002-08-04 01:28:13 +00:00
Matthew N. Dodd
0d0bd00edd
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
Matthew N. Dodd
c03bfcc871
Allow tracking fork()ed children.
...
PR: bin/25587 (in part)
MFC after: 3 weeks
2002-08-04 01:02:52 +00:00
Matthew N. Dodd
ec0bed25ba
Parameterize globals.
...
PR: bin/25587 (in part)
MFC after: 3 weeks
2002-08-04 00:46:48 +00:00
Robert Drehmel
6dbe8d53a5
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
Dag-Erling Smørgrav
02bd9db045
Don't depend on namespace pollution from <netinet/in_pcb.h>.
...
Submitted by: bde
2002-08-01 16:49:31 +00:00
Dag-Erling Smørgrav
1e6690e5db
Implement the -l and -c options, which I'd forgotten.
2002-08-01 11:02:30 +00:00
Dag-Erling Smørgrav
ca007d9172
Rewrite sockstat(1) in C.
...
Sponsored by: DARPA, NAI Labs
2002-07-31 12:32:03 +00:00
Tony Finch
d1691a2ff6
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
Tim J. Robbins
0467aed3c9
Ignore leading semicolons on commands; required by SUSv3.
...
Obtained from: NetBSD (kleink, Aymeric Vincent)
2002-07-30 14:07:30 +00:00
Tim J. Robbins
6e9c52b638
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
Tim J. Robbins
482711cfa6
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
Ruslan Ermilov
d2893b161b
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
Ruslan Ermilov
33c1de7d1f
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
Dag-Erling Smørgrav
35945a74ac
fetch(1) is WARNS-5 clean (tested on i386 and Alpha)
2002-07-28 21:09:57 +00:00
Dag-Erling Smørgrav
32411a1b6f
Use strtol(3) instead of a home-grown version, and fix a "possibly
...
unitialized variable" warning.
2002-07-28 21:09:25 +00:00
David Malone
50bb77244e
Add enough consts to keep everyone happy.
2002-07-28 16:23:28 +00:00
David Malone
81b4504baa
Don't reuse a const char * when we really want a char *.
2002-07-28 16:17:38 +00:00
David Malone
91fbb9c1db
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
David Malone
c10b37bf7a
ANSIify function definitions to avoid a warning.
2002-07-28 15:50:38 +00:00
David Malone
8015edeebb
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
David Malone
47e9e6a168
ANSIify function definitions to avoid a warning.
2002-07-28 15:32:17 +00:00
David Malone
19817b8518
ANSIify function definitions to avoid a warning.
...
Minor constness changes.
2002-07-28 15:28:38 +00:00
David Malone
823ab23f39
ANSify function definitions to avoid a warning.
2002-07-28 15:25:15 +00:00
David Malone
6ed42fb9d2
ANSIify function definitions to avoid a warning.
2002-07-28 15:22:43 +00:00
David Malone
b74c79078f
ANSIify function definitions to avoid a warning.
...
PR: 38930
Submitted by: keramida
2002-07-28 15:20:10 +00:00
David Malone
f2e8e0dad7
ANSIify function definitions to avoid a warning.
2002-07-28 15:13:17 +00:00
David Malone
a374d6e0a1
ANSIify function definitions to avoid some warnings.
...
Include stdlib.h for exit.
2002-07-28 15:02:24 +00:00
David Malone
412f8d5a03
ANSIify function definitions to avoid a warning.
...
Minor constness changes.
2002-07-28 14:55:59 +00:00
David Malone
77ae8ac713
ANSIify function definitions to avoid a warning.
2002-07-28 14:41:26 +00:00
Juli Mallett
afb325f75d
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
Dima Dorfman
16a8de73d2
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
Juli Mallett
716297c2d3
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
Greg Lehey
76e27551b5
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
Warner Losh
a366365a74
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
Tim J. Robbins
5b3df62e01
Use sigaction(2) instead of signal(3) to avoid the signal handler being
...
re-entered.
2002-07-26 05:25:12 +00:00
Johan Karlsson
103d66460c
Define all paths in pathnames.h
...
Approved by: joerg, sheldonh (mentor)
2002-07-25 23:04:31 +00:00
Tim J. Robbins
c0e3f1222f
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 Drehmel
971b504bce
style(9): - Put a space after the 'return' keyword.
...
- Wrap lines longer than 80 characters.
2002-07-24 18:54:59 +00:00
Robert Drehmel
4ca470d666
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 Drehmel
5eb3a502f0
- 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 Drehmel
adf721d1cb
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 Karlsson
8e4c33e9e7
Teach whereis(1) about games.
...
Approved by: joerg, sheldonh (mentor)
2002-07-24 14:35:29 +00:00
John Polstra
f824b5187e
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
Tom Rhodes
a38d3fb35e
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
Juli Mallett
58a8e6d20e
Remove duplicate __FBSDID() - spotted by trying to build with a non-GNU
...
compiler.
2002-07-23 14:39:20 +00:00
Ruslan Ermilov
95ad74d7cf
Dependencies are delimited by space not tab.
2002-07-23 09:15:45 +00:00
Eric Melville
4d01a8fb5f
Handle directories correctly.
...
PR: 40801
MFC after: 5 days
2002-07-23 04:54:57 +00:00
Tom Rhodes
31352a12bf
Revert last commit. Sorry for breaking things
2002-07-22 21:45:16 +00:00
Tom Rhodes
623bc624b0
MFC: Fix some grammar, greater reduce diffs to HEAD
2002-07-22 21:14:16 +00:00
Hajimu UMEMOTO
3daa847108
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 Drehmel
6863982a02
- Use MAXLOGNAME - 1 rather than UT_NAMESIZE.
...
- Remove the inclusion of <utmp.h>.
2002-07-22 11:36:25 +00:00
Robert Drehmel
6d6c6baac4
- Use MAXLOGNAME - 1 instead of UT_NAMESIZE.
...
- Do not pretend there is something like '/etc/utmp'.
2002-07-22 11:32:16 +00:00
Tim J. Robbins
c4232ceae7
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
Ruslan Ermilov
2e9968fa36
Fixed improper SCRIPTS assignment that broke `clean'.
2002-07-21 21:03:47 +00:00
Johan Karlsson
da2dc5cc61
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
Philippe Charnier
75863a6dbb
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
Philippe Charnier
53aa54b8bf
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
Matthew Dillon
d65bf08af3
Add the tcps_sndrexmitbad statistic, keep track of late acks that caused
...
unnecessary retransmissions.
2002-07-19 18:29:38 +00:00
Mark Murray
095dcf9966
Merge conflicts.
2002-07-19 16:38:21 +00:00
Mark Murray
a440a601c1
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
Mark Murray
e07f5fa8bb
Snapshot of NetBSD's (x)lint. Little functionality, just some code
...
tidy-ups.
2002-07-19 15:19:23 +00:00
Mark Murray
8bd89d7e04
s/inline/__inline/
2002-07-19 14:12:27 +00:00
Mark Murray
d601abcf6c
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
Mark Murray
bfc3d86a24
s/inline/__inline/
2002-07-19 13:49:37 +00:00
Mark Murray
c279819e2e
"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
Ruslan Ermilov
0b87f79976
s/${INSTALL} -c/${INSTALL} ${COPY}/
2002-07-18 12:07:49 +00:00
Ville Skyttä
0055e2cd0b
Add myself.
...
Approved by: knu (mentor)
2002-07-17 19:00:37 +00:00
Ollivier Robert
e74b0f7796
Fix installworld.
...
Submitted by: Udo Schweigert <Udo.Schweigert@siemens.com>
2002-07-17 15:35:31 +00:00
Garrett Wollman
5cd19a3cfd
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
Garrett Wollman
43bf47e4d8
Forgot to change command name in Makefile. (Where's the pointy hat?)
2002-07-16 21:14:01 +00:00
Garrett Wollman
b107f944ad
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
Kelly Yancey
9f8df4b468
Fix incorrect cast.
2002-07-16 05:57:21 +00:00
Dima Dorfman
7b9c3ba793
Use proper article.
2002-07-16 05:38:26 +00:00
Garrett Wollman
55a7bf6b44
Support POSIX ``programming environment'' mistake.
2002-07-15 22:51:24 +00:00
Ralf S. Engelschall
605a57c20d
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 Perlstein
e3d463662c
revert WARNS=4, it makes the alpha compile sad.
2002-07-15 09:53:34 +00:00
Giorgos Keramidas
0d4ac71385
mdoc fun: add a few more sentence breaks.
2002-07-15 07:51:10 +00:00
Giorgos Keramidas
b4e164347b
Kill excessive whitespace between macro arguments.
2002-07-15 07:35:36 +00:00
Giorgos Keramidas
2e634542d4
mdoc style: break up sentences
2002-07-15 07:16:54 +00:00
Juli Mallett
19074b91d3
Bit-width fields should be of type 'int'.
2002-07-15 06:57:25 +00:00
Juli Mallett
9739527ffb
Use %zu to print size_t.
2002-07-15 06:57:01 +00:00
Giorgos Keramidas
3a432e4c4b
Fix last hard sentence break.
2002-07-15 06:15:38 +00:00
Giorgos Keramidas
3fbfa86b4c
^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
Tim J. Robbins
c81180b861
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
Juli Mallett
2c4acd2f49
Kill extraneous whitespace.
2002-07-15 02:15:12 +00:00
Giorgos Keramidas
c7a5e9a0a2
^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 Perlstein
da8de1e204
WARNS=4
2002-07-14 18:23:22 +00:00
Alfred Perlstein
d183dcb670
WARNS=4, add
2002-07-14 18:21:07 +00:00
Alfred Perlstein
12c9f2fd76
WARNS=2, de-__P()
2002-07-14 18:16:06 +00:00
Alfred Perlstein
651feb6587
WARNS=2
2002-07-14 17:55:35 +00:00
Alfred Perlstein
40ad88851b
- 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
Philippe Charnier
084e19802d
The .Nm utility
2002-07-14 15:12:00 +00:00
Luigi Rizzo
8aed91ca2d
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
Andrey A. Chernov
91ebab1887
More Russian holidays
...
PR: 39578
Submitted by: Sergey A. Osokin <osa@FreeBSD.org.ru>
2002-07-14 13:29:27 +00:00
Juli Mallett
010b4b09f1
Add a default case to the getopt(3) switch, remove a blank line nearby.
2002-07-14 02:34:37 +00:00
Juli Mallett
d1fea89cae
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
Juli Mallett
7b6f658ced
Remove prototype for main().
2002-07-14 02:00:45 +00:00