cvs commit: src/sys/kern init_sysent.c kern_fork.c lwkt_caps.c syscalls.c syscalls.master src/sys/sys caps.h syscall-hide.h syscall.h sysproto.h sysunion.h

Matthew Dillon dillon at
Sat Mar 6 14:15:14 PST 2004

dillon      2004/03/06 14:14:16 PST

DragonFly src repository

  Modified files:
    sys/kern             init_sysent.c kern_fork.c lwkt_caps.c 
                         syscalls.c syscalls.master 
    sys/sys              caps.h syscall-hide.h syscall.h 
                sysproto.h sysunion.h 
  Additional CAPS IPC work.  Add additional system calls to allow a CAPS
  server to set a generation number and a CAPS client to query it, which can
  be used for any purpose but which is intended to allow a server to tell its
  clients to invalidate their caches.
  Add missing fork-handling code.  CAPS links are only good on a thread-by-thread
  basis.  When a process forks/rforks/clones any active CAPS links will be
  created as dummy entries in the forked process, causing CAPS syscalls to
  return ENOTCONN.   This allows code based on CAPS to detect when it has been
  forked so it can re-connect to the service.
  Make a slight change to the API.  caps_sys_put() now returns an immediate
  ENOTCONN if it forked.  Note that userland CAPS code must still deal with
  the case where a message has been sent and the connection is lost before the
  reply is returned.  The kernel automatically replies unreplied messages
  with 0-length data in these cases.
  Add additional flags to the API, including one that allows a client to
  block when connecting to a non-existant service.
  Revision  Changes    Path
  1.16      +3 -3      src/sys/kern/init_sysent.c
  1.19      +2 -0      src/sys/kern/kern_fork.c
  1.2       +139 -18   src/sys/kern/lwkt_caps.c
  1.16      +3 -3      src/sys/kern/syscalls.c
  1.12      +2 -2      src/sys/kern/syscalls.master
  1.5       +9 -2      src/sys/sys/caps.h
  1.17      +3 -1      src/sys/sys/syscall-hide.h
  1.17      +3 -1      src/sys/sys/syscall.h
  1.17      +3 -1      src/sys/sys/
  1.17      +18 -1     src/sys/sys/sysproto.h
  1.14      +3 -1      src/sys/sys/sysunion.h

More information about the Commits mailing list