]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoo Use our own elf2aout now.
David E. O'Brien [Sun, 21 Apr 2002 02:37:55 +0000 (02:37 +0000)]
o Use our own elf2aout now.
o Generalize a little.

22 years agoDon't load the netgraph line discipline. When it's in use, TIOCMGET
Brian Somers [Sun, 21 Apr 2002 02:00:29 +0000 (02:00 +0000)]
Don't load the netgraph line discipline.  When it's in use, TIOCMGET
fails and on loss of carrier, the device doesn't become selectable with
0 bytes to read.

Problem reported by: ache

22 years ago- Nuke some more not needed #ifdef cruft.
Andrew R. Reiter [Sun, 21 Apr 2002 01:41:05 +0000 (01:41 +0000)]
- Nuke some more not needed #ifdef cruft.

22 years agoFor the P function, the newline must be considered a part of the pattern
Juli Mallett [Sun, 21 Apr 2002 01:27:05 +0000 (01:27 +0000)]
For the P function, the newline must be considered a part of the pattern
space, so when printing it, don't let the pattern space and the output run
into eachother by omitting the \n when printing.

22 years agoAdd sed(1) tests for proper behaviour of the G option as fixed in PR 26152,
Juli Mallett [Sun, 21 Apr 2002 01:04:03 +0000 (01:04 +0000)]
Add sed(1) tests for proper behaviour of the G option as fixed in PR 26152,
and for proper behaviour of some sed functions given a nil pattern space,
as fixed in PR 34813.

The test for G was based on the test in the PR.  The nil pattern space test
is slightly different as we need to get *some* output, as the core dump will
also produce no output (old behaviour) and turn up falsely that the utility
is working fine.

22 years agoCheck to see if make(1)'s handling of doubly-defined targets is busted or
Juli Mallett [Sun, 21 Apr 2002 00:41:37 +0000 (00:41 +0000)]
Check to see if make(1)'s handling of doubly-defined targets is busted or
not.  A lot relies on this.

22 years agoOnly exit at the end of a test, exit with the last value of $? that was not 0.
Juli Mallett [Sun, 21 Apr 2002 00:18:29 +0000 (00:18 +0000)]
Only exit at the end of a test, exit with the last value of $? that was not 0.

This way the entire regression test is looked at as a pass/fail, not just one
sub-test.

22 years agoGCC 3.x WARNS: Add a break to the default case.
Marcel Moolenaar [Sat, 20 Apr 2002 21:56:42 +0000 (21:56 +0000)]
GCC 3.x WARNS: Add a break to the default case.

22 years agoUse %zu to print a size_t, not %u and definitely not %d.
Juli Mallett [Sat, 20 Apr 2002 21:37:26 +0000 (21:37 +0000)]
Use %zu to print a size_t, not %u and definitely not %d.

Remove WARNS?=2, as GCC will usually throw a fit right now, and I'm not going
to mix WARNS and NO_WERROR.

Submitted by: fenner

22 years ago.Nm is not required at the begining of this sentence.
Philippe Charnier [Sat, 20 Apr 2002 21:33:10 +0000 (21:33 +0000)]
.Nm is not required at the begining of this sentence.

22 years agoUse `The .Nm utility'. Add section number to .Xr.
Philippe Charnier [Sat, 20 Apr 2002 21:28:47 +0000 (21:28 +0000)]
Use `The .Nm utility'. Add section number to .Xr.

22 years agoImprove the Bzip2 handling.
David E. O'Brien [Sat, 20 Apr 2002 21:20:58 +0000 (21:20 +0000)]
Improve the Bzip2 handling.

Sponsored by: FreeBSD Mall, Inc.

22 years agoNew release notes: UserConfig gone (release note long overdue!), kget(8)
Bruce A. Mah [Sat, 20 Apr 2002 21:19:57 +0000 (21:19 +0000)]
New release notes:  UserConfig gone (release note long overdue!), kget(8)
gone, UDF support added, inetd(8) not run by default, inbound SMTP not
enabled by default.

22 years agoPrint a size_t as %u not %d.
Juli Mallett [Sat, 20 Apr 2002 21:13:00 +0000 (21:13 +0000)]
Print a size_t as %u not %d.

Pointed out by: mike, des's tinderbox

22 years agoAdd a test of variable evaluation and substitution for make(1), as a start
Juli Mallett [Sat, 20 Apr 2002 20:57:00 +0000 (20:57 +0000)]
Add a test of variable evaluation and substitution for make(1), as a start
of tests for it.

22 years agoResolve conflicts from import of post-8.12.3 bug fixes.
Gregory Neil Shapiro [Sat, 20 Apr 2002 20:34:16 +0000 (20:34 +0000)]
Resolve conflicts from import of post-8.12.3 bug fixes.

22 years agoThis commit was generated by cvs2svn to compensate for changes in r95154,
Gregory Neil Shapiro [Sat, 20 Apr 2002 20:31:51 +0000 (20:31 +0000)]
This commit was generated by cvs2svn to compensate for changes in r95154,
which included commits to RCS files with non-trunk default branches.

22 years agoImport of post-8.12.3 bug fixes from vendor repository.
Gregory Neil Shapiro [Sat, 20 Apr 2002 20:31:51 +0000 (20:31 +0000)]
Import of post-8.12.3 bug fixes from vendor repository.

These are being imported for the upcoming FreeBSD 4.6 release.

22 years agoInclude <arpa/inet.h> for prototype of ntohl() used in the N_BADMAG()
Mike Barcroft [Sat, 20 Apr 2002 20:09:29 +0000 (20:09 +0000)]
Include <arpa/inet.h> for prototype of ntohl() used in the N_BADMAG()
macro.

22 years agoRemove files no longer in vendor release from vendor branch.
Gregory Neil Shapiro [Sat, 20 Apr 2002 19:51:37 +0000 (19:51 +0000)]
Remove files no longer in vendor release from vendor branch.

22 years agoReenable the newly unbroken hfa device.
Mike Barcroft [Sat, 20 Apr 2002 19:44:38 +0000 (19:44 +0000)]
Reenable the newly unbroken hfa device.

22 years agoAdd a test for jot(1).
Juli Mallett [Sat, 20 Apr 2002 19:41:30 +0000 (19:41 +0000)]
Add a test for jot(1).

22 years agoTwo more files to keep track of.
Gregory Neil Shapiro [Sat, 20 Apr 2002 19:34:31 +0000 (19:34 +0000)]
Two more files to keep track of.

22 years agoA simple test for join(1) based on tjr's test case for -o 0.
Juli Mallett [Sat, 20 Apr 2002 19:33:23 +0000 (19:33 +0000)]
A simple test for join(1) based on tjr's test case for -o 0.

Partially based on: PR standards/36072

22 years agoChange two KM_COPY()s to bcopy(). This should have been done when the
Mike Barcroft [Sat, 20 Apr 2002 19:27:34 +0000 (19:27 +0000)]
Change two KM_COPY()s to bcopy().  This should have been done when the
KM_* macros were removed.

22 years agoDespite the fact that it is documented in the handbook, the release notes,
Gregory Neil Shapiro [Sat, 20 Apr 2002 19:04:59 +0000 (19:04 +0000)]
Despite the fact that it is documented in the handbook, the release notes,
and UPDATING and has been posted to both freebsd-current and
freebsd-stable, users are still not adding the required smmsp user and
group before doing an installworld.  Therefore, don't let users do an
installworld unless they have followed directions.

Add a new installcheck Makefile target which installworld runs before
actually starting the installation.  This target can be used by other parts
of userland as well.  The first addition to the target is to check for the
smmsp user and group if NO_SENDMAIL isn't defined.

Others may add checks to this target as they see fit.

MFC after: 1 week

22 years agoAdd an exceedingly simple regression test for the file2c program. One would
Juli Mallett [Sat, 20 Apr 2002 19:01:21 +0000 (19:01 +0000)]
Add an exceedingly simple regression test for the file2c program.  One would
hope that it would never regress, but this is a straightforward test, so add
it.

22 years agoIn my continuing crusade to make life better for non-sendmail users, avoid
Gregory Neil Shapiro [Sat, 20 Apr 2002 19:00:11 +0000 (19:00 +0000)]
In my continuing crusade to make life better for non-sendmail users, avoid
the creation of /var/spool/clientmqueue and therefore the need for the
smmsp user and group if NO_SENDMAIL is defined.  This required breaking out
the creation of the directory into a new BSD.sendmail.dist mtree file.

MFC after: 1 week

22 years agoAdd regression tests for parts of xargs(1).
Juli Mallett [Sat, 20 Apr 2002 18:46:33 +0000 (18:46 +0000)]
Add regression tests for parts of xargs(1).

22 years agoAdd a comment regarding the file header, and the mode that the file is created
Juli Mallett [Sat, 20 Apr 2002 18:44:54 +0000 (18:44 +0000)]
Add a comment regarding the file header, and the mode that the file is created
with.

This should be fixed shortly by adding the (desirable) option to set the file
creation mode on the command line.

22 years agoAdd uuencode(1) and uudecode(1) regression test input and output.
Juli Mallett [Sat, 20 Apr 2002 17:58:13 +0000 (17:58 +0000)]
Add uuencode(1) and uudecode(1) regression test input and output.

22 years agoMFi386 1.222. Remove vm_map_growstack and acquisition and release of Giant
Jake Burkholder [Sat, 20 Apr 2002 17:28:08 +0000 (17:28 +0000)]
MFi386 1.222.  Remove vm_map_growstack and acquisition and release of Giant
from trap_pfault.

22 years agoStart adding framework for userland regression tests, and tests for
Juli Mallett [Sat, 20 Apr 2002 17:20:21 +0000 (17:20 +0000)]
Start adding framework for userland regression tests, and tests for
uuencode and uudecode.

22 years agoImplement several of the c99 updates to scanf(3):
Bill Fenner [Sat, 20 Apr 2002 17:00:56 +0000 (17:00 +0000)]
Implement several of the c99 updates to scanf(3):
 - New length modifiers: hh, j, ll, t, z.

Still to do:
 - %C, %S, %lc, %ls (wide character support)
 - %a/%A (exact hex representation of floating-point numbers)

Removed old compatability equivalents:
 - %D for %ld, %O for %lo, %X for %lx, %E and %F for %le & %lf (these
   were buggy anyway, since they should have represented %Le & %Lf).
 - %[unknown uppercase char] for %ld, %[unknown lowercase char] for %d

22 years agoOops, fix an inverted if test.
Dag-Erling Smørgrav [Sat, 20 Apr 2002 16:52:41 +0000 (16:52 +0000)]
Oops, fix an inverted if test.

22 years agoStrip /dev/ from tty name, and clean up the "last login" printout.
Dag-Erling Smørgrav [Sat, 20 Apr 2002 16:44:32 +0000 (16:44 +0000)]
Strip /dev/ from tty name, and clean up the "last login" printout.

Sponsored by: DARPA, NAI Labs

22 years agoCheck the alignment of the stack pointer before copying in windows from the
Jake Burkholder [Sat, 20 Apr 2002 16:23:52 +0000 (16:23 +0000)]
Check the alignment of the stack pointer before copying in windows from the
user stack in response to a failed window fill, allowing the process to be
killed if its wrong.  This caused user programs which misalign their stack
pointer to get stuck in an infinite loop at the kernel-userland boundary,
which is mostly harmless.

The same thing causes a fatal RED state exception on OpenBSD and probably
NetBSD.

Inspired by: art@openbsd.org

22 years agoFix off by one errors in cache flush calls (mostly harmless).
Jake Burkholder [Sat, 20 Apr 2002 15:58:40 +0000 (15:58 +0000)]
Fix off by one errors in cache flush calls (mostly harmless).

22 years agoAdd needed include of tick.h.
Jake Burkholder [Sat, 20 Apr 2002 15:52:53 +0000 (15:52 +0000)]
Add needed include of tick.h.

22 years agosysinstall compiles on sparc64.
Jake Burkholder [Sat, 20 Apr 2002 15:50:32 +0000 (15:50 +0000)]
sysinstall compiles on sparc64.

22 years agoAdd an XXX: linux_uselib() should be using vn_open() rather than invoking
Robert Watson [Sat, 20 Apr 2002 14:43:34 +0000 (14:43 +0000)]
Add an XXX: linux_uselib() should be using vn_open() rather than invoking
VOP_OPEN() and doing lots of manual checking.  This would further
centralize use of the name functions, and once the MAC code is integrated,
meaning few extraneous MAC checks scattered all over the place.  I don't
have time to fix this now, but want to make sure it doesn't get
forgotten.  Anyone interested in fixing this should feel free.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

22 years agoUpdate the email appearing in copyright string.
Semen Ustimenko [Sat, 20 Apr 2002 12:39:41 +0000 (12:39 +0000)]
Update the email appearing in copyright string.

MFC after: 1 day

22 years agoMerge ``&& must be ||'' bug noticed and fixed in OpenBSD. The only ill effect
Semen Ustimenko [Sat, 20 Apr 2002 12:35:38 +0000 (12:35 +0000)]
Merge ``&& must be ||'' bug noticed and fixed in OpenBSD. The only ill effect
was if_baudrate being always 10Mbit.

Obtained from: OpenBSD
MFC after: 1 day

22 years agoUse `The .Nm utility'
Philippe Charnier [Sat, 20 Apr 2002 12:27:18 +0000 (12:27 +0000)]
Use `The .Nm utility'

22 years agologin(3) doesn't care about the controlling terminal any more.
Dag-Erling Smørgrav [Sat, 20 Apr 2002 12:24:20 +0000 (12:24 +0000)]
login(3) doesn't care about the controlling terminal any more.

22 years agoFix for the sshd(8) utmp problem. Previously, login(3) would ignore the tty
Dag-Erling Smørgrav [Sat, 20 Apr 2002 12:23:04 +0000 (12:23 +0000)]
Fix for the sshd(8) utmp problem.  Previously, login(3) would ignore the tty
named by its argument and use ttyslot(3) instead to determine what slot to
use.  The problem is that sshd(8) calls pam_open_session(3) before forking
the child (as it should), at which point it does not have a controlling
terminal.  Also, ttyslot(3) is very crude as it assumes fd 0, 1 or 2 refers
to the controlling terminal, which is usually (but not always) the case.

Instead of using ttyslot(3) to determine the slot number, look up the
specified tty in /etc/ttys ourselves (this is what ttyslot(3) does anyway).

(perforce change 9969)

Sponsored by: DARPA, NAI Labs

22 years agoUse `The .Nm utility'
Philippe Charnier [Sat, 20 Apr 2002 12:18:28 +0000 (12:18 +0000)]
Use `The .Nm utility'

22 years agoPush down Giant for setpgid(), setsid() and aio_daemon(). Giant protects only
Seigo Tanimura [Sat, 20 Apr 2002 12:02:52 +0000 (12:02 +0000)]
Push down Giant for setpgid(), setsid() and aio_daemon(). Giant protects only
malloc(9) and free(9).

22 years agoUse `The .Nm utility'
Philippe Charnier [Sat, 20 Apr 2002 11:58:12 +0000 (11:58 +0000)]
Use `The .Nm utility'

22 years agoReplace inline asm with it's inline function wrapper.
Benno Rice [Sat, 20 Apr 2002 10:06:22 +0000 (10:06 +0000)]
Replace inline asm with it's inline function wrapper.

22 years agoFix TZ & TERM handling for use_login case of rev. 1.24
Andrey A. Chernov [Sat, 20 Apr 2002 09:56:10 +0000 (09:56 +0000)]
Fix TZ & TERM handling for use_login case of rev. 1.24

22 years ago1) Surprisingly, "CheckMail" handling code completely removed from this
Andrey A. Chernov [Sat, 20 Apr 2002 09:26:43 +0000 (09:26 +0000)]
1) Surprisingly, "CheckMail" handling code completely removed from this
version, so documented "CheckMail" option exists but does nothing.
Bring it back to life adding code back.

2) Cosmetique. Reduce number of args in do_setusercontext()

22 years agoFix controller in SW mode and See also + first appeared in 4.5.
Nicolas Souchu [Sat, 20 Apr 2002 09:12:09 +0000 (09:12 +0000)]
Fix controller in SW mode and See also + first appeared in 4.5.

22 years ago- Create a ``zero fill'' constructor for uma_zcreate's ctor argument.
Andrew R. Reiter [Sat, 20 Apr 2002 09:04:58 +0000 (09:04 +0000)]
- Create a ``zero fill'' constructor for uma_zcreate's ctor argument.

Inspired by: jake@

22 years agoreorg a little.
David E. O'Brien [Sat, 20 Apr 2002 08:41:55 +0000 (08:41 +0000)]
reorg a little.

22 years agoI decided I don't want to be part of this.
Jake Burkholder [Sat, 20 Apr 2002 08:24:11 +0000 (08:24 +0000)]
I decided I don't want to be part of this.

22 years agoReintroduce locking on accesses to vm_object_list.
Alan Cox [Sat, 20 Apr 2002 07:23:22 +0000 (07:23 +0000)]
Reintroduce locking on accesses to vm_object_list.

22 years ago1) Fix overlook in my prev. commit - forget HAVE_ prefix in one place in old
Andrey A. Chernov [Sat, 20 Apr 2002 05:44:36 +0000 (05:44 +0000)]
1) Fix overlook in my prev. commit - forget HAVE_ prefix in one place in old
code merge.

2) In addition honor "timezone" and "term" capabilities from login.conf,
not overwrite them once they set (they are TZ and TERM variables).

22 years agoAdd character translation table between Unix and NetWare according
Boris Popov [Sat, 20 Apr 2002 05:35:02 +0000 (05:35 +0000)]
Add character translation table between Unix and NetWare according
to Sweden standards.

Submitted by: Roger Olofsson <roger.olofsson@kommun.engelholm.se>
MFC after: 1 week

22 years agos/nwserv/nwfs/
Boris Popov [Sat, 20 Apr 2002 05:04:21 +0000 (05:04 +0000)]
s/nwserv/nwfs/

Submitted by: Victor Sudakov <sudakov@sibptus.tomsk.ru>
MFC after: 1 week

22 years agoDescribe situation where manual 'ifconfig xx0 up' required.
Boris Popov [Sat, 20 Apr 2002 05:00:48 +0000 (05:00 +0000)]
Describe situation where manual 'ifconfig xx0 up' required.

Submitted by: Victor Sudakov <sudakov@sibptus.tomsk.ru>

22 years agoPlease repeat after me: setusercontext() modifies _current_ environment, but
Andrey A. Chernov [Sat, 20 Apr 2002 04:38:07 +0000 (04:38 +0000)]
Please repeat after me: setusercontext() modifies _current_ environment, but
sshd uses separate child_env. So, to make setusercontext() really does
something, environment must be switched before call and passed to child_env
back after it.

The error here was that modified environment not passed back to child_env,
so all variables that setusercontext() adds are lost, including ones from
~/.login_conf

22 years agoIn the BUGS section, mention that the ballooning of size mentioned here is
Juli Mallett [Sat, 20 Apr 2002 03:56:12 +0000 (03:56 +0000)]
In the BUGS section, mention that the ballooning of size mentioned here is
with regard to the traditional algorithm.

Suggested by: obrien
MFC after: 1 week

22 years agoUse fwrite(3) to write out the decoded information, as the b64 decoding stuff
Juli Mallett [Sat, 20 Apr 2002 03:33:40 +0000 (03:33 +0000)]
Use fwrite(3) to write out the decoded information, as the b64 decoding stuff
won't NUL terminate the string for us, and so we're liable to pick up trailing
garbage, possibly tons of it.

Pointed out by: obrien
MFC after: 3 days

22 years agobase64_decode() was feeding \r and \n to the decoding function, and that
Juli Mallett [Sat, 20 Apr 2002 02:33:30 +0000 (02:33 +0000)]
base64_decode() was feeding \r and \n to the decoding function, and that
was causing output to be corrupted.

Pointed out by: obrien
MFC after: 3 days

22 years agoAdd typedef of sa_family_t to <sys/un.h>, per POSIX and X/Open. Hide
Mike Barcroft [Sat, 20 Apr 2002 02:26:43 +0000 (02:26 +0000)]
Add typedef of sa_family_t to <sys/un.h>, per POSIX and X/Open.  Hide
portions of <sys/un.h> when a standard has been requested.

22 years agoAdd sa_family_t type to <sys/_types.h> and typedefs to <netinet/in.h>
Mike Barcroft [Sat, 20 Apr 2002 02:24:35 +0000 (02:24 +0000)]
Add sa_family_t type to <sys/_types.h> and typedefs to <netinet/in.h>
and <sys/socket.h>.  Previously, sa_family_t was only typedef'd in
<sys/socket.h>.

22 years agoRemove <ctype.h> - not needed
Andrey A. Chernov [Sat, 20 Apr 2002 02:18:54 +0000 (02:18 +0000)]
Remove <ctype.h> - not needed

22 years agoPrevent sign extension (again)
Andrey A. Chernov [Sat, 20 Apr 2002 02:04:58 +0000 (02:04 +0000)]
Prevent sign extension (again)

22 years agoAllow space between -a and its argument. Honour locale collating order
Tim J. Robbins [Sat, 20 Apr 2002 01:55:19 +0000 (01:55 +0000)]
Allow space between -a and its argument. Honour locale collating order
by using strcoll() instead of strcmp().

PR: 36270
Reviewed by: mike

22 years agoCrank WARNS.
Juli Mallett [Sat, 20 Apr 2002 01:49:10 +0000 (01:49 +0000)]
Crank WARNS.

Cast sizeof() to (int), as it's being compared against an int, not a size_t.
If i is changed to a size_t, it means the logic must be slightly changed later
in the flow, where --i is checked to be >= 0.  I am not sure I want to make a
logic change to account for clearing up a warning, when an aesthetic one will
keep from modifying the logic.

Other harmless casts, that I think I've made in the right directions.

Make gpbc() an inline function, rather than an obfuscated macro, make its
scratch space local, rather than global.  The previous macro used a dirty
hack (logical AND in place of a conditional) which would lead GCC to throw
a fit (rightly so) as the logical check, as well as the incrementation of
a variable, were not used for anything.

const'ify a few places where gcc3 yells. xstrdup() some global consts in
places where we xstrdup() when not using consts, but tried to assign them
to non-consts before.

Don't use execv(2) if we don't have the kind of arguments it wants.

Reviewed by:    asmodai obrien tjr
Submitted by:   tjr (a gcc3 build log)

22 years agoDon't put a line break in string literals. GCC 3.1 complains and GCC
Marcel Moolenaar [Sat, 20 Apr 2002 01:42:56 +0000 (01:42 +0000)]
Don't put a line break in string literals. GCC 3.1 complains and GCC
3.2 drops the ball.

22 years agoImprove style consistency of vfs_syscalls.c by converting the style used
Robert Watson [Sat, 20 Apr 2002 01:37:08 +0000 (01:37 +0000)]
Improve style consistency of vfs_syscalls.c by converting the style used
in various extattr_*() calls to match the rest of the file.  Originally,
these bits at the end looked more like style(9).  This patch was submitted
by green by way of the TrustedBSD MAC tree, and I fixed a few problems
with it on the way through.  Someone with more time on their hands should
convert the entire file to style(9); this commit is for diff reduction
purposes.

Submitted by: green
Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

22 years agoDon't put a line break in string literals. GCC 3.1 complains and GCC
Marcel Moolenaar [Sat, 20 Apr 2002 01:35:45 +0000 (01:35 +0000)]
Don't put a line break in string literals. GCC 3.1 complains and GCC
3.2 drops the ball.

22 years agoIt is easier for me to debug with -I's at the rear.
David E. O'Brien [Sat, 20 Apr 2002 01:27:28 +0000 (01:27 +0000)]
It is easier for me to debug with -I's at the rear.

22 years agoSpelling fix for comment.
Robert Watson [Sat, 20 Apr 2002 01:14:25 +0000 (01:14 +0000)]
Spelling fix for comment.

22 years agoComment out and mark broken the hea and hfa devices until someone has
Mike Barcroft [Sat, 20 Apr 2002 00:51:30 +0000 (00:51 +0000)]
Comment out and mark broken the hea and hfa devices until someone has
time to fix them.

22 years ago- Nuke small sgi ifdef bits.
Andrew R. Reiter [Sat, 20 Apr 2002 00:39:32 +0000 (00:39 +0000)]
- Nuke small sgi ifdef bits.

22 years agoBump WARNS to 4.
Juli Mallett [Sat, 20 Apr 2002 00:20:54 +0000 (00:20 +0000)]
Bump WARNS to 4.

22 years agoIn the case where we can't open /dev/tty, fall back to -t behaviour.
Juli Mallett [Fri, 19 Apr 2002 23:58:00 +0000 (23:58 +0000)]
In the case where we can't open /dev/tty, fall back to -t behaviour.

Submitted by: fenner

22 years agoBump WARNS to 4.
Juli Mallett [Fri, 19 Apr 2002 23:46:45 +0000 (23:46 +0000)]
Bump WARNS to 4.

22 years agoUse `The .Nm utility'
Philippe Charnier [Fri, 19 Apr 2002 23:44:58 +0000 (23:44 +0000)]
Use `The .Nm utility'

22 years agoCompound two fprintf(3)s into 1 using string concatenation.
Juli Mallett [Fri, 19 Apr 2002 23:41:56 +0000 (23:41 +0000)]
Compound two fprintf(3)s into 1 using string concatenation.

22 years agoFix compiling of acpica when debugging is enabled. In the previous
Mike Barcroft [Fri, 19 Apr 2002 23:36:38 +0000 (23:36 +0000)]
Fix compiling of acpica when debugging is enabled.  In the previous
revision, two getenv()s were accidentally changed to use testenv().

Pointy hat to: mux

22 years agoAfter 3 months...
Juli Mallett [Fri, 19 Apr 2002 23:28:54 +0000 (23:28 +0000)]
After 3 months...

Merge xargs(1) with that of xMach.

Bring in xargs(1) changes to add -L and -I as per the Single Unix Specification
version 3.  Proper exit status numbers are implemented, and the manual page has
been updated to reflect reality.

The code has been ANSIfied, and a new file has been added to xargs(1) to do the
substring substitution as SUSv3 requires.

Traditional behaviour should not be affected, use of -J should be deprecated
in favor of the more portable -I (though -J has been left, for now).

Submitted by: me, tjr (the exit status stuff)
Obtained from: xMach

22 years agoUse `The .Nm utility'. Introduce options with well known sentence.
Philippe Charnier [Fri, 19 Apr 2002 23:23:28 +0000 (23:23 +0000)]
Use `The .Nm utility'. Introduce options with well known sentence.

22 years agoAdd .Pp before enumerating options
Philippe Charnier [Fri, 19 Apr 2002 23:18:18 +0000 (23:18 +0000)]
Add .Pp before enumerating options

22 years agoUse `The .Nm utility'
Philippe Charnier [Fri, 19 Apr 2002 23:06:29 +0000 (23:06 +0000)]
Use `The .Nm utility'

22 years agoClean up:
Alfred Perlstein [Fri, 19 Apr 2002 22:58:09 +0000 (22:58 +0000)]
Clean up:

Comment run_filter() to explain what it does.

Remove chatty comments.

void busdma_swi() { }  -> void busdma_swi(void) { }

22 years agoMove tx(4) driver to sys/dev/tx. BTW split hardware structures and constants
Semen Ustimenko [Fri, 19 Apr 2002 22:43:57 +0000 (22:43 +0000)]
Move tx(4) driver to sys/dev/tx. BTW split hardware structures and constants
into if_txreg.h.

MFC after: 1 week

22 years agoMake this build on 4.x machines again (building a -current kernel on a
Warner Losh [Fri, 19 Apr 2002 22:28:09 +0000 (22:28 +0000)]
Make this build on 4.x machines again (building a -current kernel on a
-stable machine via the old-school methods):

Use __FreeBSD_version in preference to __FreeBSD__ >= N where possible.
Define a single variable mythread which is set to curproc or curthread
depending on the OS version (with a comment saying it is a white lie on
4.x since it really is a proc).

NB: __FreeBSD__ is the OS level of the host machine, not the target,
and should never be used, if possible, as __FreeBSD__ >= N.

22 years ago- Nuke some more #ifdef sun related sections.
Andrew R. Reiter [Fri, 19 Apr 2002 21:38:43 +0000 (21:38 +0000)]
- Nuke some more #ifdef sun related sections.

22 years ago- Nuke some #ifdef sun4m code; it hasn't been updated in 4 years and is not
Andrew R. Reiter [Fri, 19 Apr 2002 20:02:03 +0000 (20:02 +0000)]
- Nuke some #ifdef sun4m code; it hasn't been updated in 4 years and is not
  being used.

22 years agoPrevent sign extension on characters with 8bit set
Andrey A. Chernov [Fri, 19 Apr 2002 19:43:46 +0000 (19:43 +0000)]
Prevent sign extension on characters with 8bit set

22 years agoChange lpd to recognize the '-s' parameter as a preferred synonym
Garance A Drosehn [Fri, 19 Apr 2002 19:33:24 +0000 (19:33 +0000)]
Change lpd to recognize the '-s' parameter as a preferred synonym
for what is currently the '-p' parameter.  '-s' is what NetBSD
used (and they implemented it before I added -p in FreeBSD), and
it also matches the '-s' option in syslogd.  Someone in OpenBSD
land had also talked about adding a '-s' option, but it hasn't
happened yet.

MFC after: 5 days

22 years agoRemove a safety-setting line which is unnecessary now that the previous
Garance A Drosehn [Fri, 19 Apr 2002 18:46:10 +0000 (18:46 +0000)]
Remove a safety-setting line which is unnecessary now that the previous
line is using strlcpy instead of strncpy.

MFC after: 4 days

22 years agoFix 'deamon' -> 'daemon' in a comment.
Garance A Drosehn [Fri, 19 Apr 2002 18:36:56 +0000 (18:36 +0000)]
Fix 'deamon' -> 'daemon' in a comment.

Obtained from: NetBSD, OpenBSD
MFC after: 4 days

22 years agoAdd a little detail to the syslog-msg that comes up when lpd can not
Garance A Drosehn [Fri, 19 Apr 2002 18:28:35 +0000 (18:28 +0000)]
Add a little detail to the syslog-msg that comes up when lpd can not
execute a given filter.

MFC after: 4 days

22 years agoAdd the previously committed usb(4) manual pages to the build.
Tom Rhodes [Fri, 19 Apr 2002 18:24:03 +0000 (18:24 +0000)]
Add the previously committed usb(4) manual pages to the build.

PR: 27919
MFC after: 3 days

22 years agoAdd usb(4) manual pages.
Tom Rhodes [Fri, 19 Apr 2002 18:18:11 +0000 (18:18 +0000)]
Add usb(4) manual pages.

PR: 27919
Obtained from: NetBSD
MFC after: 3 days