Commit Graph

136806 Commits

Author SHA1 Message Date
macallan d2d9cb8374 added wd* 2005-05-23 00:43:13 +00:00
elad a2c658e922 Add indication for number of fingerprinted files on each device.
When a table is created for a new device, a new variable is created
under the kern.veriexec.count node named "dev_<id>". For example,
dev_0, dev_3, etc.
2005-05-22 22:34:01 +00:00
yamt faf63ba09b uvm_kmapent_free: add missing vm_map_lock/unlock. 2005-05-22 21:37:56 +00:00
martin 55cbd28f3f Use the new WSCOL_REALWHITE as default background color. 2005-05-22 20:17:09 +00:00
martin e5c6528779 Define a real white color - since WSCOL_WHITE is ANSI-emulation specific
defined as grey (which can't be fixed w/o breaking user config files).
Fixes PR kern/30064.
2005-05-22 20:16:08 +00:00
fvdl 57409f3466 sigreturn doesn't take arguments. Instead, find out where the signal
frame is from the stack pointer in the frame frame.

Also, don't forget to copy %rip back in.
2005-05-22 19:31:15 +00:00
fvdl e83accc0f6 Regen after sigreturn argument change. 2005-05-22 19:29:40 +00:00
fvdl 8251c0b501 Change sigreturn to have no arguments. 2005-05-22 19:29:15 +00:00
kleink 484c40cd9f Remove the compatibility select() prototype. Going back to Lite2 select(2)
has also mandated <sys/time.h> to be included, which is now sufficient
for the prototype and all related declarations; thus the local duplicate
of the prototype can be removed.  Approved by Christos.
2005-05-22 19:10:15 +00:00
christos 4e0ae89b44 Don't even declare fdochroot() if we are in tool mode. 2005-05-22 17:41:50 +00:00
macallan 4fa7e1c545 uncommented the wd entry since there are a few ways to get IDE hardware into
a SPARC machine.
2005-05-22 16:31:07 +00:00
christos 7cdea212c0 No 0x in front of %p... 2005-05-22 15:54:45 +00:00
christos 44e14add76 Don't print 0x in front of %p. From FreeBSD/OpenBSD 2005-05-22 15:29:33 +00:00
fvdl beae305307 Use a modified buildcontext function for Linux signals. It doesn't set
the unused segment registers, it just uses the already used values.
2005-05-22 14:52:12 +00:00
lukem 1bd2839e9a Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.
2005-05-22 14:34:20 +00:00
chs d5b80101e7 do not rely on the pre-evcnt interrupt counter kernel symbols being present.
if they do not exist, then interrupt stats are all in evcnts.
2005-05-22 14:00:59 +00:00
kleink 3a2b4d4dd7 * Factor out fd_set and related definitions from <sys/types.h> to
<sys/fd_set.h>.  Still include it from <sys/types.h> for _NETBSD_SOURCE,
  and amke <sys/select.h> use it instead of <sys/types.h>.
* Instead of including <string.h> for memset()/memcpy() (or adding their
  declarations locally), make FD_ZERO()/FD_COPY() use GCC builtins if
  available, or define them inline otherwise.
Approved by Christos.
2005-05-22 12:44:24 +00:00
hannken 10e3f817a6 Welcome to 3.99.5.
struct ufsmount changed size.
2005-05-22 08:36:36 +00:00
hannken ffa83f8f0d ffs/ffs_alloc.c:
- Add a missing ACTIVECG_CLR().

ffs/ffs_snapshot.c:
- Use async/delayed writes for snapshot creation and sync/uncache these buffers
  on end. Reduces the time the file system must be suspended.
- Remove um_snaplistsize. Was a duplicate of um_snapblklist[0].
- Byte swap the list of preallocated blocks on read/write instead of access.
- Always keep this list on ip->i_snapblklist so it may be rolled back when the
  newest snapshot gets removed. Fixes a rare snapshot corruption when using
  more than one snapshot on a file system.

ufs/ufsmount.h:
  - Make TAILQ_LAST() possible on member um_snapshots.
  - Remove um_snaplistsize. Was a duplicate of um_snapblklist[0].
2005-05-22 08:35:28 +00:00
skrll cbf1ae8ee2 Do not make the links as part of the obj, clean and cleandir rules. 2005-05-22 08:22:28 +00:00
lukem dfee67134f Make fdisk(8) available on all platforms, since MS-DOS partitioning
is the de-facto standard for many removable media types.
2005-05-22 03:45:30 +00:00
macallan 49deefc7bf fixed a typo in cg6_ras_do_cursor and made using the blitter to draw the
cursor optional when using RASTERCONSOLE
2005-05-22 03:45:08 +00:00
lukem 64863e99af Use "find |sort" instead of "find -s" -- the latter isn't POSIX. 2005-05-22 03:05:15 +00:00
chs 92a6915f63 switch to counting interrupts via evcnts. 2005-05-21 23:21:15 +00:00
chs 7c4e58b538 in softintr_init(), malloc the struct device instead of using the stack
since the evcnt stuff will use the dv_xname field later,
2005-05-21 23:20:33 +00:00
christos 057e8f6aa6 Support VEOL2 and VSTATUS 2005-05-21 17:18:51 +00:00
rearnsha c28a42708d Add a couple of sanity checks in case someone tries to boot the kernel
on a CM board that we can't support.  In essence that means any board
without an MMU.  For now also fault v6 based CPUs since the kernel
doesn't know how to handle these yet.
2005-05-21 11:46:56 +00:00
skrll ff8785b1da Remove unused variables. 2005-05-21 09:25:21 +00:00
chs ae0752d6b0 add md_root.c for the installation ramdisk. 2005-05-21 08:59:18 +00:00
skrll b7ddf5b9cb Copyright Maintenance 2005-05-21 06:46:34 +00:00
skrll 504512d318 Copyright maintenance. 2005-05-21 06:43:39 +00:00
riz 254aabe783 There was a change from usecs to nsecs between ntpd 4.1.1 and 4.2.0 -
take this into account correctly.  From ntp-current via Brian Buhrow
in PR#29685.  Approved by christos.
2005-05-21 01:47:09 +00:00
uwe faedc2c4d1 Prettify. Avoid code duplication.
Same object code is generated.
2005-05-20 23:56:15 +00:00
elad 18afb98204 Remove leftovers from Vexec. 2005-05-20 20:06:34 +00:00
elad cd0c4134f1 Remove common code for returning supported fingerprints. This is done now
via sysctl(8) using kern.veriexec.algorithms.

Also add an entry for the 'algorithms' variable in sysctl.8 forgotten in
the last commit.
2005-05-20 19:52:52 +00:00
perseant 2ecd1730c0 Keep track of the number of segments reclaimed, since the cleaner doesn't
do this anymore (it hasn't for quite some time).  Add a couple of conditional
debugging messages to indicate why segments are not cleaned, in the event
that lfs_segclean is used.

Make the LFCNSEGWAITALL fcntl work again.
2005-05-20 19:48:25 +00:00
perseant f8677583c3 VOP_LOCK drops the interlock; pick it up again to avoid an "already unlocked"
panic in lfs_putpages.
2005-05-20 19:09:25 +00:00
perseant 5760c21b8b Fill in the lfs_fsmnt field in the superblock when we mount the filesystem,
so fsck(8) can tell where it was last mounted.
2005-05-20 19:03:11 +00:00
perseant 9bf7a991c5 Fail gracefully if we are asked to expand the buffer cache hash table size
when there is no memory available to do so.  Use the uvnode's strategy
routine to retrieve data from the device, rather than always using pread().
Add a buffer header flag that specifies external management of the buffer's
data area.

All of this in support of a new cleaner, which is not included in this commit.
2005-05-20 18:59:36 +00:00
kleink bcbb5c6578 Include <sys/time.h> for struct timeval. 2005-05-20 18:01:46 +00:00
christos 48aa099255 PR/30285: Mile Nordin: incorrect permission check joining/leaving multicast
groups.
2005-05-20 16:23:05 +00:00
wrstuden 6336cd3696 The file being closed is (fdp->fd_lastfile - i), not i. So compare
(fdp->fd_lastfile - i) against fd_knlistsize. Otherwise we can
call knote_fdclose() on a file descriptor that doesn't have a knote.

This issue explains random panics I have had on process exit over the
past few years.
2005-05-20 16:13:00 +00:00
chs b25ecfbe53 only lvalues can be incremented. found by gcc4. 2005-05-20 15:09:45 +00:00
bouyer 633e533c5c Close a window where (disks) interrupts could be enabled while the
ATACH_TH_RUN flag is still set. Should fix panic reported by Jukka Salmi
on netbsd-users@.
2005-05-20 14:39:04 +00:00
chs 448875a34c kernfs does not support mmap(), remove code that pretends that it does. 2005-05-20 13:16:54 +00:00
bjh21 fde4cf0a9d NetBSD.cf unconditionally turns on XKB_ALWAYS_USES_SOFT_REPEAT. Do the same
here so that auto-repeat works in, e.g., Xsun.  This should solve
PR port-sparc/28908.
2005-05-20 12:53:22 +00:00
fvdl a893ac9f67 If p->emul->e_usertrap is set, call it for T_USER|T_PAGEFAULT traps to
do possible work.
2005-05-20 12:49:14 +00:00
fvdl 33e2d79f47 Define linux_usertrap function, and set it in struct emul. For all
but amd64, it just returns 0, doing nothing.

For amd64, it implements vsyscalls through cheating: if the faulting
address is in the vsyscall area (which is statically known on Linux/amd64),
and the intruction pointer is too, it must have been a vsyscall. In that
case, retrieve the return address from the user stack, fix up %rip and
%rsp, and just execute the normal system call. It will return as if
the vsyscall has been executed.
2005-05-20 12:48:26 +00:00
fvdl cd239681a0 Bump to 3.99.4 because of struct emul change. 2005-05-20 12:44:50 +00:00
fvdl 73af1e5c03 Add an e_usertrap function pointer to struct emul. 2005-05-20 12:44:11 +00:00