]> Zhao Yanbai Git Server - minix.git/log
minix.git
12 years agovm_remap_ro
Ben Gras [Mon, 28 Nov 2011 18:05:50 +0000 (19:05 +0100)]
vm_remap_ro

- allows shared memory to be mapped in readonly

- ben@minix3.org & tom@minix3.org

12 years agoVM - vm_unmap() takes SELF as valid argument
Tomas Hruby [Tue, 18 Oct 2011 18:21:07 +0000 (18:21 +0000)]
VM - vm_unmap() takes SELF as valid argument

12 years agoVM - clear vminhibit iff it was set
Tomas Hruby [Sun, 6 Nov 2011 21:37:34 +0000 (21:37 +0000)]
VM - clear vminhibit iff it was set

12 years agoSMP - asyn send SMP safe
Tomas Hruby [Tue, 25 Oct 2011 18:32:30 +0000 (18:32 +0000)]
SMP - asyn send SMP safe

- we must not deliver messages from/to unstable address spaces.
  In such a case, we must postpone the delivery. To make sute
  that a process which is expecting an asynchronous message does
  not starve, we must remember that we skipped delivery of some
  messages and we must try to deliver again once the source
  address space is stable again.

12 years agoSMP - smp_schedule()
Tomas Hruby [Fri, 4 Nov 2011 17:59:31 +0000 (17:59 +0000)]
SMP - smp_schedule()

- always issues an IPI

12 years agoSMP - cpu_is_idle made volatile
Tomas Hruby [Fri, 4 Nov 2011 17:47:45 +0000 (17:47 +0000)]
SMP - cpu_is_idle made volatile

12 years agoSMP - fixed usage of stale TLB entries
Tomas Hruby [Fri, 4 Nov 2011 17:33:07 +0000 (17:33 +0000)]
SMP - fixed usage of stale TLB entries

- when kernel copies from userspace, it must be sure that the TLB
  entries are not stale and thus the referenced memory is correct

- everytime we change a process' address space we set p_stale_tlb
  bits for all CPUs.

- Whenever a cpu finds its bit set when it wants to access the
  process' memory, it refreshes the TLB

- it is more conservative than it needs to be but it has low
  overhead than checking precisely

12 years agoSMP - fixed IPI livelock
Tomas Hruby [Wed, 26 Oct 2011 15:43:36 +0000 (15:43 +0000)]
SMP - fixed IPI livelock

- two CPUs can issue IPI to each other now without any hazzard

- we must be able to handle synchronous scheduling IPIs from
  other CPUs when we are waiting for attention from another one.
  Otherwise we might livelock.

- necessary barriers to prevent reordering

12 years agoSMP - do_update fix
Tomas Hruby [Sun, 16 Oct 2011 22:05:40 +0000 (22:05 +0000)]
SMP - do_update fix

- adjust_proc_slot() must preserve scheduling info, for example
  on which cpu the process should run

- do_update() - consitency check

12 years agoKERNEL - cause SIGSEGV if bad pointer to kernel
Tomas Hruby [Mon, 5 Dec 2011 01:08:48 +0000 (01:08 +0000)]
KERNEL - cause SIGSEGV if bad pointer to kernel

12 years agoKERNEL - mini_senda simplification
Tomas Hruby [Fri, 4 Nov 2011 18:25:27 +0000 (18:25 +0000)]
KERNEL - mini_senda simplification

12 years agoKERNEL - has_pending() not exposed
Tomas Hruby [Mon, 31 Oct 2011 15:21:08 +0000 (15:21 +0000)]
KERNEL - has_pending() not exposed

- has_pending() takes a special argument that tells the code
  whether we are scanning for asynchronous message or something
  else.

- has_pending() is not used directly anymore

- the new functions are wrappings around has_pending() to make
  the use more comfortable.

- these functions should become static inline eventually

12 years agoKERNEL - do_privctl() fix
Tomas Hruby [Tue, 18 Oct 2011 18:19:24 +0000 (18:19 +0000)]
KERNEL - do_privctl() fix

- after a driver is restarted, do not register permissions
  which are already set again.

12 years agoIncrease ramdisk size for clang
Arun Thomas [Thu, 12 Jan 2012 16:01:48 +0000 (17:01 +0100)]
Increase ramdisk size for clang

12 years agoAllow clang for kernel compilation
Antoine Leca [Mon, 26 Dec 2011 16:33:18 +0000 (17:33 +0100)]
Allow clang for kernel compilation

Remove .ident sections, and force separations of .text and
.data sections into separate program headers, for the benefit
of the check done by MINIX boot monitor in multiboot mode.

12 years agoFix tll state bug
Thomas Veerman [Wed, 11 Jan 2012 10:20:44 +0000 (10:20 +0000)]
Fix tll state bug

When a lock has read-serialized and read-only locks, releasing the read-
serialized lock would not set the state to read-only when no other locks
were pending.

12 years ago/etc/shells
Ben Gras [Wed, 11 Jan 2012 14:20:48 +0000 (15:20 +0100)]
/etc/shells

12 years agovm: clear map cache after kernel requests
Ben Gras [Mon, 2 Jan 2012 17:20:02 +0000 (18:20 +0100)]
vm: clear map cache after kernel requests

. fixes a dirty tlb situation (i.e. random crashes)
  on some hardware, seemingly new intel architectures
  (e.g. my desktop i7 machine)

12 years agomove pax and chmod for useradd
Ben Gras [Tue, 10 Jan 2012 23:26:09 +0000 (00:26 +0100)]
move pax and chmod for useradd

12 years agorc: transitional fix for old fstab
David van Moolenbroek [Tue, 10 Jan 2012 14:05:28 +0000 (15:05 +0100)]
rc: transitional fix for old fstab

12 years agoConvert s_block_size on MFSv3.
Evgeniy Ivanov [Sun, 8 Jan 2012 19:52:57 +0000 (23:52 +0400)]
Convert s_block_size on MFSv3.

On MFSv3 s_block_size is stored on disk, hence bytes should be converted
on big endian.

12 years agoanother UPDATING tweak
Ben Gras [Sun, 8 Jan 2012 16:34:46 +0000 (16:34 +0000)]
another UPDATING tweak

12 years agoadded etcforce to UPDATING
Ben Gras [Sun, 8 Jan 2012 15:56:31 +0000 (15:56 +0000)]
added etcforce to UPDATING

12 years agoAdded UPDATING about mfs clean flag changes.
Ben Gras [Thu, 5 Jan 2012 23:28:08 +0000 (00:28 +0100)]
Added UPDATING about mfs clean flag changes.

12 years agoavfs: fix for root file system not being unmounted
David van Moolenbroek [Wed, 4 Jan 2012 13:10:10 +0000 (14:10 +0100)]
avfs: fix for root file system not being unmounted

Also no longer have avfs crash whenever a file system server crashes.

12 years agosys/queue.h: add LIST_FOREACH_SAFE to netbsd copy
David van Moolenbroek [Fri, 23 Dec 2011 18:05:09 +0000 (19:05 +0100)]
sys/queue.h: add LIST_FOREACH_SAFE to netbsd copy

12 years agohgfs: fix atime/mtime attribute setting bug
David van Moolenbroek [Fri, 23 Dec 2011 18:02:57 +0000 (19:02 +0100)]
hgfs: fix atime/mtime attribute setting bug

Reported and investigated by Antoine Leca.

12 years agohgfs: resolve gcc -W warnings
David van Moolenbroek [Fri, 23 Dec 2011 18:01:56 +0000 (19:01 +0100)]
hgfs: resolve gcc -W warnings

12 years agoMove hgfs.h to minix includes directory
David van Moolenbroek [Fri, 23 Dec 2011 18:01:14 +0000 (19:01 +0100)]
Move hgfs.h to minix includes directory

12 years agofix for checking CLEAN-ness of ramdisk image
Ben Gras [Fri, 23 Dec 2011 14:02:35 +0000 (15:02 +0100)]
fix for checking CLEAN-ness of ramdisk image

. pre-cleanflag ("old") mkfs generates without CLEAN flag,
  causing boot not working because imgrd disappears after 1st
  close
. fixed sanity check for this situation
. disable imgrd disappearing in memory driver so
  readonly mount succeeds in case it happens anyway

12 years agoimport netbsd ext2fs fsck and newfs
Ben Gras [Thu, 22 Dec 2011 16:54:36 +0000 (17:54 +0100)]
import netbsd ext2fs fsck and newfs

12 years agonetbsd fsck driver import
Ben Gras [Thu, 22 Dec 2011 21:51:26 +0000 (22:51 +0100)]
netbsd fsck driver import

. fsck driver parses /etc/fstab and invokes sub-fscks
. further simplifies fs handling in rc

12 years agoimport netbsd libprop
Ben Gras [Thu, 22 Dec 2011 16:42:19 +0000 (17:42 +0100)]
import netbsd libprop

12 years agomfs: clean flag
Ben Gras [Thu, 22 Dec 2011 00:29:27 +0000 (01:29 +0100)]
mfs: clean flag

     . also implement now-possible fsck -p option
     . allows unconditional fsck -p invocation at startup,
       only checking each filesystem if not marked clean
     . mounting unclean is allowed but is forced readonly
     . updating the superblock while mounted is now not
       allowed by mfs - must be done (e.g. by fsck.mfs)
       on an unmounted fs
. clean flag is unset by mfs on mounting, and set by
  mfs on clean unmounting (if clean flag was set at
  mount time)

Signed-off-by: Ben Gras <ben@minix3.org>
12 years agomfs: restore readonly mounting
Ben Gras [Thu, 22 Dec 2011 00:29:27 +0000 (01:29 +0100)]
mfs: restore readonly mounting

. use dirty marking hooks to check and warn
  when inodes/bufs are marked dirty on a readonly
  mounted fs
. add readonly mount checks to restore readonly
  mounting

Signed-off-by: Ben Gras <ben@minix3.org>
12 years agomfs: use macros to mark blocks and inodes dirty
Ben Gras [Thu, 22 Dec 2011 00:29:27 +0000 (01:29 +0100)]
mfs: use macros to mark blocks and inodes dirty

. No functional change
. Only serves to get hooks to do checks in
. e.g. should things be marked dirty when we are
  mounted readonly

Signed-off-by: Ben Gras <ben@minix3.org>
12 years agovfs,avfs: verify an interpreter was found on #! line
Ben Gras [Tue, 20 Dec 2011 15:20:32 +0000 (16:20 +0100)]
vfs,avfs: verify an interpreter was found on #! line

. if not, NULL *interp is dereferenced

12 years agoMake all tests use common.c
Thomas Veerman [Fri, 16 Dec 2011 14:45:53 +0000 (14:45 +0000)]
Make all tests use common.c

This will make sure that all file descriptors are closed through
the use of the start() function.

12 years agoAVFS: Use scratchpad instead of m_in to pass around file descriptors
Thomas Veerman [Wed, 21 Dec 2011 10:52:51 +0000 (10:52 +0000)]
AVFS: Use scratchpad instead of m_in to pass around file descriptors

Some code relies on having the file descriptor in m_in.fd. Consequently,
m_in is not only used to provide syscall parameters from user space to
VFS, but also as a global variable to store temporary data within VFS.
This has the ugly side effect that m_in gets overwritten during core
dumping.*

To work around this problem VFS now uses a so called "scratchpad" to
store temporary data that has to be globally accessible. This is a simple
table indexed by process number, just like fproc. The scratchpad allows
us to store the buffer pointer and buffer size for suspended system calls
(i.e., read, write, open, lock) instead of using fproc. This makes fproc
a bit smaller and fproc iterators a bit faster. Moreover, suspension of
processes becomes simpler altogether and suspended operations on pipes
are now less of a special case.

* This patch fixes a bug where due to unexpected m_in overwriting a
coredump would fail, and consequently resources are leaked. The coredump
was triggered with:
$ a() { a; }
$ a

12 years agoDon't repeat out-of-space messages
Thomas Veerman [Fri, 16 Dec 2011 09:17:37 +0000 (09:17 +0000)]
Don't repeat out-of-space messages

This patch makes PFS, EXT2 and MFS print only once that they're out of
space. After freeing up space and running out of space again, the message
will be printed again also.

12 years agoCompare read/write buf size against SSIZE_MAX instead of "< 0"
Thomas Veerman [Fri, 16 Dec 2011 08:45:04 +0000 (08:45 +0000)]
Compare read/write buf size against SSIZE_MAX instead of "< 0"

The nbyte in read(int fildes, void *buf, size_t nbyte) is unsigned,
so although technically we're doing the same comparison, this is more
in line with POSIX.

The comparison was moved to read_write as that routine is used within
VFS to let it VFS write out coredumps.

12 years agoMark filp as in use on fd dup'ing
Thomas Veerman [Fri, 16 Dec 2011 08:43:01 +0000 (08:43 +0000)]
Mark filp as in use on fd dup'ing

12 years agoACPI - fixed initialization of pci briges irqtable
Tomas Hruby [Tue, 20 Dec 2011 08:03:43 +0000 (08:03 +0000)]
ACPI - fixed initialization of pci briges irqtable

- if no IRQ table is found, we report that ACPI cannot map IRQ
  correctly

- fixes mapping of IRQs in KVM because in this case we just fall
  through and use the IRQ configured by BIOS. PCI still reports
  that it failed to use ACPI. It is a hint if things go wrong.

12 years agoACPI extended irq - fixed uninitialized variable
Tomas Hruby [Tue, 20 Dec 2011 08:01:21 +0000 (08:01 +0000)]
ACPI extended irq - fixed uninitialized variable

12 years agoSMP - kernel links again
Tomas Hruby [Mon, 19 Dec 2011 14:17:26 +0000 (14:17 +0000)]
SMP - kernel links again

12 years agoSMP - fixed compilation and removed warnings
Tomas Hruby [Thu, 15 Dec 2011 09:56:08 +0000 (09:56 +0000)]
SMP - fixed compilation and removed warnings

12 years agolibsys: unbreak getidle()
David van Moolenbroek [Fri, 16 Dec 2011 16:06:09 +0000 (16:06 +0000)]
libsys: unbreak getidle()

12 years agotty timeout bugfix
Ben Gras [Fri, 16 Dec 2011 08:54:20 +0000 (09:54 +0100)]
tty timeout bugfix

. timeouts were always delivered to console
. Fix by Lucio Tomarchio

12 years agonbsd.config: make timezone explicit
Ben Gras [Wed, 14 Dec 2011 16:02:31 +0000 (17:02 +0100)]
nbsd.config: make timezone explicit

12 years agoworkaround for cvs not handling many args
Ben Gras [Wed, 14 Dec 2011 00:14:11 +0000 (01:14 +0100)]
workaround for cvs not handling many args

12 years agodec21140A: change debugging key to Shift+F7
David van Moolenbroek [Mon, 12 Dec 2011 15:45:45 +0000 (16:45 +0100)]
dec21140A: change debugging key to Shift+F7

12 years agoahci: NCQ support
Raja Appuswamy [Wed, 7 Dec 2011 14:44:28 +0000 (15:44 +0100)]
ahci: NCQ support

12 years agoDiscard process' pending request upon incoming PM request
Thomas Veerman [Fri, 9 Dec 2011 10:43:13 +0000 (10:43 +0000)]
Discard process' pending request upon incoming PM request

When a process wants something done from VFS, but VFS has no worker
threads available, the request is stored and executed later. However,
when PM also sends a request for that process at the same time, discard
the pending request from the process and give priority to PM. The request
PM sends is either an EXIT or a DUMPCORE request, so we're not interested
in executing the pending request anyway.

12 years agoAdd fbd -- Faulty Block Device driver
David van Moolenbroek [Sun, 11 Dec 2011 18:32:13 +0000 (19:32 +0100)]
Add fbd -- Faulty Block Device driver

This driver can be loaded as an overlay on top of a real block
device, and can then be used to generate block-level failures for
certain transfer requests. Specifically, a rule-based system allows
the user to introduce (overt and silent) data corruption and errors.

It exposes itself through /dev/fbd, and a file system can be mounted
on top of it. The new fbdctl(8) tool can be used to control the
driver; see ``man fbdctl'' for details. It also comes with a test
set, located in test/fbdtest.

12 years agoblocktest: support for stateless driver restarts
David van Moolenbroek [Sun, 11 Dec 2011 18:27:23 +0000 (19:27 +0100)]
blocktest: support for stateless driver restarts

12 years agolibblockdriver: clear IPC only on stateful restart
David van Moolenbroek [Sun, 11 Dec 2011 21:36:19 +0000 (22:36 +0100)]
libblockdriver: clear IPC only on stateful restart

This removes a race condition when the block driver performs a
complete restart after a crash (the new default). If any user of
the driver finds out its new endpoint and sends a request to the
new driver instance before this instance has had the chance to
initialize, then its initialization would clear all IPC state and
thereby erroneously cancel the incoming request. Clearing IPC
state is only desired upon a stateful restart (where the driver's
endpoint is retained). This information is now passed to and used
by libblockdriver accordingly.

12 years agoblocktest: resolve label/minor in userland
David van Moolenbroek [Sun, 11 Dec 2011 14:37:35 +0000 (15:37 +0100)]
blocktest: resolve label/minor in userland

The test script now resolves the device node into a <label,minor>
pair, so that the blocktest driver itself no longer has to. This
removes blocktest's dependency on VFS' internal data structures.

Also allow blocktest to be linked using with gcc/clang.

12 years agoprocfs: add /proc/dmap
David van Moolenbroek [Sun, 11 Dec 2011 14:24:28 +0000 (15:24 +0100)]
procfs: add /proc/dmap

12 years agoIS: unbreak F6
David van Moolenbroek [Sun, 11 Dec 2011 02:15:54 +0000 (03:15 +0100)]
IS: unbreak F6

12 years agoAdd "expected size" parameter to getsysinfo()
David van Moolenbroek [Sun, 11 Dec 2011 21:30:35 +0000 (22:30 +0100)]
Add "expected size" parameter to getsysinfo()

This patch provides basic protection against damage resulting from
differently compiled servers blindly copying tables to one another.
In every getsysinfo() call, the caller is provided with the expected
size of the requested data structure. The callee fails the call if
the expected size does not match the data structure's actual size.

12 years agoServers: cleanup of some gcc -W warnings
David van Moolenbroek [Sun, 11 Dec 2011 21:32:26 +0000 (22:32 +0100)]
Servers: cleanup of some gcc -W warnings

12 years agoacpi: resolve warnings
David van Moolenbroek [Sat, 10 Dec 2011 15:14:23 +0000 (16:14 +0100)]
acpi: resolve warnings

12 years agoProperly unlock on mount failure
Thomas Veerman [Fri, 9 Dec 2011 15:47:42 +0000 (15:47 +0000)]
Properly unlock on mount failure

12 years agoChange asserts with side effects into panics
Thomas Veerman [Fri, 9 Dec 2011 14:46:10 +0000 (14:46 +0000)]
Change asserts with side effects into panics

12 years agoFix dangling symlink resolving for AVFS and add test61
Thomas Veerman [Thu, 8 Dec 2011 15:01:47 +0000 (15:01 +0000)]
Fix dangling symlink resolving for AVFS and add test61

12 years agoadd -L for future compiler-rt lib location
Ben Gras [Thu, 8 Dec 2011 17:07:30 +0000 (18:07 +0100)]
add -L for future compiler-rt lib location

12 years agoProvide core dumping support for AVFS
Thomas Veerman [Thu, 8 Dec 2011 10:47:11 +0000 (10:47 +0000)]
Provide core dumping support for AVFS

12 years agoEnable GCOV always
Thomas Veerman [Wed, 7 Dec 2011 15:20:26 +0000 (15:20 +0000)]
Enable GCOV always

12 years agoFix test43 for GCC/Clang
Thomas Veerman [Wed, 7 Dec 2011 15:17:38 +0000 (15:17 +0000)]
Fix test43 for GCC/Clang

12 years agobtrace: gcc fix
David van Moolenbroek [Wed, 7 Dec 2011 10:52:12 +0000 (11:52 +0100)]
btrace: gcc fix

12 years agofix bzip2 location in nbsd_ports
Ben Gras [Tue, 6 Dec 2011 15:22:54 +0000 (16:22 +0100)]
fix bzip2 location in nbsd_ports

12 years agoadd previous stat symbols as aliases
Ben Gras [Mon, 5 Dec 2011 23:58:22 +0000 (00:58 +0100)]
add previous stat symbols as aliases

. renaming them causes fallout
. only use the new ones though

12 years agoprinter: perform probe on startup
David van Moolenbroek [Mon, 5 Dec 2011 09:54:58 +0000 (10:54 +0100)]
printer: perform probe on startup

This stops the printer driver from hanging the entire system when
/dev/lp is opened on systems that do not have a parallel port. With
this change, the printer driver shuts down immediately after loading
on such systems.

12 years agolibbdev: extended version
David van Moolenbroek [Mon, 5 Dec 2011 09:53:57 +0000 (10:53 +0100)]
libbdev: extended version

This version of libbdev support asynchronous communication,
recovery after driver restarts, and retrying of failed transfer
operations.

12 years agovfs/avfs: req_newdriver should use fs_sendrec
David van Moolenbroek [Mon, 5 Dec 2011 09:52:46 +0000 (10:52 +0100)]
vfs/avfs: req_newdriver should use fs_sendrec

Using sendrec directly only results in problems. While it is not
clear whether using fs_sendrec is the best option, it is at least
an improvement.

Also remove some legacy cruft.

12 years agoMake block drivers restart with new endpoint
David van Moolenbroek [Mon, 5 Dec 2011 09:52:21 +0000 (10:52 +0100)]
Make block drivers restart with new endpoint

12 years agoSEF: default to endpoint-changing restart
David van Moolenbroek [Mon, 5 Dec 2011 09:51:58 +0000 (10:51 +0100)]
SEF: default to endpoint-changing restart

12 years agoRS: support for endpoint-changing driver restarts
David van Moolenbroek [Mon, 5 Dec 2011 09:51:30 +0000 (10:51 +0100)]
RS: support for endpoint-changing driver restarts

12 years agoinit: write boot entry to root wtmp
David van Moolenbroek [Mon, 5 Dec 2011 09:55:50 +0000 (10:55 +0100)]
init: write boot entry to root wtmp

This unbreaks the fsck check on startup.

12 years ago.gitignore: add more generated files
David van Moolenbroek [Sat, 3 Dec 2011 23:03:28 +0000 (00:03 +0100)]
.gitignore: add more generated files

12 years agolibmthread: add mthread_event_fire_all
Raja Appuswamy [Thu, 1 Dec 2011 13:52:25 +0000 (14:52 +0100)]
libmthread: add mthread_event_fire_all

12 years agolibblockdriver: allow for mixed sync/async replies
David van Moolenbroek [Wed, 30 Nov 2011 18:07:04 +0000 (19:07 +0100)]
libblockdriver: allow for mixed sync/async replies

12 years agoVFS/FS: REQ_NEW_DRIVER now provides a label
David van Moolenbroek [Wed, 30 Nov 2011 18:05:26 +0000 (19:05 +0100)]
VFS/FS: REQ_NEW_DRIVER now provides a label

12 years agoFix stat symbols
Thomas Veerman [Tue, 29 Nov 2011 11:39:22 +0000 (11:39 +0000)]
Fix stat symbols

12 years agolibpuffs: remove unused block device code
David van Moolenbroek [Tue, 29 Nov 2011 15:02:37 +0000 (16:02 +0100)]
libpuffs: remove unused block device code

12 years agoadding rwlock and event support to mthread
Raja Appuswamy [Tue, 29 Nov 2011 13:03:49 +0000 (14:03 +0100)]
adding rwlock and event support to mthread

12 years agolibblockdriver: allow for not handling partitions
David van Moolenbroek [Fri, 25 Nov 2011 13:56:46 +0000 (14:56 +0100)]
libblockdriver: allow for not handling partitions

Each block driver now gets to specify whether it is a disk block
driver, which implies it wants the library to handle getting and
setting partitions for it.

12 years agoDon't run package rc's when booting from cd.
Ben Gras [Fri, 25 Nov 2011 16:34:06 +0000 (17:34 +0100)]
Don't run package rc's when booting from cd.

12 years agoetc: Make fixes
Ben Gras [Fri, 25 Nov 2011 17:27:22 +0000 (18:27 +0100)]
etc: Make fixes

. leave out obsolete binary_sizes*
. really force targets

12 years agoFine grained compatibility with _RENAMEd symbols
Thomas Veerman [Mon, 28 Nov 2011 10:12:44 +0000 (10:12 +0000)]
Fine grained compatibility with _RENAMEd symbols

The NetBSD libc provides a mechanism to have versions of system calls.
By 'renaming' symbols to a new version, freshly compiled programs will
automatically use the new symbol iff they use the proper header files. The
old, not renamed, version of the symbol will still exist (after being moved
to the compat directory), so old programs can still link.

Since MINIX doesn't support dynamic linking, the whole rename mechanism
doesn't really work for us. However, removing it would create a huge diff
with the current NetBSD libc.

A lot of the compat code relies on things we don't (seem to) have, and
therefore does not get built and linked. This causes trouble for tools like
autoconf, which will fail to find the renamed symbols. For example,
currently select gets renamed to __select50 in libc. Autoconf looks for
'select' and doesn't find it and reports we don't have it. This is where
the compat.S stub comes into play: it generates the old symbols and jumps to
the new symbols. However, as this is done in one object file, all renamed
symbols get linked together, causing binaries to be huge. This patch fixes
that by generating an object file for each renamed symbol.

This patch also makes the MISSING_SYSCALLS more complete and marginally
reduces the diff with NetBSD.

12 years agoFix many more comiler warnings
Thomas Veerman [Mon, 28 Nov 2011 10:07:55 +0000 (10:07 +0000)]
Fix many more comiler warnings

Most warnings were harmless, some real bugs. Test set should now compile
cleanly with ack, gcc, and clang.

12 years agoImplement issetugid syscall
Thomas Veerman [Mon, 28 Nov 2011 10:03:43 +0000 (10:03 +0000)]
Implement issetugid syscall

Implement issetugid syscall and provide a test. This gets rid of the
scary "Unsecure. Implement me" warning during compilation.

12 years agovm: report cropped region sizes
Ben Gras [Sat, 26 Nov 2011 15:12:17 +0000 (15:12 +0000)]
vm: report cropped region sizes

. when reporting on regions, only report part of the
  region (addr and length) that really has memory mapped
  into it
. to minimise core files

12 years agofix rm -f
Joseph Koshy [Fri, 25 Nov 2011 16:20:33 +0000 (21:50 +0530)]
fix rm -f

    "/bin/rm" should not issue a usage message if the "-f" option was
    specified.

12 years agoAdd block device tracing facility
David van Moolenbroek [Thu, 24 Nov 2011 13:50:13 +0000 (14:50 +0100)]
Add block device tracing facility

The implementation is in libblockdriver, and works transparently for
all block drivers. The new btrace(8) tool can be used to control block
tracing; see ``man btrace'' for details.

12 years agovfs/avfs: map O_ACCMODE to R_BIT|W_BIT on recovery
David van Moolenbroek [Thu, 24 Nov 2011 12:57:36 +0000 (13:57 +0100)]
vfs/avfs: map O_ACCMODE to R_BIT|W_BIT on recovery

12 years agoavfs: unbreak process termination on PM_DUMPCORE
David van Moolenbroek [Thu, 24 Nov 2011 12:04:52 +0000 (13:04 +0100)]
avfs: unbreak process termination on PM_DUMPCORE

12 years agoAdd vbox -- VirtualBox time sync driver
David van Moolenbroek [Wed, 23 Nov 2011 17:15:43 +0000 (18:15 +0100)]
Add vbox -- VirtualBox time sync driver

Sets time forward to match the host time.

Started automatically if the corresponding device is present.

12 years agoFS servers: fix dependencies broken in git-af01bda
David van Moolenbroek [Wed, 23 Nov 2011 16:03:16 +0000 (17:03 +0100)]
FS servers: fix dependencies broken in git-af01bda

12 years agochange rc defaults reading
Ben Gras [Wed, 23 Nov 2011 15:01:00 +0000 (15:01 +0000)]
change rc defaults reading

. always install them (overwrite)
. source minix one from /etc/defaults/rc.conf
  so that it'll get read on existing installs
  without overwriting rc.conf (doesn't happen by default
  as it's user-editable), needed for new netconf system
. reported by Tenkawa