]> Zhao Yanbai Git Server - minix.git/commit
libsys: various updates
authorDavid van Moolenbroek <david@minix3.org>
Sun, 3 Nov 2013 21:33:44 +0000 (22:33 +0100)
committerLionel Sambuc <lionel@minix3.org>
Sat, 1 Mar 2014 08:05:00 +0000 (09:05 +0100)
commit80bd109cd3fe770e7cbabc34ee1b44dcc0c8b239
tree76552c8002e1336720a6b8efd515f5a9ee9ed988
parentefd3487bc57acb651ca6e658a123e6809183701b
libsys: various updates

- move system calls for use by services from libminlib into libsys;
- move srv_fork(2) and srv_kill(2) from RS and into libsys;
- replace getprocnr(2) with sef_self(3);
- rename previous getnprocnr(2) to getprocnr(2);
- clean up getepinfo(2);
- change all libsys calls that used _syscall to use _taskcall, so as
  to avoid going through errno to pass errors; this is already how
  most calls work anyway, and many of the calls previously using
  _syscall were already assumed to return the actual error;
- initialize request messages to zero, for future compatibility
  (note that this does not include PCI calls, which are in need of a
  much bigger overhaul, nor kernel calls);
- clean up more of dead DS code as a side effect.

Change-Id: I8788f54c68598fcf58e23486e270c2d749780ebb
82 files changed:
drivers/uds/ioc_uds.c
drivers/vnd/vnd.c
include/lib.h
include/minix/callnr.h
include/minix/com.h
include/minix/ds.h
include/minix/sef.h
include/minix/syslib.h
kernel/extract-mfield.sh
lib/libblockdriver/driver.c
lib/libchardriver/chardriver.c
lib/libi2cdriver/i2cdriver.c
lib/libinputdriver/inputdriver.c
lib/libminlib/Makefile
lib/libminlib/getngid.c [deleted file]
lib/libminlib/getnpid.c [deleted file]
lib/libminlib/getnprocnr.c [deleted file]
lib/libminlib/getnucred.c [deleted file]
lib/libminlib/getnuid.c [deleted file]
lib/libminlib/getprocnr.c [deleted file]
lib/libminlib/mapdriver.c [deleted file]
lib/libminlib/vm_memctl.c [deleted file]
lib/libminlib/vm_query_exit.c [deleted file]
lib/libminlib/vm_set_priv.c [deleted file]
lib/libminlib/vm_update.c [deleted file]
lib/libnetdriver/netdriver.c
lib/libpuffs/glo.h
lib/libpuffs/puffs.c
lib/libsys/Makefile
lib/libsys/checkperms.c [moved from lib/libminlib/checkperms.c with 73% similarity]
lib/libsys/copyfd.c [moved from lib/libminlib/copyfd.c with 74% similarity]
lib/libsys/ds.c
lib/libsys/fkey_ctl.c
lib/libsys/getepinfo.c [new file with mode: 0644]
lib/libsys/getprocnr.c [new file with mode: 0644]
lib/libsys/getsysinfo.c
lib/libsys/mapdriver.c [new file with mode: 0644]
lib/libsys/sched_start.c
lib/libsys/sched_stop.c
lib/libsys/sef.c
lib/libsys/sef_init.c
lib/libsys/srv_fork.c [new file with mode: 0644]
lib/libsys/srv_kill.c [new file with mode: 0644]
lib/libsys/taskcall.c
lib/libsys/vm_brk.c
lib/libsys/vm_exit.c
lib/libsys/vm_fork.c
lib/libsys/vm_info.c
lib/libsys/vm_map_phys.c
lib/libsys/vm_memctl.c [new file with mode: 0644]
lib/libsys/vm_notify_sig.c
lib/libsys/vm_query_exit.c [new file with mode: 0644]
lib/libsys/vm_set_priv.c [new file with mode: 0644]
lib/libsys/vm_umap.c
lib/libsys/vm_update.c [new file with mode: 0644]
servers/ds/store.h
servers/ext2/glo.h
servers/ext2/main.c
servers/ipc/inc.h
servers/ipc/main.c
servers/ipc/sem.c
servers/ipc/shm.c
servers/is/main.c
servers/iso9660fs/glo.h
servers/iso9660fs/main.c
servers/iso9660fs/protect.c
servers/mfs/glo.h
servers/mfs/main.c
servers/pm/misc.c
servers/pm/proto.h
servers/pm/table.c
servers/rs/main.c
servers/rs/manager.c
servers/rs/proto.h
servers/vfs/dmap.c
servers/vfs/param.h
test/ds/README
test/ds/dstest.c
test/ds/subs.c
test/safecopy/grantor.c
test/safecopy/inc.h
test/safecopy/requestor.c