]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
23 years agoFix a grammar bogon.
schweikh [Thu, 26 Apr 2001 17:16:59 +0000 (17:16 +0000)]
Fix a grammar bogon.

23 years agoBring in `-h' compatability option and its alias `-n' to match NetBSD and GNU
sobomax [Thu, 26 Apr 2001 17:15:57 +0000 (17:15 +0000)]
Bring in `-h' compatability option and its alias `-n' to match NetBSD and GNU
semantics.

style(9) Reviewed by:
Obtained from: NetBSD

23 years agoBring in some bugfixes from NetBSD. I'm going to make a more
iedowse [Thu, 26 Apr 2001 17:05:55 +0000 (17:05 +0000)]
Bring in some bugfixes from NetBSD. I'm going to make a more
extensive pass through the rpcbind code soon, but I might as well
bring these in now.

- (NetBSD util.c r1.5) Move the initialisation of `tbuf' to avoid
  a case where it could end up containing junk from the stack. This
  should address the issue in PR bin/26806.
- (NetBSD util.c r1.6) Don't `merge' AF_LOCAL addresses, fix a few
  memory leaks.

PR: bin/26806
Submitted by: Martin Blapp <mb@imp.ch>
Obtained from: NetBSD

23 years agoFix the definitions for memory bank sizes, which I somehow got wrong.
wpaul [Thu, 26 Apr 2001 16:40:45 +0000 (16:40 +0000)]
Fix the definitions for memory bank sizes, which I somehow got wrong.
The constant I was using was correct, but I mislabeled it as 256K when
it should have been 512K. This doesn't actually change the code, but
it clarifies things somewhat.

Submitted by: Chuck Cranor <chuck@research.att.com>

23 years agoRemove a leading underscore that prevented I386_CPU kernels from
jake [Thu, 26 Apr 2001 13:57:03 +0000 (13:57 +0000)]
Remove a leading underscore that prevented I386_CPU kernels from
compiling.

Submitted by: Alexander N. Kabaev <ak03@gte.com>
PR: kern/26858

23 years ago"Portmapper" -> "Rpcbind" in a comment.
alex [Thu, 26 Apr 2001 13:43:02 +0000 (13:43 +0000)]
"Portmapper" -> "Rpcbind" in a comment.

23 years ago-lposix1e is dead.
ru [Thu, 26 Apr 2001 13:33:00 +0000 (13:33 +0000)]
-lposix1e is dead.

23 years agoFix some quotes and mention that it's usually necessary to train
brian [Thu, 26 Apr 2001 13:10:59 +0000 (13:10 +0000)]
Fix some quotes and mention that it's usually necessary to train
your modem to the correct speed when setting up an incoming getty.

23 years agoFix usage of GROFF_BIN_PATH.
ru [Thu, 26 Apr 2001 12:29:12 +0000 (12:29 +0000)]
Fix usage of GROFF_BIN_PATH.

23 years agoAdded missing no's to the -o options list.
ru [Thu, 26 Apr 2001 12:05:23 +0000 (12:05 +0000)]
Added missing no's to the -o options list.
Fixed markup.

23 years agomdoc(7) police: fix markup.
ru [Thu, 26 Apr 2001 11:47:49 +0000 (11:47 +0000)]
mdoc(7) police: fix markup.

23 years ago... and do it make(1) way.
ru [Thu, 26 Apr 2001 11:14:50 +0000 (11:14 +0000)]
... and do it make(1) way.

23 years agoRemove XXX_BROKEN_GCC from the Makefile.
asmodai [Thu, 26 Apr 2001 09:44:41 +0000 (09:44 +0000)]
Remove XXX_BROKEN_GCC from the Makefile.
This compiles just fine with recent gcc's.

23 years agoWhitespace cleanup pass; reduce diffs with OpenBSD. No functional changes.
kris [Thu, 26 Apr 2001 09:22:28 +0000 (09:22 +0000)]
Whitespace cleanup pass; reduce diffs with OpenBSD.  No functional changes.

23 years agoAdd back missing arguments to format strings.
kris [Thu, 26 Apr 2001 08:40:35 +0000 (08:40 +0000)]
Add back missing arguments to format strings.

Reviewed by: hm

23 years agoReduce diffs with OpenBSD:
kris [Thu, 26 Apr 2001 08:37:00 +0000 (08:37 +0000)]
Reduce diffs with OpenBSD:
  #if __STDC__ -> #ifdef __STDC__
  pax_warn() -> paxwarn()
  sys_warn() -> syswarn()
  (foo *)NULL -> NULL
  bcopy -> memmove()/memcpy()
  bzero -> memset()
  Typo fixes
  sprintf() -> snprintf()
  rindex() -> strrchr()
  index() -> strchr()
  sys_errlist[] -> strerror()

Obtained from: OpenBSD

23 years agoUse mkstemp() for secure tempfile creation instead of tempnam()
kris [Thu, 26 Apr 2001 07:32:27 +0000 (07:32 +0000)]
Use mkstemp() for secure tempfile creation instead of tempnam()

Obtained from: OpenBSD
Reviewed by: mikeh

23 years agoFix typo in prev commit - add missing comma
ache [Thu, 26 Apr 2001 06:48:59 +0000 (06:48 +0000)]
Fix typo in prev commit - add missing comma

23 years agomdoc(7) police: remove hard sentence breaks.
dd [Thu, 26 Apr 2001 06:10:46 +0000 (06:10 +0000)]
mdoc(7) police: remove hard sentence breaks.

23 years agoAdd missing break when printing IPv6 multicast addresses.
fenner [Thu, 26 Apr 2001 06:02:03 +0000 (06:02 +0000)]
Add missing break when printing IPv6 multicast addresses.
Use the sockaddr_dl sdl_type, not ifnet.if_type, to decide what type
 a multicast sockaddr_dl is.

23 years agoRemove GCC-ism (-Wall).
will [Thu, 26 Apr 2001 04:40:57 +0000 (04:40 +0000)]
Remove GCC-ism (-Wall).

Submitted by: bde

23 years agoMore new Dell PCI IDs.
msmith [Thu, 26 Apr 2001 01:14:37 +0000 (01:14 +0000)]
More new Dell PCI IDs.

Submitted by: "Marty Moll" <martym@arbor.edu>

23 years agoRather than copying all the indirect blocks of the snapshot,
mckusick [Thu, 26 Apr 2001 00:50:53 +0000 (00:50 +0000)]
Rather than copying all the indirect blocks of the snapshot,
simply mark them as BLK_NOCOPY. This trick cuts the initial
size of the snapshot in half and cuts the time to take a
snapshot by a third.

23 years agoThe PERC 3/Di in the Dell PowerEdge 2250 has a new subdevice ID.
msmith [Thu, 26 Apr 2001 00:32:02 +0000 (00:32 +0000)]
The PERC 3/Di in the Dell PowerEdge 2250 has a new subdevice ID.

Submitted by: Chris Csanady <cc@ameslab.gov>

23 years agoSendfile is documented to return 0 on success, however if when a
alfred [Thu, 26 Apr 2001 00:14:14 +0000 (00:14 +0000)]
Sendfile is documented to return 0 on success, however if when a
sf_hdtr is used to provide writev(2) style headers/trailers on the
sent data the return value is actually either the result of writev(2)
from the trailers or headers of no tailers are specified.

Fix sendfile to comply with the documentation, by returning 0 on
success.

Ok'd by: dg

23 years agoA bogus check for a char device also matched symbolic links.
paul [Wed, 25 Apr 2001 22:07:16 +0000 (22:07 +0000)]
A bogus check for a char device also matched symbolic links.
Replace it with a correct check using S_ISCHR()

Symbolic links will now work again in linux compatibility.

23 years ago- Add some environment variables that need to be present when using packages
steve [Wed, 25 Apr 2001 21:40:57 +0000 (21:40 +0000)]
- Add some environment variables that need to be present when using packages
  from the build cluster.  These are required to get the dependencies the
  same as the parallel builds.
- Add an optional second argument that allows you to specific an alternate
  ports directory.
- Remove the temporary file after we are done with it.
- Remove ksh93 because it won't make it on the discs until the license issues
  are resolved.

Approved by: jkh

23 years agoReduce the number of $FreeBSD$'s from 3 to 2. I believe both remaining
obrien [Wed, 25 Apr 2001 20:58:28 +0000 (20:58 +0000)]
Reduce the number of $FreeBSD$'s from 3 to 2.  I believe both remaining
are needed for proper examples.

23 years agoDon't install KO's with the "schg" flag.
obrien [Wed, 25 Apr 2001 20:56:15 +0000 (20:56 +0000)]
Don't install KO's with the "schg" flag.
We are way too inconsistent with our setting of the "schg" flag, and in
our default install, it doesn't really offer any additional security.

Reviewed by: arch@

23 years agoFix SCM ID's and remove tailing blanks.
obrien [Wed, 25 Apr 2001 20:40:57 +0000 (20:40 +0000)]
Fix SCM ID's and remove tailing blanks.

23 years agoDocument XFREE86_VERSION.
jim [Wed, 25 Apr 2001 19:27:39 +0000 (19:27 +0000)]
Document XFREE86_VERSION.

23 years agoAdd /usr/X11R6/bin to the exported PATH. If /usr/local/bin is there,
obrien [Wed, 25 Apr 2001 19:11:09 +0000 (19:11 +0000)]
Add /usr/X11R6/bin to the exported PATH.  If /usr/local/bin is there,
/usr/X11R6/bin should be there.  This helps all the ports that need to
run `mkfontdir' and error out as many port maintainers do not realize
`mkfontdir' isn't in the path.

Prompted by: pkg_add pcemu

23 years agoAdd support for -F flag (trivial as background check is never possible).
mckusick [Wed, 25 Apr 2001 19:05:23 +0000 (19:05 +0000)]
Add support for -F flag (trivial as background check is never possible).

23 years agoFix compiling without -O, some dead code was using non-existant functions,
alfred [Wed, 25 Apr 2001 18:40:38 +0000 (18:40 +0000)]
Fix compiling without -O, some dead code was using non-existant functions,
make the code not automatically dead but actually use the debug level
in order to determine if output is needed.  Fix non-existant from_addr()
by #define'ing it to inet_ntoa().

Remove hardcoded -g from Makefile.

Reported by: "John W. De Boskey" <jwd@bsdwins.com>
Tested by: "John W. De Boskey" <jwd@bsdwins.com>

23 years ago- Make the dumping of console messages from the secondary CPU's to the
jhb [Wed, 25 Apr 2001 17:24:57 +0000 (17:24 +0000)]
- Make the dumping of console messages from the secondary CPU's to the
  kernel console be #ifdef DIAGNOSTIC.
- Don't set ktr_mask in release_aps().

23 years agoBackout rev.1.30, as the root of this problem was already fixed
ru [Wed, 25 Apr 2001 15:10:36 +0000 (15:10 +0000)]
Backout rev.1.30, as the root of this problem was already fixed
in bsd.obj.mk rev.1.35, and

On Tue, Apr 24, 2001 at 06:29:27AM +1000, Bruce Evans wrote:
>
> This is bogus.  It is normal for sloppy cleaning to cause problems.
> `make depend' after `make depend' should not do anything.  I'm still
> waiting for a similar problem in kdump to be fixed properly :-).

23 years agoAdd -Wall.
ru [Wed, 25 Apr 2001 14:59:16 +0000 (14:59 +0000)]
Add -Wall.

23 years ago-Wall cleanup.
ru [Wed, 25 Apr 2001 14:45:36 +0000 (14:45 +0000)]
-Wall cleanup.

23 years agounifdef -UWANT_ENV_PWD.
ru [Wed, 25 Apr 2001 14:44:42 +0000 (14:44 +0000)]
unifdef -UWANT_ENV_PWD.

No one ever going to use this bugfeature.

23 years agoMake ${.OBJDIR} canonical.
ru [Wed, 25 Apr 2001 14:22:38 +0000 (14:22 +0000)]
Make ${.OBJDIR} canonical.

Reviewed by: bde

23 years agoalpha_fpstate_save is fairly expensive (critical enter/exit, possibly
gallatin [Wed, 25 Apr 2001 13:57:33 +0000 (13:57 +0000)]
alpha_fpstate_save is fairly expensive (critical enter/exit, possibly
saves 32 registers) to do on every context switch.  This is only required
for SMP, so only do it there.

We should also look at moving the critical enter/exit out to the callers

23 years agoFixed typo.
ru [Wed, 25 Apr 2001 12:11:54 +0000 (12:11 +0000)]
Fixed typo.

PR: bin/26836
Submitted by: Matthew Seaman <matthew.seaman@tornadogroup.com>

23 years agoMFffs ffs_balloc.c 1.5.
bde [Wed, 25 Apr 2001 10:33:09 +0000 (10:33 +0000)]
MFffs ffs_balloc.c 1.5.

Long ago, bread() set b_blkno to the disk block number as a side effect
of doing physical i/o (or it just retained the setting from when the
i/o was done).  The setting is lost when buffers go away and then are
reconsituted from VM.  bread() originally compensated by doing a
VOP_BMAP() to recover b_blkno, but this was no good since it sometimes
caused extra i/o or even deadlock for bread()ing metadata to do the
bmap.  This was fixed in vfs_bio.c 1.33 (1995/03/03) and ffs_balloc.c
1.5, etc., by removing the VOP_BMAP() from bread() and breadn(), and
changing all (?) places that used b_blkno to set it if necessary.

ext2fs was not imported until later in 1995 and was still depending on
the old behaviour of bread() in at least ext2_balloc().  This caused
filesystem and file corruption by clobbering direct block numbers in
inodes.

23 years agoDo not leave a process with no credential in zombproc.
tanimura [Wed, 25 Apr 2001 10:22:35 +0000 (10:22 +0000)]
Do not leave a process with no credential in zombproc.

Reviewed by: jhb

23 years agoWhen closing the last reference to an unlinked file, it is freed
mckusick [Wed, 25 Apr 2001 08:11:18 +0000 (08:11 +0000)]
When closing the last reference to an unlinked file, it is freed
by the inactive routine. Because the freeing causes the filesystem
to be modified, the close must be held up during periods when the
filesystem is suspended.

For snapshots to be consistent across crashes, they must write
blocks that they copy and claim those written blocks in their
on-disk block pointers before the old blocks that they referenced
can be allowed to be written.

Close a loophole that allowed unwritten blocks to be skipped when
doing ffs_sync with a request to wait for all I/O activity to be
completed.

23 years agoReverse order of from and to in order to match reality.
dougb [Wed, 25 Apr 2001 07:43:45 +0000 (07:43 +0000)]
Reverse order of from and to in order to match reality.

PR: 26631
Submitted by: Glenn Johnson, glennpj@charter.net

23 years agoUpdate for file 3.35.
obrien [Wed, 25 Apr 2001 07:42:15 +0000 (07:42 +0000)]
Update for file 3.35.

23 years agoThis commit was generated by cvs2svn to compensate for changes in r75937,
obrien [Wed, 25 Apr 2001 07:41:21 +0000 (07:41 +0000)]
This commit was generated by cvs2svn to compensate for changes in r75937,
which included commits to RCS files with non-trunk default branches.

23 years agoVirgin import of Christos Zoulas's FILE 3.35.
obrien [Wed, 25 Apr 2001 07:41:21 +0000 (07:41 +0000)]
Virgin import of Christos Zoulas's FILE 3.35.

23 years agoAdd support for running foreground (-F) and background (-B) checks.
mckusick [Wed, 25 Apr 2001 07:18:22 +0000 (07:18 +0000)]
Add support for running foreground (-F) and background (-B) checks.
Traditionally, fsck is invoked before the filesystems are mounted
and all checks are done to completion at that time. If background
checking is available, fsck is invoked twice. It is first invoked
at the traditional time, before the filesystems are mounted, with
the -F flag to do checking on all the filesystems that cannot do
background checking. It is then invoked a second time, after the
system has completed going multiuser, with the -B flag to do checking
on all the filesystems that can do background checking. Unlike
the foreground checking, the background checking is started
asynchonously so that other system activity can proceed even on
the filesystems that are being checked.

At the moment, only the fast filesystem supports background checking.
To be able to do background checking, a filesystem must have been
running with soft updates, not have been marked as needing a
foreground check, and be mounted and writable when the background
check is to be done (i.e., not listed as `noauto' in /etc/fstab).

These changes are the final piece needed to support background
filesystem checking. They will not have any effect until you update
your /etc/rc to invoke fsck in its new mode of operation. I am
still playing around with exactly what those changes should be
and should be committing them later this week.

23 years agoMove the netexport structure from the fs-specific mountstructure
phk [Wed, 25 Apr 2001 07:07:52 +0000 (07:07 +0000)]
Move the netexport structure from the fs-specific mountstructure
to struct mount.

This makes the "struct netexport *" paramter to the vfs_export
and vfs_checkexport interface unneeded.

Consequently that all non-stacking filesystems can use
vfs_stdcheckexp().

At the same time, make it a pointer to a struct netexport
in struct mount, so that we can remove the bogus AF_MAX
and #include <net/radix.h> from <sys/mount.h>

23 years agoIgnore chflags errors. This makes installing to nfs mounted target
imp [Wed, 25 Apr 2001 06:19:58 +0000 (06:19 +0000)]
Ignore chflags errors.  This makes installing to nfs mounted target
directories work.

23 years ago"break", "chdir", "continue", "else", and "while" are sh(1) builtins;
dd [Wed, 25 Apr 2001 05:53:20 +0000 (05:53 +0000)]
"break", "chdir", "continue", "else", and "while" are sh(1) builtins;
mark them as such.

PR: 26702

23 years agoMove to using md.
imp [Wed, 25 Apr 2001 05:46:40 +0000 (05:46 +0000)]
Move to using md.
o create a simple wrapper function mount_md that makes it easy to
  move from mount_mfs.

# NOTE: you will need to MAKEDEV md[0123] in order for this to work.

Reviewed by: bsd, keichii

23 years agoTeach cut(1) how to handle long lines: convert from fgets(3) to fgetln(3).
dd [Wed, 25 Apr 2001 05:42:53 +0000 (05:42 +0000)]
Teach cut(1) how to handle long lines: convert from fgets(3) to fgetln(3).

PR: 26810
Reviewed by: dwmalone

23 years agoNew release notes: TCP_COMPAT_42 option gone, labpc(4) gone, client-side
bmah [Tue, 24 Apr 2001 22:47:34 +0000 (22:47 +0000)]
New release notes:  TCP_COMPAT_42 option gone, labpc(4) gone, client-side
NFS locks, devinfo(8), options REGRESSION.

23 years agoo Separate acl_t into internal and external representations as
jedgar [Tue, 24 Apr 2001 22:45:41 +0000 (22:45 +0000)]
o Separate acl_t into internal and external representations as
  required by POSIX.1e.  This maintains the current 'struct acl'
  in the kernel while providing the generic external acl_t
  interface required to complete the ACL editing library.
o Add the acl_get_entry() function.
o Convert the existing ACL utilities, getfacl and setfacl, to
  fully make use of the ACL editing library.

Obtained from: TrustedBSD Project

23 years agoAdd support for the -F flag which determines whether a specified
mckusick [Tue, 24 Apr 2001 22:38:08 +0000 (22:38 +0000)]
Add support for the -F flag which determines whether a specified
filesystem needs foreground checking (usually at boot time) or
can defer to background checking (after the system is up and running).
See the manual page, fsck_ffs(8), for details on the -F and -B options.
These options are primarily intended for use by the fsck front end.

All output is directed to stdout so that the output is coherent
when redirected to a file or a pipe. Unify the code with the fsck
front end that allows either a device or a mount point to be
specified as the argument to be checked.

23 years agoget the parameters to pci_write_config the right way round. this may fix
cg [Tue, 24 Apr 2001 22:35:11 +0000 (22:35 +0000)]
get the parameters to pci_write_config the right way round.  this may fix
some non-functional cards/machines

23 years agoAdd a new field 'md_kernnest' to the alpha machine dependent process
jhb [Tue, 24 Apr 2001 21:06:53 +0000 (21:06 +0000)]
Add a new field 'md_kernnest' to the alpha machine dependent process
structure.  This field keeps track of how many levels deep we are nested
into the kernel.  The nesting level is bumped at the start of a trap,
interrupt, syscall, or exception and is decremented on return.  This is
used to detect the case when the kernel is returning back to a kernel
context in exception_return().  If we are returning to the kernel we need
to update the globaldata pointer register saved in the stack frame in case
we have switched CPU's between taking the initial interrupt that saved the
frame and returning.  If we don't do this fixup it is possible for a CPU to
use the wrong per-cpu data.  On UP systems this is not a problem, so the
code is conditional on SMP.

A count was used instead of simply checking the process status register in
the frame during exception_return() since there are critical sections at
the very start and end of a trap, exception, or interrupt from userland in
which we could trash the t7 register being used in userland.  The counter
is incremented after adn before these critical sections respectively so
that we will not overwrite the saved t7 register if we are interrupted
during one of these critical sections.

23 years agoRemove bogus assignments of libc syscall stub return values to errno;
tmm [Tue, 24 Apr 2001 20:50:42 +0000 (20:50 +0000)]
Remove bogus assignments of libc syscall stub return values to errno;
the stubs do errno assignments and return -1 in this case, so that errno
would end up with this value.

Approved by: rwatson

23 years agoWrap lint calling in a variable.
asmodai [Tue, 24 Apr 2001 20:23:37 +0000 (20:23 +0000)]
Wrap lint calling in a variable.

Set LINT to the obj path, since we need to use the new lint's features
to create .ln files.  We do not want to use the installed version for that,
since that might create files according to the old lint.

This is still a work in progress to clean this all up, but it gets
through buildworld, which was the problem at hand.

23 years agoAdd build-tools target to the description file, requisite of making
asmodai [Tue, 24 Apr 2001 20:20:41 +0000 (20:20 +0000)]
Add build-tools target to the description file, requisite of making
lint a build-tool.

Also re-enable llib.

23 years agoAdd usr.bin/xlint to build-tools.
asmodai [Tue, 24 Apr 2001 20:19:29 +0000 (20:19 +0000)]
Add usr.bin/xlint to build-tools.

23 years agoAdd isdn_ttype (moved to rc.conf from rc.isdn)
schweikh [Tue, 24 Apr 2001 20:02:31 +0000 (20:02 +0000)]
Add isdn_ttype (moved to rc.conf from rc.isdn)
PR: conf/24865
Submitted by: schweikh
Reviewed by: hm

23 years agoDon't hardcode isdn_ttype overwriting rc.conf settings.
schweikh [Tue, 24 Apr 2001 20:01:25 +0000 (20:01 +0000)]
Don't hardcode isdn_ttype overwriting rc.conf settings.
PR: conf/24865
Submitted by: schweikh
Reviewed by: hm

23 years agoDocument all isdn_* variables in rc.conf(5) - 6 more knobs to frob!
schweikh [Tue, 24 Apr 2001 20:00:58 +0000 (20:00 +0000)]
Document all isdn_* variables in rc.conf(5) - 6 more knobs to frob!
PR: conf/24865
Submitted by: schweikh
Reviewed by: hm

23 years agoChange uipc_sockaddr so that a sockaddr_un without a path is returned
tmm [Tue, 24 Apr 2001 19:09:23 +0000 (19:09 +0000)]
Change uipc_sockaddr so that a sockaddr_un without a path is returned
nam for an unbound socket instead of leaving nam untouched in that case.
This way, the getsockname() output can be used to determine the address
family of such sockets (AF_LOCAL).

Reviewed by: iedowse
Approved by: rwatson

23 years agoo Change a suser() call to a suser_xxx(..., PRISON_ROOT) call in the
rwatson [Tue, 24 Apr 2001 19:08:53 +0000 (19:08 +0000)]
o Change a suser() call to a suser_xxx(..., PRISON_ROOT) call in the
  linuxulator so as to allow privileged processes within a jail() to
  invoke the Linux initgroups() system call.  This allows the Linux
  "su" to work properly (better) when running a complete Linux
  environment under jail().  This problem was reported by Attila
  Nagy <bra@fsn.hu>.

Reviewed by: marcel

23 years agoSay "add -r" rather than 'use -r' since the former is more correct.
imp [Tue, 24 Apr 2001 17:40:54 +0000 (17:40 +0000)]
Say "add -r" rather than 'use -r' since the former is more correct.
The latter implies to many people that they use only -r, which is
incorrect.

23 years agoWhen switching backing store during signal delivery, do the switch before
dfr [Tue, 24 Apr 2001 15:57:16 +0000 (15:57 +0000)]
When switching backing store during signal delivery, do the switch before
creating the register frame for calling the handler. Also discard that
frame before switching back to the old backing store after the handler
returns.

23 years agoAlign stack pointer and backing store pointer to 16 byte boundary when
dfr [Tue, 24 Apr 2001 15:55:47 +0000 (15:55 +0000)]
Align stack pointer and backing store pointer to 16 byte boundary when
delivering signals.

23 years agoDon't trash the user's pr on syscalls.
dfr [Tue, 24 Apr 2001 15:54:23 +0000 (15:54 +0000)]
Don't trash the user's pr on syscalls.

23 years agoRevert previous delta, which was completely bogus.
sheldonh [Tue, 24 Apr 2001 12:30:49 +0000 (12:30 +0000)]
Revert previous delta, which was completely bogus.

The perceived problem was the symptom of a local error.

23 years agoCall usage() if given more than 1 argument.
kris [Tue, 24 Apr 2001 10:39:17 +0000 (10:39 +0000)]
Call usage() if given more than 1 argument.

Submitted by: "Andrew R. Reiter" <arr@watson.org>
Obtained from: OpenBSD

23 years agoReplace a strcat() with a strlcat(). Partial sync with OpenBSD; more
kris [Tue, 24 Apr 2001 10:33:46 +0000 (10:33 +0000)]
Replace a strcat() with a strlcat().  Partial sync with OpenBSD; more
work is needed.

Submitted by: "Andrew R. Reiter" <arr@watson.org>
Obtained from: OpenBSD

23 years agosprintf() -> snprintf()
kris [Tue, 24 Apr 2001 10:26:00 +0000 (10:26 +0000)]
sprintf() -> snprintf()

Partially submitted by: "Andrew R. Reiter" <arr@watson.org>
Obtained from: OpenBSD

23 years agoDon't build pkg_sign tools if crypto is not installed, or is not
wes [Tue, 24 Apr 2001 08:59:40 +0000 (08:59 +0000)]
Don't build pkg_sign tools if crypto is not installed, or is not
being built.

Reviewed by: kkenn

23 years agoDisconnect linux from the build. The buildkernel target has been
sheldonh [Tue, 24 Apr 2001 08:56:42 +0000 (08:56 +0000)]
Disconnect linux from the build.  The buildkernel target has been
breaking on linux for more than two days because sys_exit_args
referenced in linux_sysent.c does not exist.

23 years agoMF4S: Syncronise with Luigi's work in -stable.
joe [Tue, 24 Apr 2001 07:46:35 +0000 (07:46 +0000)]
MF4S: Syncronise with Luigi's work in -stable.

23 years agoMF4S: Syncronise with Luigi's work in -stable.
joe [Tue, 24 Apr 2001 07:12:34 +0000 (07:12 +0000)]
MF4S: Syncronise with Luigi's work in -stable.

23 years agoMFS: the MFS still applies to -current until such time as someone fixes
imp [Tue, 24 Apr 2001 07:02:01 +0000 (07:02 +0000)]
MFS: the MFS still applies to -current until such time as someone fixes
rc.diskless2 to use mdconfig rather than mount_mfs.  These changes are
still relevant to -current.

23 years agoAdd warning, and resolution, of the fsck and kernel problem
imp [Tue, 24 Apr 2001 04:49:21 +0000 (04:49 +0000)]
Add warning, and resolution, of the fsck and kernel problem

23 years ago${MAKEOBJDIRPREFIX}/usr/src/i386/usr/include/isc was being created as a plain
gshapiro [Tue, 24 Apr 2001 02:57:42 +0000 (02:57 +0000)]
${MAKEOBJDIRPREFIX}/usr/src/i386/usr/include/isc was being created as a plain
file during the bootstrapping process of a buildworld and contained the
last isc include file to be installed.  It was meant to be a directory for
the isc include files.

23 years agoHandle IP over IP (IPPROTO_IPV4) properly.
brian [Tue, 24 Apr 2001 02:13:34 +0000 (02:13 +0000)]
Handle IP over IP (IPPROTO_IPV4) properly.

  We now unwrap IP/IP and apply filter rules to both the outer
  layer (with ``set filter blah x.x.x.x y.y.y.y ipip'') and to
  the payload (reinterpreted by the filter rules).

  ``set log tcp/ip'' will now show both the outer wrapper and
  the (reinterpreted) payload contents.

23 years agoChange the pfind() and zpfind() functions to lock the process that they
jhb [Tue, 24 Apr 2001 00:51:53 +0000 (00:51 +0000)]
Change the pfind() and zpfind() functions to lock the process that they
find before releasing the allproc lock and returning.

Reviewed by: -smp, dfr, jake

23 years agoPre-dirpref versions of fsck may zero out the new superblock fields
iedowse [Tue, 24 Apr 2001 00:37:16 +0000 (00:37 +0000)]
Pre-dirpref versions of fsck may zero out the new superblock fields
fs_contigdirs, fs_avgfilesize and fs_avgfpdir. This could cause
panics if these fields were zeroed while a filesystem was mounted
read-only, and then remounted read-write.

Add code to ffs_reload() which copies the fs_contigdirs pointer
from the previous superblock, and reinitialises fs_avgf* if necessary.

Reviewed by: mckusick

23 years agoApply 'const' liberally.
archie [Tue, 24 Apr 2001 00:06:21 +0000 (00:06 +0000)]
Apply 'const' liberally.

Fix some other minor glitches.

23 years agoBack out previous commit.
grog [Mon, 23 Apr 2001 23:51:17 +0000 (23:51 +0000)]
Back out previous commit.

Requested by: bde

23 years agoFix a bug introduced in the last commit: vaccess_acl_posix1 only checked
tmm [Mon, 23 Apr 2001 22:52:26 +0000 (22:52 +0000)]
Fix a bug introduced in the last commit: vaccess_acl_posix1 only checked
the file gid gainst the egid of the accessing process for the
ACL_GROUP_OBJ case, and ignored supplementary groups.

Approved by: rwatson

23 years agoAdd als4000 subdir.
orion [Mon, 23 Apr 2001 21:58:23 +0000 (21:58 +0000)]
Add als4000 subdir.

23 years agoInitial version of Avance Logic ALS4000 pcm driver.
orion [Mon, 23 Apr 2001 21:53:12 +0000 (21:53 +0000)]
Initial version of Avance Logic ALS4000 pcm driver.

23 years agoIn fsdb, call sblock_init() which is now necessary to initialise
iedowse [Mon, 23 Apr 2001 21:39:14 +0000 (21:39 +0000)]
In fsdb, call sblock_init() which is now necessary to initialise
the global variable dev_bsize. Add a prototype for sblock_init()
to fsck.h, and set the return type correctly.

23 years agoMF4S: Syncronise with Luigi's work in -stable.
joe [Mon, 23 Apr 2001 20:25:40 +0000 (20:25 +0000)]
MF4S: Syncronise with Luigi's work in -stable.

23 years agoKeep my dirty paws off of the $NetBSD$ id's. They're tabbed and should
asmodai [Mon, 23 Apr 2001 20:07:21 +0000 (20:07 +0000)]
Keep my dirty paws off of the $NetBSD$ id's.  They're tabbed and should
remain so.

Submitted by:   bde/obrien

23 years agoMF4S: Sync with the developments that Luigi's been doing in -stable.
joe [Mon, 23 Apr 2001 19:55:03 +0000 (19:55 +0000)]
MF4S: Sync with the developments that Luigi's been doing in -stable.

23 years agoMF4S: Remove some unused error messages. (revision 1.1.2.5)
joe [Mon, 23 Apr 2001 19:52:13 +0000 (19:52 +0000)]
MF4S: Remove some unused error messages. (revision 1.1.2.5)

23 years agoApply style guidelines (using gident to help).
joe [Mon, 23 Apr 2001 19:38:41 +0000 (19:38 +0000)]
Apply style guidelines (using gident to help).

23 years agofix it so it compiles again
mjacob [Mon, 23 Apr 2001 18:51:54 +0000 (18:51 +0000)]
fix it so it compiles again

23 years agoFix a syntax error.
joe [Mon, 23 Apr 2001 18:41:48 +0000 (18:41 +0000)]
Fix a syntax error.