Commit Graph

73652 Commits

Author SHA1 Message Date
tanimura
8e99f98c30 Push down Giant for setpgid(), setsid() and aio_daemon(). Giant protects only
malloc(9) and free(9).
2002-04-20 12:02:52 +00:00
charnier
9aa77c9a51 Use `The .Nm utility' 2002-04-20 11:58:12 +00:00
benno
6398b719da Replace inline asm with it's inline function wrapper. 2002-04-20 10:06:22 +00:00
ache
d52820250b Fix TZ & TERM handling for use_login case of rev. 1.24 2002-04-20 09:56:10 +00:00
ache
afa10e39f0 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()
2002-04-20 09:26:43 +00:00
nsouch
aa8fad84c7 Fix controller in SW mode and See also + first appeared in 4.5. 2002-04-20 09:12:09 +00:00
arr
fc47ac5230 - Create a ``zero fill'' constructor for uma_zcreate's ctor argument.
Inspired by: jake@
2002-04-20 09:04:58 +00:00
obrien
461d0c284a reorg a little. 2002-04-20 08:41:55 +00:00
jake
9b23ddc4e4 I decided I don't want to be part of this. 2002-04-20 08:24:11 +00:00
alc
38f65a979e Reintroduce locking on accesses to vm_object_list. 2002-04-20 07:23:22 +00:00
ache
03b9bf0c44 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).
2002-04-20 05:44:36 +00:00
bp
ecdbecd6df 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
2002-04-20 05:35:02 +00:00
bp
02f57806b2 s/nwserv/nwfs/
Submitted by:	Victor Sudakov <sudakov@sibptus.tomsk.ru>
MFC after:	1 week
2002-04-20 05:04:21 +00:00
bp
6e44e545bd Describe situation where manual 'ifconfig xx0 up' required.
Submitted by:	Victor Sudakov <sudakov@sibptus.tomsk.ru>
2002-04-20 05:00:48 +00:00
ache
4b10c08312 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
2002-04-20 04:38:07 +00:00
jmallett
4f9479afd8 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
2002-04-20 03:56:12 +00:00
jmallett
95b590a535 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
2002-04-20 03:33:40 +00:00
jmallett
b6e4ad7b8c 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
2002-04-20 02:33:30 +00:00
mike
1eba90b273 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.
2002-04-20 02:26:43 +00:00
mike
075631f1e6 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>.
2002-04-20 02:24:35 +00:00
ache
f60162a8a4 Remove <ctype.h> - not needed 2002-04-20 02:18:54 +00:00
ache
e0b7b0dec2 Prevent sign extension (again) 2002-04-20 02:04:58 +00:00
tjr
990ab5d7e9 Allow space between -a and its argument. Honour locale collating order
by using strcoll() instead of strcmp().

PR:		36270
Reviewed by:	mike
2002-04-20 01:55:19 +00:00
jmallett
632f89218f 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)
2002-04-20 01:49:10 +00:00
marcel
bc0f0eccd7 Don't put a line break in string literals. GCC 3.1 complains and GCC
3.2 drops the ball.
2002-04-20 01:42:56 +00:00
rwatson
82078247aa 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
2002-04-20 01:37:08 +00:00
marcel
868dcb629b Don't put a line break in string literals. GCC 3.1 complains and GCC
3.2 drops the ball.
2002-04-20 01:35:45 +00:00
obrien
e7007d1009 It is easier for me to debug with -I's at the rear. 2002-04-20 01:27:28 +00:00
rwatson
18e5fa0b85 Spelling fix for comment. 2002-04-20 01:14:25 +00:00
mike
41f3bd2970 Comment out and mark broken the hea and hfa devices until someone has
time to fix them.
2002-04-20 00:51:30 +00:00
arr
0d0e45d421 - Nuke small sgi ifdef bits. 2002-04-20 00:39:32 +00:00
jmallett
36c8c29357 Bump WARNS to 4. 2002-04-20 00:20:54 +00:00
jmallett
fdc0321317 In the case where we can't open /dev/tty, fall back to -t behaviour.
Submitted by:	fenner
2002-04-19 23:58:00 +00:00
jmallett
37013630b0 Bump WARNS to 4. 2002-04-19 23:46:45 +00:00
charnier
75f0c117d4 Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
jmallett
6e68d376c4 Compound two fprintf(3)s into 1 using string concatenation. 2002-04-19 23:41:56 +00:00
mike
6c18eb97f0 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
2002-04-19 23:36:38 +00:00
jmallett
d8e45cd17c 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
2002-04-19 23:28:54 +00:00
charnier
a5db8b3eca Use `The .Nm utility'. Introduce options with well known sentence. 2002-04-19 23:23:28 +00:00
charnier
6dc0b5ee80 Add .Pp before enumerating options 2002-04-19 23:18:18 +00:00
charnier
79bef1e3a7 Use `The .Nm utility' 2002-04-19 23:06:29 +00:00
alfred
a3279139e5 Clean up:
Comment run_filter() to explain what it does.

Remove chatty comments.

void busdma_swi() { }  -> void busdma_swi(void) { }
2002-04-19 22:58:09 +00:00
semenu
7b890f7cab Move tx(4) driver to sys/dev/tx. BTW split hardware structures and constants
into if_txreg.h.

MFC after:	1 week
2002-04-19 22:43:57 +00:00
imp
cfebdf37eb 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.
2002-04-19 22:28:09 +00:00
arr
22afa89294 - Nuke some more #ifdef sun related sections. 2002-04-19 21:38:43 +00:00
arr
494a5e9508 - Nuke some #ifdef sun4m code; it hasn't been updated in 4 years and is not
being used.
2002-04-19 20:02:03 +00:00
ache
d02c59701e Prevent sign extension on characters with 8bit set 2002-04-19 19:43:46 +00:00
gad
7b2ff4395f 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
2002-04-19 19:33:24 +00:00
gad
0c006aeb46 Remove a safety-setting line which is unnecessary now that the previous
line is using strlcpy instead of strncpy.

MFC after:	4 days
2002-04-19 18:46:10 +00:00
gad
b34a01bb94 Fix 'deamon' -> 'daemon' in a comment.
Obtained from:	NetBSD, OpenBSD
MFC after:	4 days
2002-04-19 18:36:56 +00:00