Mark Murray
a2e0c81e66
Add BSD sort to the build, now that GNU sort is gone.
2002-03-24 16:02:01 +00:00
Mark Murray
e58067e0f2
Make this compile on FreeBSD. Sort out VCS tags, fix warnings.
2002-03-24 15:59:17 +00:00
Mark Murray
5ea7337834
Fix warns, ANSIfy, use __FBSDID(), sort headers.
2002-03-24 10:21:22 +00:00
Crist J. Clark
61c26786cf
Fix a style(9) error. Put the vendor version control string back in.
...
I nuked it when I added the $FreeBSD$ tag.
2002-03-24 01:41:11 +00:00
Warner Losh
bbf5c743d2
unifdef __STDC__
2002-03-23 23:37:07 +00:00
Warner Losh
55e031a3c8
o unifdef -D__STDC__
...
o use ansi function definitions
o remove OLDSUN
2002-03-23 23:35:42 +00:00
Warner Losh
c120448ada
o unifdef -D__STDC__
...
o remove badly bit-rotted compat file that likely won't work on the systems
it purports to support.
2002-03-23 23:30:30 +00:00
Warner Losh
7ddea7b836
unifdef -D__STDC__
2002-03-23 23:19:00 +00:00
Mark Murray
ed86ca364b
Very simple fixes; WARNS and ANSIfy. Remove GCC-specific options from
...
Makefile.
2002-03-23 15:43:11 +00:00
Mark Murray
ed74761863
Minor whitespace nit.
2002-03-23 15:20:45 +00:00
David E. O'Brien
2fe5bfd7a1
Use our auto-YACC'ing rules to do most of the work.
...
Submitted by: bde
2002-03-23 04:49:43 +00:00
Ceri Davies
23186fc1dd
Add myself to the calendar.
2002-03-22 15:44:20 +00:00
Mark Murray
363a07cc69
Null one-line entry to resurrect this from the Attic. The real commit
...
will follow.
2002-03-22 14:51:51 +00:00
Mark Murray
3c3f11563a
This commit was generated by cvs2svn to compensate for changes in r92948,
...
which included commits to RCS files with non-trunk default branches.
2002-03-22 13:54:24 +00:00
Mark Murray
7a0a395027
Vendor import NETBSD's sort(1). This will be a replacement for
...
our GNU sort, as discussed 6 months or more ago.
2002-03-22 13:54:24 +00:00
Warner Losh
3f330d7d1a
remove __P
2002-03-22 01:42:45 +00:00
Warner Losh
d3cb5ded92
remove __P
2002-03-22 01:33:25 +00:00
Warner Losh
f1bb2cd2aa
remove __P
2002-03-22 01:22:50 +00:00
Mark Murray
2a66bf165b
Restructure for own parsedate (replacement for get_date from CVS).
...
Fix up parsedate.y for WARNS=4.
Reviewd by: bde (except for parsedate.y diffs)
2002-03-21 21:56:05 +00:00
Mark Murray
2309721787
Add a replacement for get_date which is currently being dug out of
...
CVS's sources.
This is a "public domain" implementation stolen from INN, and is
added unmodified.
2002-03-21 21:43:50 +00:00
Alexander Leidinger
5ff65b6cf3
Traditional first commit.
...
Approved by: joerg
2002-03-21 16:40:32 +00:00
Peter Wemm
c4527df028
Add an ia64 targparam.h
2002-03-21 07:33:31 +00:00
Ruslan Ermilov
bd42830f0f
Make lint(1) a cross-tool.
...
(See commit log for usr.bin/xlint/Makefile,v 1.11 for what was wrong
with enabling build of lint libraries in rev. 1.12.)
This fixes cross-arch compiles (running binaries for a different arch
when generating lint.7 and lint libraries) and cross-branch compiles
(4.x -> 5.0 buildworld should be working again).
2002-03-20 18:25:50 +00:00
Mark Murray
a6565444bd
For the sake of consistency, remove an include that is included in
...
a previous include. All other files in this app do this.
2002-03-20 10:35:51 +00:00
Mark Murray
ecca1f1c0a
Remove __P().
2002-03-20 10:32:05 +00:00
Mike Barcroft
d345176dc7
When invoked with no file arguments, display usage.
...
Submitted by: Tim J. Robbins <tim@robbins.dropbear.id.au>
PR: 36074
Use new ID scheme.
2002-03-20 08:59:20 +00:00
Poul-Henning Kamp
d485631b6c
Unifdef __FreeBSD__
...
MD5 checksum of binary unchanged.
2002-03-20 07:44:09 +00:00
Jeff Roberson
2294143a5d
Remove the kmembuckets stats in preparation for the UMA commit.
2002-03-19 08:45:55 +00:00
Juli Mallett
0e3c27aef0
Fix handling of filenames with spaces in them in the input file to
...
uudecode(1), as this behaviour was explicitly added in revision 1.12 as
the result of PR 2882. Remove space (' ') from the delimiter characters
handed to strtok(3).
Reviewed by: mike
Approved by: mike
Pointy hat to: me
2002-03-19 02:05:27 +00:00
Juli Mallett
9873dd6133
Make uudecode(1) use setmode(3) and getmode(3) instead of just blindly
...
chmodding using an octal mode, as uudecode needs to handle symbolic modes
as chmod and such do.
Suggested by: Tim J. Robbins <tim@robbins.id.au>
Also move meta-character (~ in this case) globbing to only if we are reading
the filename from the encoded file, as otherwise it is the shell's job.
Reviewed by: mike
Approved by: mike
2002-03-19 00:44:07 +00:00
Dag-Erling Smørgrav
3b67680b63
Bump the cutoff mark for comparing files from 8 MB to 16 MB.
2002-03-18 23:26:13 +00:00
Crist J. Clark
51906f452e
Fix world breakage introduced by my recent modifications to
...
chpass(8). The relations between libc, libpam, chpass, passwd, and
vipw are a mess and probably should be cleaned up.
Submitted by: Peter Pentchev <roam@ringlet.net>
2002-03-18 12:55:28 +00:00
Crist J. Clark
92b19a5754
Fix a bug that prevents "00" being used as a valid year. Why bother in
...
2002? It is a bug. Might as well close the PR.
PR: misc/14511
Submitted by: Mike Pritchard <mpp@mpp.pro-ns.net>
MFC after: 3 days
2002-03-18 09:49:18 +00:00
Crist J. Clark
8c44e77923
It was possible for an unprivileged user to tie up the password
...
information (no one else can vipw(8), chpass(1), or even passwd(1)),
either on purpose or by accident, until an administrator manually
intervened. Instead, do not lock the master.passwd file while a user
is editing his information. But once we go to write the new
information, check that the modified user's information has not
changed in the password database since we started. Abort the changes
if it has.
Add a $FreeBSD$ to pw_copy.h.
PR: i386/35816
Obtained from: NetBSD
MFC after: 1 week
2002-03-18 02:22:53 +00:00
Mark Murray
81ebb8b094
Build lint libraries.
2002-03-17 10:00:56 +00:00
Giorgos Keramidas
673a70f57f
Fix typo: supporting -> support.
...
PR: docs/35956
Submitted by: Gary W. Swearingen <swear@blarg.net>
MFC after: 3 days
2002-03-17 05:24:56 +00:00
Juli Mallett
73385ac644
ANSIfy: Function declarations and prototypes, use of environ(7).
...
Reviewed by: mike
Approved by: mike
2002-03-15 22:54:58 +00:00
Maxime Henrion
7df2ba8a76
Add myself to this list.
2002-03-15 18:49:53 +00:00
Ruslan Ermilov
48851764f9
Argh, I constantly keep forgetting about these XXX's I put.
2002-03-15 17:01:05 +00:00
Ruslan Ermilov
8f5d6dadb2
mdoc(7) police:
...
Restore fixes from revision 1.20 that got lost in revision 1.21 merge.
Fixed some more.
2002-03-15 16:44:52 +00:00
Ruslan Ermilov
6edbab2f7b
mdoc(7) police: fix markup and uudecode(1) -o option description.
2002-03-15 16:03:29 +00:00
Ruslan Ermilov
ba68dbe5f9
mdoc(7) police: kill hard sentence breaks.
2002-03-15 15:31:54 +00:00
Ruslan Ermilov
bad331599a
mdoc(7) police: pedantry.
2002-03-15 15:28:12 +00:00
Ruslan Ermilov
4af011c32b
mdoc(7) police: markup fixes.
2002-03-15 15:26:57 +00:00
Greg Lehey
c693a89910
Add encounter between Flinders and Baudin.
2002-03-13 07:57:24 +00:00
Garance A Drosehn
3be0f8f038
Simple fix so the 'LOGIN FAILURE' message send to syslog will include
...
the correct userid, instead of random garbage. This bug does not
exist in -stable.
Reviewed by: freebsd-audit
2002-03-12 19:48:32 +00:00
Mark Murray
2bfd7df3f0
Turn back on (x)lint. It is working just fine.
2002-03-12 13:43:02 +00:00
Mark Murray
cae6f50f5a
Try harder to lint without nonstandard stuff.
2002-03-11 11:32:55 +00:00
Mark Murray
724badfb6e
Punt to attic file that moved in latest import.
2002-03-11 11:28:56 +00:00
Mark Murray
7af8da4178
Fix a prototype to match our headers. I am not convinced that doing
...
this in this file is the correct way round. (Maybe our definition of
__assert is wrong?)
Anyway, perhaps we should revisit this later. For the time being,
building lint libraries here does not blow up.
2002-03-11 11:26:17 +00:00
Mark Murray
40a2924f9a
Fix silly one line error. (Half a .if statement left behind).
2002-03-11 11:20:45 +00:00
Mark Murray
b4f198c344
Don't build xlint until surgery is finished.
2002-03-10 21:15:58 +00:00
Andrey A. Chernov
dfe8796660
Setlocale returns static buffer, don't assume it will be unchanged
...
Pointed by: phantom
2002-03-10 14:54:59 +00:00
Jake Burkholder
c57dee1fd1
Add sparc64 ifdefs.
2002-03-10 01:34:22 +00:00
Jake Burkholder
9f5bcb6350
Make this build on sparc64.
2002-03-10 01:25:47 +00:00
Dag-Erling Smørgrav
8ad749a45d
Change back to using vfork() now that execvp() is vfork()-safe. If execvp()
...
fails, errno is saved to a volatile variable that the parent later inspects.
PR: bin/34898
Submitted by: Tim J. Robbins <tim@robbins.dropbear.id.au>
MFC after: 1 week
2002-03-09 22:08:14 +00:00
Wolfram Schneider
f2c819bf2b
Off by one error in checking max file name length.
2002-03-09 15:30:42 +00:00
David E. O'Brien
64049aa600
Slightly more efficient version of rev 1.6.
2002-03-07 23:01:55 +00:00
David E. O'Brien
95e5dc0476
A less intrusive version of rev 1.2.
2002-03-07 23:00:27 +00:00
David E. O'Brien
66da358885
Slightly more efficient fix to the const problem.
2002-03-07 22:58:16 +00:00
David E. O'Brien
716ced0b62
Back out part of rev 1.51. The lesser impact fix is to just remove
...
the unused global var.
2002-03-07 22:36:56 +00:00
Mark Murray
81fcc44b70
Completeley revert this to the vendor code. This is in preparation to
...
doing some fixing...
...asked for by: bde
2002-03-07 16:45:41 +00:00
Mark Murray
c8ad87debb
Revert/fix the most controversial parts of the last commit:
...
1) place __FBSDID() correctly IAW style(9).
2) revert (and slightly correct) a "complex" expression in an if()
statement.
2002-03-07 14:11:41 +00:00
David E. O'Brien
efad9abf1c
Update FreeBSD SCM IDs.
2002-03-07 12:52:27 +00:00
Mike Barcroft
064692095c
Leave the `copyright' variable exposed, since the main purpose of it
...
is to put a copyright in the object file.
Submitted by: bde
2002-03-07 10:06:00 +00:00
David E. O'Brien
a370851f6e
To quote BDE: "the k part of awk should understand the ctype macros and not
...
need the -funsigned-char hack."
Also add needed CLEANSFILE.
2002-03-06 18:37:26 +00:00
David E. O'Brien
da2af9ad11
Simpler way to handling the names needed on the various platforms.
2002-03-06 18:06:39 +00:00
Bruce Evans
21edcafd7d
Removed gprof4. 8-byte counters are now handled by gprof.
2002-03-06 14:10:48 +00:00
Dag-Erling Smørgrav
17e623ac97
Belatedly OpenPAMify. I forgot this patch in last night's megacommit.
...
Sponsored by: DARPA, NAI Labs
2002-03-06 12:46:56 +00:00
Ruslan Ermilov
a6150e80fe
Boundary check an array holding tab stops.
...
PR: bin/35590
Submitted by: "Tim J. Robbins" <tim@robbins.dropbear.id.au>
2002-03-06 12:05:17 +00:00
Bruce Evans
275ffbc6e6
Support runtime specification of the history counter type by whatever
...
generated the gmon data. The support is currently limited to what is
easy to implement and/or needed:
signedess: signed or insigned
size: 8, 16, 32 or 64 bits
format: a binary integer in gprof's format (gprof is not a cross-tool).
High-resolution kernel profiling uses signed 64-bit counters. Normal
kernel profiling and user profiling use unsigned 16-bit counters but
should use 32-bit ones.
2002-03-06 11:25:58 +00:00
Bruce Evans
8109a9af1f
Fixed some misspellings of 2 as sizeof(UNIT) so that they won't break
...
things when sizeof(UNIT) becomes a runtime parameter. The relevant 2
is the one in profil(2)'s scaling of pc's to bucket numbers:
bucket = (pc - offset) / 2 * profil_scale / 65536
gprof(1) must duplicate this scaling, bug for bug compatibly, so it
must first do an integer division by 2 although this mainly makes
scales larger than 65536 useless. sizeof(UNIT) was already wrong in
gprof4, but there were no problems because the fake profil scale is a
multiple of 2.
There are also some rounding bugs in the scaling, but these are only
problems if profil(2) is used directly to create unusual (and not
useful) scales.
2002-03-06 09:47:36 +00:00
Dag-Erling Smørgrav
519b6a4c8f
Switch to OpenPAM. Bump library version. Modules are now versioned, so
...
applications linked with Linux-PAM will still work.
Remove pam_get_pass(); OpenPAM has pam_get_authtok().
Remove pam_prompt(); OpenPAM has pam_{,v}{error,info,prompt}().
Remove pam_set_item(3) man page as OpenPAM has its own.
Sponsored by: DARPA, NAI Labs
2002-03-05 21:56:25 +00:00
David E. O'Brien
a04eff5a87
On the sparc64 platform we install the `1 true AWK' as "awk". On all other
...
platforms we install as "nawk".
At the moment Gawk is borked on sparc64, however BWK AWK works fine.
2002-03-05 19:37:12 +00:00
David E. O'Brien
9a1523bc67
Add the `1 true AWK' back to the mix.
2002-03-05 19:36:08 +00:00
Mike Barcroft
68ed097b75
Initialize `output' in a more proper location.
...
Submitted by: roam
2002-03-05 10:58:06 +00:00
Mike Barcroft
51883012f6
Fix vendor ID (mostly obtained from Rev 1.1).
2002-03-05 05:17:30 +00:00
Juli Mallett
0e01f18b86
Add base64 support to uuencode(1) and uudecode(1), as specified by SUSv3.
...
Add `-o' option to uuencode(1) to pipe the uuencoded output to an
arbitrary file, instead of just stdout.
Reviewed by: -standards, mike
Approved by: mike
2002-03-05 03:27:47 +00:00
Mark Murray
20bee7c8de
ANSIfication, WARNS and lint cleanup.
2002-03-04 20:27:38 +00:00
Alexey Zelkin
6d0e1e8588
Add support for french and german locales in tcsh's way.
...
. link fr_FR.* to fr_BE, fr_CA, fr_CH
. link de_DE.* to de_AT, de_CH
Obtained from: src/bin/csh/nls/Makefile
2002-03-04 12:37:08 +00:00
Alexey Zelkin
c1633140b7
Use NLSLINKS to setup symbolic links in NLS area
2002-03-04 12:29:21 +00:00
Alexey Zelkin
2291a8f3be
Use bsd.nls.mk for building/installing NLS files
2002-03-04 09:52:06 +00:00
Mark Murray
a3b69bbaa6
(x)lint(1) works; re-enable it.
2002-03-03 19:32:44 +00:00
Mark Murray
f84f50e683
Merge conflicts, fix Makefiles and remove (re)moved file(s).
2002-03-03 15:12:50 +00:00
Mark Murray
675d3eb019
This commit was generated by cvs2svn to compensate for changes in r91586,
...
which included commits to RCS files with non-trunk default branches.
2002-03-03 13:17:00 +00:00
Mark Murray
fdd1668006
Import of NetBSD's (x)lint, snapshotted at 2002-3-3.
2002-03-03 13:17:00 +00:00
Mark Murray
c25e37e9b4
Temporarily remove lint(1) from the build until the import and merge
...
of the MFN (Merge from NetBSD) is complete.
2002-03-03 13:03:08 +00:00
Giorgos Keramidas
943c2638bf
Consistently refer to the trace file of ktrace as 'trfile'.
...
PR: docs/35361
Submitted by: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
2002-03-03 01:12:25 +00:00
Alfred Perlstein
40e8dd712c
properly handle zero length first string when doing -c
...
PR: 34663
MFC After: 3 days
2002-03-02 10:36:37 +00:00
Ian Dowse
139db33f22
Add a new "-y" flag which causes the year to be included in the
...
session start time. This is useful when looking at old or long-running
wtmp files.
PR: bin/12982
Obtained from: KOJIMA Hajime <kjm@rins.ryukoku.ac.jp>, keramida
Reviewed by: keramida
MFC after: 1 week
2002-03-01 21:12:19 +00:00
Ian Dowse
2e7a4024ff
Oops, unbreak the -d and -<n> options. The `snapfound' variable
...
needs to be retained across entries, and we need to exit(), not
return from doentry() when `maxrec' reaches 0. Move the code for
processing `maxrec' into printentry() for simplicity.
2002-03-01 19:46:20 +00:00
Ian Dowse
6e3a7c4b1b
Split up the big wtmp() function to avoid long lines and code
...
duplication.
2002-03-01 17:37:06 +00:00
Greg Lehey
57cd6843bf
Correct St. David's day: it's celebrated outside Cardiff.
2002-02-28 23:06:24 +00:00
Mike Barcroft
a821e36e41
Fix vendor ID (mostly obtained from rev 1.1).
...
Make use of `static' storage-class for local functions.
Replace uses of `u_quad_t' with `uintmax_t'.
2002-02-28 11:02:49 +00:00
Bill Fenner
1f5e29c956
Use SIGUSR1 to propogate SIGURG to the child; security measures prevent
...
the parent from sending SIGURG itself to the child. This fixes the
problem of occasionally failing to pass the window size.
2002-02-27 22:45:10 +00:00
Bill Fenner
57c1a0b6bf
Improve error reporting - report error message when there is one, or
...
report a short read if that's what we're reporting.
2002-02-27 22:38:59 +00:00
David Malone
e98080b1e6
1) Remove -Wall from Makefile.
...
2) WARNs fixes (rename option to lookup_option to avoid shadowing, rename
argv to argv1 to avoid shadowing, const stuff, prototypes, __unused).
3) Remove "register"s.
2002-02-27 17:57:00 +00:00
David Malone
2e30d3b13c
1) Don't use -Wall in Makefile.
...
2) Don't compile vendor ID.
3) WARNS=4 fixes (constness, make a global local to avoid shadowing, unused
parameters, rename local to avoid shadowing, remove junk after #endif)
4) remove some "register"s.
2002-02-27 15:49:07 +00:00
David Malone
8f4c8256b2
1) Move FreeBSD ID below vendor ID and don't compile vendor ID.
...
2) Cast some numbers we know to be positive to size_t before we MIN them
with the result of a sizeof.
3) Compare result of inet_addr to INADDR_NONE, not -1.
2002-02-27 15:22:12 +00:00
David Malone
653b788c5e
Add missing "#include <string.h>" for memcmp, noticed by gcc3.
2002-02-27 14:56:58 +00:00