Commit Graph

4793 Commits

Author SHA1 Message Date
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
David Malone
421dfbcfdd 1) Move FreeBSD tag to after vendor ID, #if 0 vendor ID.
2) Add missing include of stdlib.h for exit(), spotted by gcc3.
2002-02-27 14:40:09 +00:00