Commit Graph

4993 Commits

Author SHA1 Message Date
cjc
b598570f6b 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
imp
460e35953f unifdef __STDC__ 2002-03-23 23:37:07 +00:00
imp
d5c1fc899c o unifdef -D__STDC__
o use ansi function definitions
o remove OLDSUN
2002-03-23 23:35:42 +00:00
imp
7eed3429c0 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
imp
7535c05549 unifdef -D__STDC__ 2002-03-23 23:19:00 +00:00
markm
0dcefe7b55 Very simple fixes; WARNS and ANSIfy. Remove GCC-specific options from
Makefile.
2002-03-23 15:43:11 +00:00
markm
d644505a7d Minor whitespace nit. 2002-03-23 15:20:45 +00:00
obrien
3662a2ea16 Use our auto-YACC'ing rules to do most of the work.
Submitted by:	bde
2002-03-23 04:49:43 +00:00
ceri
dcf0ed4d8d Add myself to the calendar. 2002-03-22 15:44:20 +00:00
markm
a5a6c4acc2 Null one-line entry to resurrect this from the Attic. The real commit
will follow.
2002-03-22 14:51:51 +00:00
markm
d5ba9b7cc5 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
markm
7406319bb4 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
imp
0b20191705 remove __P 2002-03-22 01:42:45 +00:00
imp
1698cb216e remove __P 2002-03-22 01:33:25 +00:00
imp
74d826c7a6 remove __P 2002-03-22 01:22:50 +00:00
markm
5da7065f3d 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
markm
18beef9ee3 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
netchild
7bcbc43d99 Traditional first commit.
Approved by: joerg
2002-03-21 16:40:32 +00:00
peter
e18cd1e9c7 Add an ia64 targparam.h 2002-03-21 07:33:31 +00:00
ru
333c1d4d25 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
markm
177f27dab3 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
markm
d7ea51307a Remove __P(). 2002-03-20 10:32:05 +00:00
mike
54e30b4190 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
phk
064c0537d1 Unifdef __FreeBSD__
MD5 checksum of binary unchanged.
2002-03-20 07:44:09 +00:00
jeff
d95a4801fc Remove the kmembuckets stats in preparation for the UMA commit. 2002-03-19 08:45:55 +00:00
jmallett
f350e51990 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
jmallett
a67e26bc7a 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
des
aa322cf19a Bump the cutoff mark for comparing files from 8 MB to 16 MB. 2002-03-18 23:26:13 +00:00
cjc
51b661db90 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
cjc
2e2afe2675 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
cjc
ed673bb689 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
markm
476738c7e6 Build lint libraries. 2002-03-17 10:00:56 +00:00
keramida
6c08146ae0 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
jmallett
a9a19ab70b ANSIfy: Function declarations and prototypes, use of environ(7).
Reviewed by:	mike
Approved by:	mike
2002-03-15 22:54:58 +00:00
mux
ce7313402c Add myself to this list. 2002-03-15 18:49:53 +00:00
ru
1b0c62b7f6 Argh, I constantly keep forgetting about these XXX's I put. 2002-03-15 17:01:05 +00:00
ru
dac2fbcea2 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
ru
310cb9bdee mdoc(7) police: fix markup and uudecode(1) -o option description. 2002-03-15 16:03:29 +00:00
ru
fd9725909a mdoc(7) police: kill hard sentence breaks. 2002-03-15 15:31:54 +00:00
ru
e879063557 mdoc(7) police: pedantry. 2002-03-15 15:28:12 +00:00
ru
e34c7a0a63 mdoc(7) police: markup fixes. 2002-03-15 15:26:57 +00:00
grog
f48d7937af Add encounter between Flinders and Baudin. 2002-03-13 07:57:24 +00:00
gad
42c020af81 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
markm
78a438dfb5 Turn back on (x)lint. It is working just fine. 2002-03-12 13:43:02 +00:00
markm
3be0ca6854 Try harder to lint without nonstandard stuff. 2002-03-11 11:32:55 +00:00
markm
6c291d8e30 Punt to attic file that moved in latest import. 2002-03-11 11:28:56 +00:00
markm
0bea1968bc 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
markm
c217051c4e Fix silly one line error. (Half a .if statement left behind). 2002-03-11 11:20:45 +00:00
markm
50558d3ff6 Don't build xlint until surgery is finished. 2002-03-10 21:15:58 +00:00
ache
bb01e62002 Setlocale returns static buffer, don't assume it will be unchanged
Pointed by:	phantom
2002-03-10 14:54:59 +00:00
jake
6b83ff594a Add sparc64 ifdefs. 2002-03-10 01:34:22 +00:00
jake
0517cd92aa Make this build on sparc64. 2002-03-10 01:25:47 +00:00
des
652d870eb8 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
wosch
3adb054e5a Off by one error in checking max file name length. 2002-03-09 15:30:42 +00:00
obrien
f4d9e1cfbc Slightly more efficient version of rev 1.6. 2002-03-07 23:01:55 +00:00
obrien
26ba134593 A less intrusive version of rev 1.2. 2002-03-07 23:00:27 +00:00
obrien
fb5a0ad0da Slightly more efficient fix to the const problem. 2002-03-07 22:58:16 +00:00
obrien
7639ed0682 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
markm
7b2187d186 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
markm
c285f79bbb 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
obrien
8159ebd5e2 Update FreeBSD SCM IDs. 2002-03-07 12:52:27 +00:00
mike
4232c22913 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
obrien
7a594117fc 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
obrien
7456ac6ec6 Simpler way to handling the names needed on the various platforms. 2002-03-06 18:06:39 +00:00
bde
0d40df5f4c Removed gprof4. 8-byte counters are now handled by gprof. 2002-03-06 14:10:48 +00:00
des
912fe80624 Belatedly OpenPAMify. I forgot this patch in last night's megacommit.
Sponsored by:	DARPA, NAI Labs
2002-03-06 12:46:56 +00:00
ru
5e2e7f621a 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
bde
acab62a802 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
bde
8de8391e81 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
des
c0bbe50538 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
obrien
9a6aca91dd 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
obrien
8c13981ac7 Add the `1 true AWK' back to the mix. 2002-03-05 19:36:08 +00:00
mike
90bb4842e7 Initialize `output' in a more proper location.
Submitted by:	roam
2002-03-05 10:58:06 +00:00
mike
210ccec690 Fix vendor ID (mostly obtained from Rev 1.1). 2002-03-05 05:17:30 +00:00
jmallett
ce51fff754 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
markm
a40f12cb8f ANSIfication, WARNS and lint cleanup. 2002-03-04 20:27:38 +00:00
phantom
e324559440 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
phantom
9124a610d0 Use NLSLINKS to setup symbolic links in NLS area 2002-03-04 12:29:21 +00:00
phantom
59a679ac31 Use bsd.nls.mk for building/installing NLS files 2002-03-04 09:52:06 +00:00
markm
ecb7a599ea (x)lint(1) works; re-enable it. 2002-03-03 19:32:44 +00:00
markm
8207872db7 Merge conflicts, fix Makefiles and remove (re)moved file(s). 2002-03-03 15:12:50 +00:00
markm
00e098c5ce 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
markm
a9c0aaa0e8 Import of NetBSD's (x)lint, snapshotted at 2002-3-3. 2002-03-03 13:17:00 +00:00
markm
8a5493bf2a 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
keramida
da7415a981 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
4461fe4699 properly handle zero length first string when doing -c
PR: 34663
MFC After: 3 days
2002-03-02 10:36:37 +00:00
iedowse
1090c48a39 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
iedowse
6c4b4530b4 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
iedowse
a43d1708d7 Split up the big wtmp() function to avoid long lines and code
duplication.
2002-03-01 17:37:06 +00:00
grog
d5da1ce9b2 Correct St. David's day: it's celebrated outside Cardiff. 2002-02-28 23:06:24 +00:00
mike
906748aa31 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
fenner
eab8ad1bb3 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
fenner
70babecdeb 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
dwmalone
9540738a74 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
dwmalone
3de45f43ac 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
dwmalone
316f120601 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
dwmalone
e743c5b66c Add missing "#include <string.h>" for memcmp, noticed by gcc3. 2002-02-27 14:56:58 +00:00
dwmalone
af004a8a8f 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
dwmalone
921c81b2d4 1) Remove blank line between include of sys/cdefs.h and __FBSDID
2) compare return value of inet_addr to INADDR_NONE rather than -1.
2002-02-27 14:32:43 +00:00
robert
6ec282a1de Avoid a null-pointer dereference which occurred when emulating DOS
interrupt 0x10 function 0x00 without dpy int tty.c being set.

PR:		35147
Submitted by:	Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
2002-02-26 10:22:25 +00:00
robert
a3d5207088 - Emulate instructions prefixed with 'rep' correctly: set the CX
register to zero.

Submitted by:	Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
PR:		35147
2002-02-26 10:13:35 +00:00
cjc
06f86e63e4 Thoreau listed twice.
Give RFK's fullname and place of birth.
Spell 'Wiener' correctly and add place of birth.

PR:		misc/35305
Submitted by:	Philipp Mergenthaler <philipp.mergenthaler@stud.uni-karlsruhe.de>
2002-02-25 23:26:13 +00:00
jmallett
25941dda5c Add myself.
Reviewed by:	mike
Approved by:	mike
2002-02-25 19:48:04 +00:00
bde
1108cb5744 #include <sys/time.h> instead of depending on namespace pollution in
<sys/stat.h> for the declaration of struct timeval.  Intentionally
don't follow the local style of polluting the local headers.
2002-02-25 05:16:22 +00:00
bde
6449432456 Unremoved used includes. <sys/time.h> is needed if <sys/stat.h> isn't
polluted, and <sys/types.h> is strictly a prerequisite for <sys/stat.h>
untiil we drop support for pre-2001 versions of POSIX.
2002-02-25 05:09:12 +00:00
bde
b3ad16b2d7 #include <sys/time.h> instead of depending on namespace pollution in
<sys/stat.h> for the declaration of struct timeval.

Removed unused includes (<time.h> doesn't declare anything of interest;
only <sys/time.h> does).

Sorted includes a bit.
2002-02-25 05:00:39 +00:00
bde
2015121deb #include <sys/time.h> instead of depending on namespace pollution in
<sys/stat.h> for the declaration of struct timeval (sys/stat.h> only
needs timespecs even when its POSIX support is not turned on, so it
shouldn't declare timevals).

Fixed some #include messes.
2002-02-25 04:47:39 +00:00
grog
aaf850a0ef Correct name spelling for one of the people who share my birthday.
PR:		docs/35274
Submitted by:	nivit@libero.it (Nicola Vitale)
2002-02-24 23:59:57 +00:00
gshapiro
3996171009 ctags would create a corrupt tags file if the source C file used '//' style
comments such as:

// The main() function

Teach ctags about this style of commenting.

Submitted by:	Eric Allman <eric@Sendmail.ORG>
MFC after:	1 week
2002-02-24 03:02:52 +00:00
bde
410e57d607 Fixed printf format errors. In printgprof.c, also convert the scale
without possibly losing lots of precision, and print the scale using
%g instead of %d in case it is non-integral.  %g might not be the best
format for this.
2002-02-21 12:07:21 +00:00
bde
2587888af4 Added missing copyright. Obtain one and a vendor id from gprof.c. aout.c
was split off from gprof.c in rev.1.7 of the latter.  elf.c is mostly new,
but the old copyright sort of applies to it and is better than none.

Use __FBSDID() for the FreeBSD id.
2002-02-21 12:03:06 +00:00
bde
a230636d24 Fixed a missing variable declaration so that gprof compiles with -DDEBUG. 2002-02-21 10:34:52 +00:00
bde
118c70fed9 Moved the definition of the machine-independent macro UNITS_TO_CODE
from <number of machines> machine-dependent headers to the one
non-header here it is used so that it is easier to fix.  This macro
just divides the machine-dependent offset OFFSET_OF_CODE by the
machine-independent scale factor sizeof(UNIT), as required for bug
for bug compatibility with the scaling of pc's in gprof.c.  UNIT is
the type of a profiling counter, and its size has nothing to do with
the correct scale factor except both are usually 2.
2002-02-21 07:12:57 +00:00
mike
630fb4534b Use new ID scheme.
Fix env(1)'s exit status to conform with SUSv3.

Submitted by:	Tim Robbins <tim@robbins.dropbear.id.au>
MFC after:	2 weeks
2002-02-21 02:17:57 +00:00
cjc
1b7c0a19e3 make(1) claims to ignore the remainder of a conditional once its value
has been determined similar to C. That is, one expects a construction
like,

.if defined(TEST) && (${TEST:L} == "test")

Never to generate an error since the second expression should never be
evaluated when TEST is undefined.

However, this was not the case. The above fails with the current
make(1) if TEST is undefined. This patch fixes the above and many
similar cases.

PR:		bin/34032
Submitted by:	Alan Eldridge <alane@geeksrus.net>
MFC after:	1 week
2002-02-20 14:31:19 +00:00
imp
60cc340d82 Fixed divots that I created when I moved prototypes of group_from_gid
and user_from_uid to grp.h and pwd.h.  Update the man pages.

Submitted by: David Malone
Pointy hat to: imp
2002-02-19 00:05:59 +00:00
mike
bcee06d42c o Move NTOHL() and associated macros into <sys/param.h>. These are
deprecated in favor of the POSIX-defined lowercase variants.
o Change all occurrences of NTOHL() and associated marcros in the
  source tree to use the lowercase function variants.
o Add missing license bits to sparc64's <machine/endian.h>.
  Approved by: jake
o Clean up <machine/endian.h> files.
o Remove unused __uint16_swap_uint32() from i386's <machine/endian.h>.
o Remove prototypes for non-existent bswapXX() functions.
o Include <machine/endian.h> in <arpa/inet.h> to define the
  POSIX-required ntohl() family of functions.
o Do similar things to expose the ntohl() family in libstand, <netinet/in.h>,
  and <sys/param.h>.
o Prepend underscores to the ntohl() family to help deal with
  complexities associated with having MD (asm and inline) versions, and
  having to prevent exposure of these functions in other headers that
  happen to make use of endian-specific defines.
o Create weak aliases to the canonical function name to help deal with
  third-party software forgetting to include an appropriate header.
o Remove some now unneeded pollution from <sys/types.h>.
o Add missing <arpa/inet.h> includes in userland.

Tested on:	alpha, i386
Reviewed by:	bde, jake, tmm
2002-02-18 20:35:27 +00:00
gshapiro
730b12a9a9 Update build infrastructure for sendmail 8.12. 2002-02-17 22:05:07 +00:00
jedgar
c83f3ada88 Ensure err is a useful value to prevent using fputs() with a NULL stream.
MFC after:	1 week
2002-02-17 20:53:56 +00:00
deischen
030cf60aac Don't rely on <sys/signal.h> to include <sys/ucontext.h>. 2002-02-17 17:19:14 +00:00
obrien
77f77a885c Add support such that if LD_TRACE_LOADED_OBJECTS_ALL is defined to a
non-empty string in the environment; we indicate which objects caused
each object to be loaded.

PR:		30908
Submitted-by:	Mike Meyer <mwm@mired.org>
2002-02-17 07:04:32 +00:00
jmallett
1535c1638d This commit was generated by cvs2svn to compensate for changes in r90744,
which included commits to RCS files with non-trunk default branches.
2002-02-16 21:27:48 +00:00
jmallett
8fcbd90d54 Import OpenBSD m4 as of today. 2002-02-16 21:27:48 +00:00
des
4c0d10cd1b If downloading to a temporary file, set the timestamp on the temp file, not
on the file we're replacing.

PR:		bin/34992
Submitted by:	Shunichiro Ariura <syun1rou@blackshell.org>
MFC after:	1 week
2002-02-16 14:02:57 +00:00
mike
4a18afa329 Add header to prototype exit(3). Fix a style bug. 2002-02-16 09:25:49 +00:00
mike
d2b2c3be4c Un-deprecate the -p option. We now have two ways to output to stdout:
`-o /dev/stdout' or `-p'.

Requested by:	grog, nectar
2002-02-16 09:18:33 +00:00
phantom
ed060c43f1 * Don't SEGFAULT on attempt to write nothing (if no source files were
specified)
* Don't print currline if it's NULL

MFC after: 3 days
2002-02-13 13:00:33 +00:00
yoichi
b107f092ae Add myself. 2002-02-11 13:13:02 +00:00
roam
d89b782d63 Describe the '+' option in the -t trace string.
PR:		34668
Submitted by:	Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
Reviewed by:	dd
Approved by:	dd
MFC after:	1 week
2002-02-11 09:03:34 +00:00
markm
31d81e4fbc Remove NO_WERRORs and WARNS=n's. To be revisited after GCC3. 2002-02-08 23:07:37 +00:00
markm
ae2558974f Remove leaf node WARNS?=2 (that mainly I added). This should
help the GCC3 transition and CURRENT in general.
2002-02-08 22:31:43 +00:00
des
3592b29f5e Fix the code that selects the default binary type if the actual type can't
be determined.

PR:		bin/34698
Submitted by:	(in part) Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
MFC after:	1 weeks
2002-02-08 12:42:55 +00:00
peter
2a6db49cc9 GRR. Unbreak WARNS=2.
cc1: warnings being treated as errors
usr.bin/finger/lprint.c: In function `lprint':
usr.bin/finger/lprint.c:191: warning: precision is not type int (arg 2)
*** Error code 1

Pointy hat to:	markm
2002-02-08 07:52:51 +00:00
peter
a0f58ee853 GRR. This was not WARNS=2 clean. You cannot printf a 'long' with
'%qd'.

usr.bin/du/du.c:288: warning: long long int format, long int arg (arg 2)

Pointy hat to:	markm
2002-02-08 07:49:13 +00:00
sobomax
d491ac2a48 Inspect ELF header and reject any non-FreeBSD shared objects.
MFC after:	2 weeks
2002-02-08 04:08:57 +00:00
gallatin
58efc3d4e6 add missing <string.h> to give strcpy() a prototype 2002-02-08 03:01:03 +00:00
maxim
640330c991 Add myself.
Reviewed by:	ru
Approved by:	ru
2002-02-07 09:24:44 +00:00
markm
b64b87af19 Backout -Werror protection. No need to walk all over the upcoming
GCC3 changeover.
2002-02-06 18:13:12 +00:00
des
d7b064e238 ANSIfy and remove some dead code.
Sponsored by:	DARPA, NAI Labs
2002-02-06 15:26:07 +00:00
des
0f2cb9b020 Apply the following mechanical transformations in preparation for
ansification and constification:

    s{\s+__P\((\(.*?\))\)}{$1}g;
    s{\(\s+}{\(}g;
    s{\s+\)}{\)}g;
    s{\s+,}{,}g;
    s{(\s+)(for|if|switch|while)\(}{$1$2 \(}g;
    s{return ([^\(].*?);}{return ($1);}g;
    s{([\w\)])([!=+/\*-]?=)([\w\(+-])}{$1 $2 $3}g;
    s{\s+$}{\n};g

Also add $FreeBSD$ where needed.

MFC after:	1 week
2002-02-06 13:30:31 +00:00
alfred
4b6dfb0371 The clnt_create(KEYSERVSOCK, CRYPT_PROG, CRYPT_VERS, "unix") hacks
were removed and replaced them with clnt_tp_create, now the af_local
support is fixed.

I also removed the hack how rpcinfo contacted rpcbind, now we can
relay on clnt_tp_create create the client-handle for us.  Only
rpcbind itself needs a hardcoded socket-path.

Submitted by: mbr

Also add $FreeBSD
2002-02-05 19:26:04 +00:00
sobomax
0a68f500fa Allow ldd(1) be used on shared libraries in addition to executables. 2002-02-04 10:33:48 +00:00
sobomax
c61b7216e4 GC meaningless assignment.
MFC after:	3 days
2002-02-04 10:23:23 +00:00
kris
19c38bbaee Silence some WFORMAT=1 warnings 2002-02-04 02:37:09 +00:00
kris
b2cbfe0830 Mark a function as __printflike()
MFC after:	1 week
2002-02-04 02:12:49 +00:00
mike
c41b30278b Use new ID scheme.
Fix a bug that caused .br domains to be queried twice, by only
recursively following ARIN referrals when querying ARIN.

PR:		34291
MFC after:	7 days
2002-02-03 07:35:32 +00:00
sobomax
539011fe16 Complete bzip2-1.0.2 import.
MFC in:		14 days
2002-02-01 16:33:40 +00:00
mike
c48bdad502 Add -a option (SUSv3) to split(1).
Submitted by:	Tim J. Robbins <tim@robbins.dropbear.id.au>
MFC after:	1 month
2002-02-01 06:55:18 +00:00
des
55cd9bb2e3 Still with asbestos longjohns on, completely PAMify login(1) and remove
code made redundant by various PAM modules (primarily pam_unix(8)).

Sponsored by:	DARPA, NAI Labs
2002-01-30 19:10:21 +00:00
des
27f51d26ae Back out rev 1.78, which is incorrect now that the PAM modules have been
fixed to accept a NULL PAM_RHOST.
2002-01-29 23:27:54 +00:00