File:  [DragonFly] / src / sys / sys / syscall-hide.h
Revision 1.17: download - view: text, annotated - select for diffs
Sat Mar 6 22:14:16 2004 UTC (10 years, 1 month ago) by dillon
Branches: MAIN
CVS tags: HEAD, DragonFly_1_0_REL, DragonFly_1_0_RC1, DragonFly_1_0A_REL
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.

    1: /*
    2:  * System call hiders.
    3:  *
    4:  * DO NOT EDIT-- this file is automatically generated.
    5:  * $DragonFly: src/sys/sys/syscall-hide.h,v 1.17 2004/03/06 22:14:16 dillon Exp $
    6:  * created from DragonFly: src/sys/kern/syscalls.master,v 1.11 2004/01/20 18:41:51 dillon Exp 
    7:  */
    8: 
    9: HIDE_POSIX(fork)
   10: HIDE_POSIX(read)
   11: HIDE_POSIX(write)
   12: HIDE_POSIX(open)
   13: HIDE_POSIX(close)
   14: HIDE_BSD(wait4)
   15: HIDE_BSD(creat)
   16: HIDE_POSIX(link)
   17: HIDE_POSIX(unlink)
   18: HIDE_POSIX(chdir)
   19: HIDE_BSD(fchdir)
   20: HIDE_POSIX(mknod)
   21: HIDE_POSIX(chmod)
   22: HIDE_POSIX(chown)
   23: HIDE_BSD(obreak)
   24: HIDE_BSD(getfsstat)
   25: HIDE_POSIX(lseek)
   26: HIDE_POSIX(getpid)
   27: HIDE_BSD(mount)
   28: HIDE_BSD(unmount)
   29: HIDE_POSIX(setuid)
   30: HIDE_POSIX(getuid)
   31: HIDE_POSIX(geteuid)
   32: HIDE_BSD(ptrace)
   33: HIDE_BSD(recvmsg)
   34: HIDE_BSD(sendmsg)
   35: HIDE_BSD(recvfrom)
   36: HIDE_BSD(accept)
   37: HIDE_BSD(getpeername)
   38: HIDE_BSD(getsockname)
   39: HIDE_POSIX(access)
   40: HIDE_BSD(chflags)
   41: HIDE_BSD(fchflags)
   42: HIDE_BSD(sync)
   43: HIDE_POSIX(kill)
   44: HIDE_POSIX(stat)
   45: HIDE_POSIX(getppid)
   46: HIDE_POSIX(lstat)
   47: HIDE_POSIX(dup)
   48: HIDE_POSIX(pipe)
   49: HIDE_POSIX(getegid)
   50: HIDE_BSD(profil)
   51: HIDE_BSD(ktrace)
   52: HIDE_POSIX(getgid)
   53: HIDE_BSD(getlogin)
   54: HIDE_BSD(setlogin)
   55: HIDE_BSD(acct)
   56: HIDE_BSD(sigaltstack)
   57: HIDE_POSIX(ioctl)
   58: HIDE_BSD(reboot)
   59: HIDE_POSIX(revoke)
   60: HIDE_POSIX(symlink)
   61: HIDE_POSIX(readlink)
   62: HIDE_POSIX(execve)
   63: HIDE_POSIX(umask)
   64: HIDE_BSD(chroot)
   65: HIDE_POSIX(fstat)
   66: HIDE_BSD(getkerninfo)
   67: HIDE_BSD(getpagesize)
   68: HIDE_BSD(msync)
   69: HIDE_BSD(vfork)
   70: HIDE_BSD(sbrk)
   71: HIDE_BSD(sstk)
   72: HIDE_BSD(mmap)
   73: HIDE_BSD(ovadvise)
   74: HIDE_BSD(munmap)
   75: HIDE_BSD(mprotect)
   76: HIDE_BSD(madvise)
   77: HIDE_BSD(mincore)
   78: HIDE_POSIX(getgroups)
   79: HIDE_POSIX(setgroups)
   80: HIDE_POSIX(getpgrp)
   81: HIDE_POSIX(setpgid)
   82: HIDE_BSD(setitimer)
   83: HIDE_BSD(wait)
   84: HIDE_BSD(swapon)
   85: HIDE_BSD(getitimer)
   86: HIDE_BSD(gethostname)
   87: HIDE_BSD(sethostname)
   88: HIDE_BSD(getdtablesize)
   89: HIDE_POSIX(dup2)
   90: HIDE_BSD(getdopt)
   91: HIDE_POSIX(fcntl)
   92: HIDE_BSD(select)
   93: HIDE_BSD(setdopt)
   94: HIDE_POSIX(fsync)
   95: HIDE_BSD(setpriority)
   96: HIDE_BSD(socket)
   97: HIDE_BSD(connect)
   98: HIDE_BSD(accept)
   99: HIDE_BSD(getpriority)
  100: HIDE_BSD(send)
  101: HIDE_BSD(recv)
  102: HIDE_BSD(bind)
  103: HIDE_BSD(setsockopt)
  104: HIDE_BSD(listen)
  105: HIDE_BSD(sigvec)
  106: HIDE_BSD(sigblock)
  107: HIDE_BSD(sigsetmask)
  108: HIDE_BSD(sigstack)
  109: HIDE_BSD(recvmsg)
  110: HIDE_BSD(sendmsg)
  111: HIDE_BSD(gettimeofday)
  112: HIDE_BSD(getrusage)
  113: HIDE_BSD(getsockopt)
  114: HIDE_BSD(readv)
  115: HIDE_BSD(writev)
  116: HIDE_BSD(settimeofday)
  117: HIDE_BSD(fchown)
  118: HIDE_BSD(fchmod)
  119: HIDE_BSD(recvfrom)
  120: HIDE_BSD(setreuid)
  121: HIDE_BSD(setregid)
  122: HIDE_POSIX(rename)
  123: HIDE_BSD(truncate)
  124: HIDE_BSD(ftruncate)
  125: HIDE_BSD(flock)
  126: HIDE_POSIX(mkfifo)
  127: HIDE_BSD(sendto)
  128: HIDE_BSD(shutdown)
  129: HIDE_BSD(socketpair)
  130: HIDE_POSIX(mkdir)
  131: HIDE_POSIX(rmdir)
  132: HIDE_BSD(utimes)
  133: HIDE_BSD(adjtime)
  134: HIDE_BSD(getpeername)
  135: HIDE_BSD(gethostid)
  136: HIDE_BSD(sethostid)
  137: HIDE_BSD(getrlimit)
  138: HIDE_BSD(setrlimit)
  139: HIDE_BSD(killpg)
  140: HIDE_POSIX(setsid)
  141: HIDE_BSD(quotactl)
  142: HIDE_BSD(quota)
  143: HIDE_BSD(getsockname)
  144: HIDE_BSD(nfssvc)
  145: HIDE_BSD(getdirentries)
  146: HIDE_BSD(statfs)
  147: HIDE_BSD(fstatfs)
  148: HIDE_BSD(getfh)
  149: HIDE_BSD(getdomainname)
  150: HIDE_BSD(setdomainname)
  151: HIDE_BSD(uname)
  152: HIDE_BSD(sysarch)
  153: HIDE_BSD(rtprio)
  154: HIDE_BSD(semsys)
  155: HIDE_BSD(msgsys)
  156: HIDE_BSD(shmsys)
  157: HIDE_POSIX(pread)
  158: HIDE_POSIX(pwrite)
  159: HIDE_BSD(ntp_adjtime)
  160: HIDE_POSIX(setgid)
  161: HIDE_BSD(setegid)
  162: HIDE_BSD(seteuid)
  163: HIDE_BSD(lfs_bmapv)
  164: HIDE_BSD(lfs_markv)
  165: HIDE_BSD(lfs_segclean)
  166: HIDE_BSD(lfs_segwait)
  167: HIDE_POSIX(stat)
  168: HIDE_POSIX(fstat)
  169: HIDE_POSIX(lstat)
  170: HIDE_POSIX(pathconf)
  171: HIDE_POSIX(fpathconf)
  172: HIDE_BSD(getrlimit)
  173: HIDE_BSD(setrlimit)
  174: HIDE_BSD(getdirentries)
  175: HIDE_BSD(mmap)
  176: HIDE_POSIX(lseek)
  177: HIDE_BSD(truncate)
  178: HIDE_BSD(ftruncate)
  179: HIDE_BSD(__sysctl)
  180: HIDE_BSD(mlock)
  181: HIDE_BSD(munlock)
  182: HIDE_BSD(undelete)
  183: HIDE_BSD(futimes)
  184: HIDE_BSD(getpgid)
  185: HIDE_BSD(poll)
  186: HIDE_BSD(__semctl)
  187: HIDE_BSD(semget)
  188: HIDE_BSD(semop)
  189: HIDE_BSD(msgctl)
  190: HIDE_BSD(msgget)
  191: HIDE_BSD(msgsnd)
  192: HIDE_BSD(msgrcv)
  193: HIDE_BSD(shmat)
  194: HIDE_BSD(shmctl)
  195: HIDE_BSD(shmdt)
  196: HIDE_BSD(shmget)
  197: HIDE_POSIX(clock_gettime)
  198: HIDE_POSIX(clock_settime)
  199: HIDE_POSIX(clock_getres)
  200: HIDE_POSIX(nanosleep)
  201: HIDE_BSD(minherit)
  202: HIDE_BSD(rfork)
  203: HIDE_BSD(openbsd_poll)
  204: HIDE_BSD(issetugid)
  205: HIDE_BSD(lchown)
  206: HIDE_BSD(getdents)
  207: HIDE_BSD(lchmod)
  208: HIDE_BSD(lchown)
  209: HIDE_BSD(lutimes)
  210: HIDE_BSD(msync)
  211: HIDE_BSD(nstat)
  212: HIDE_BSD(nfstat)
  213: HIDE_BSD(nlstat)
  214: HIDE_BSD(fhstatfs)
  215: HIDE_BSD(fhopen)
  216: HIDE_BSD(fhstat)
  217: HIDE_BSD(modnext)
  218: HIDE_BSD(modstat)
  219: HIDE_BSD(modfnext)
  220: HIDE_BSD(modfind)
  221: HIDE_BSD(kldload)
  222: HIDE_BSD(kldunload)
  223: HIDE_BSD(kldfind)
  224: HIDE_BSD(kldnext)
  225: HIDE_BSD(kldstat)
  226: HIDE_BSD(kldfirstmod)
  227: HIDE_BSD(getsid)
  228: HIDE_BSD(setresuid)
  229: HIDE_BSD(setresgid)
  230: HIDE_BSD(aio_return)
  231: HIDE_BSD(aio_suspend)
  232: HIDE_BSD(aio_cancel)
  233: HIDE_BSD(aio_error)
  234: HIDE_BSD(aio_read)
  235: HIDE_BSD(aio_write)
  236: HIDE_BSD(lio_listio)
  237: HIDE_BSD(yield)
  238: HIDE_BSD(thr_sleep)
  239: HIDE_BSD(thr_wakeup)
  240: HIDE_BSD(mlockall)
  241: HIDE_BSD(munlockall)
  242: HIDE_BSD(__getcwd)
  243: HIDE_POSIX(sched_setparam)
  244: HIDE_POSIX(sched_getparam)
  245: HIDE_POSIX(sched_setscheduler)
  246: HIDE_POSIX(sched_getscheduler)
  247: HIDE_POSIX(sched_yield)
  248: HIDE_POSIX(sched_get_priority_max)
  249: HIDE_POSIX(sched_get_priority_min)
  250: HIDE_POSIX(sched_rr_get_interval)
  251: HIDE_BSD(utrace)
  252: HIDE_BSD(kldsym)
  253: HIDE_BSD(jail)
  254: HIDE_BSD(pioctl)
  255: HIDE_POSIX(sigprocmask)
  256: HIDE_POSIX(sigsuspend)
  257: HIDE_POSIX(sigaction)
  258: HIDE_POSIX(sigpending)
  259: HIDE_BSD(sigreturn)
  260: HIDE_BSD(__acl_get_file)
  261: HIDE_BSD(__acl_set_file)
  262: HIDE_BSD(__acl_get_fd)
  263: HIDE_BSD(__acl_set_fd)
  264: HIDE_BSD(__acl_delete_file)
  265: HIDE_BSD(__acl_delete_fd)
  266: HIDE_BSD(__acl_aclcheck_file)
  267: HIDE_BSD(__acl_aclcheck_fd)
  268: HIDE_BSD(extattrctl)
  269: HIDE_BSD(extattr_set_file)
  270: HIDE_BSD(extattr_get_file)
  271: HIDE_BSD(extattr_delete_file)
  272: HIDE_BSD(aio_waitcomplete)
  273: HIDE_BSD(getresuid)
  274: HIDE_BSD(getresgid)
  275: HIDE_BSD(kqueue)
  276: HIDE_BSD(kevent)
  277: HIDE_BSD(sendfile)
  278: HIDE_BSD(varsym_set)
  279: HIDE_BSD(varsym_get)
  280: HIDE_BSD(varsym_list)
  281: HIDE_BSD(upc_register)
  282: HIDE_BSD(upc_control)
  283: HIDE_BSD(caps_sys_service)
  284: HIDE_BSD(caps_sys_client)
  285: HIDE_BSD(caps_sys_close)
  286: HIDE_BSD(caps_sys_put)
  287: HIDE_BSD(caps_sys_reply)
  288: HIDE_BSD(caps_sys_get)
  289: HIDE_BSD(caps_sys_wait)
  290: HIDE_BSD(caps_sys_abort)
  291: HIDE_BSD(caps_sys_getgen)
  292: HIDE_BSD(caps_sys_setgen)
  293: HIDE_BSD(exec_sys_register)
  294: HIDE_BSD(exec_sys_unregister)