File:  [DragonFly] / src / sys / sys / syscall.h
Revision 1.16: download - view: text, annotated - select for diffs
Tue Jan 20 18:41:51 2004 UTC (10 years, 3 months ago) by dillon
Branches: MAIN
CVS tags: HEAD
Resident executable support stage 1/4: Add kernel bits and syscall support
for in-kernel caching of vmspace structures.  The main purpose of this
feature is to make it possible to run dynamically linked programs as fast
as if they were statically linked, by vmspace_fork()ing their vmspace and
saving the copy in the kernel, then using that whenever the program is
exec'd.

    1: /*
    2:  * System call numbers.
    3:  *
    4:  * DO NOT EDIT-- this file is automatically generated.
    5:  * $DragonFly: src/sys/sys/syscall.h,v 1.16 2004/01/20 18:41:51 dillon Exp $
    6:  * created from DragonFly: src/sys/kern/syscalls.master,v 1.10 2004/01/18 12:31:08 dillon Exp 
    7:  */
    8: 
    9: #define	SYS_syscall	0
   10: #define	SYS_exit	1
   11: #define	SYS_fork	2
   12: #define	SYS_read	3
   13: #define	SYS_write	4
   14: #define	SYS_open	5
   15: #define	SYS_close	6
   16: #define	SYS_wait4	7
   17: 				/* 8 is old creat */
   18: #define	SYS_link	9
   19: #define	SYS_unlink	10
   20: 				/* 11 is obsolete execv */
   21: #define	SYS_chdir	12
   22: #define	SYS_fchdir	13
   23: #define	SYS_mknod	14
   24: #define	SYS_chmod	15
   25: #define	SYS_chown	16
   26: #define	SYS_break	17
   27: #define	SYS_getfsstat	18
   28: 				/* 19 is old lseek */
   29: #define	SYS_getpid	20
   30: #define	SYS_mount	21
   31: #define	SYS_unmount	22
   32: #define	SYS_setuid	23
   33: #define	SYS_getuid	24
   34: #define	SYS_geteuid	25
   35: #define	SYS_ptrace	26
   36: #define	SYS_recvmsg	27
   37: #define	SYS_sendmsg	28
   38: #define	SYS_recvfrom	29
   39: #define	SYS_accept	30
   40: #define	SYS_getpeername	31
   41: #define	SYS_getsockname	32
   42: #define	SYS_access	33
   43: #define	SYS_chflags	34
   44: #define	SYS_fchflags	35
   45: #define	SYS_sync	36
   46: #define	SYS_kill	37
   47: 				/* 38 is old stat */
   48: #define	SYS_getppid	39
   49: 				/* 40 is old lstat */
   50: #define	SYS_dup	41
   51: #define	SYS_pipe	42
   52: #define	SYS_getegid	43
   53: #define	SYS_profil	44
   54: #define	SYS_ktrace	45
   55: 				/* 46 is obsolete freebsd3_sigaction */
   56: #define	SYS_getgid	47
   57: 				/* 48 is obsolete freebsd3_sigprocmask */
   58: #define	SYS_getlogin	49
   59: #define	SYS_setlogin	50
   60: #define	SYS_acct	51
   61: 				/* 52 is obsolete freebsd3_sigpending */
   62: #define	SYS_sigaltstack	53
   63: #define	SYS_ioctl	54
   64: #define	SYS_reboot	55
   65: #define	SYS_revoke	56
   66: #define	SYS_symlink	57
   67: #define	SYS_readlink	58
   68: #define	SYS_execve	59
   69: #define	SYS_umask	60
   70: #define	SYS_chroot	61
   71: 				/* 62 is old fstat */
   72: 				/* 63 is old getkerninfo */
   73: 				/* 64 is old getpagesize */
   74: #define	SYS_msync	65
   75: #define	SYS_vfork	66
   76: 				/* 67 is obsolete vread */
   77: 				/* 68 is obsolete vwrite */
   78: #define	SYS_sbrk	69
   79: #define	SYS_sstk	70
   80: 				/* 71 is old mmap */
   81: #define	SYS_vadvise	72
   82: #define	SYS_munmap	73
   83: #define	SYS_mprotect	74
   84: #define	SYS_madvise	75
   85: 				/* 76 is obsolete vhangup */
   86: 				/* 77 is obsolete vlimit */
   87: #define	SYS_mincore	78
   88: #define	SYS_getgroups	79
   89: #define	SYS_setgroups	80
   90: #define	SYS_getpgrp	81
   91: #define	SYS_setpgid	82
   92: #define	SYS_setitimer	83
   93: 				/* 84 is old wait */
   94: #define	SYS_swapon	85
   95: #define	SYS_getitimer	86
   96: 				/* 87 is old gethostname */
   97: 				/* 88 is old sethostname */
   98: #define	SYS_getdtablesize	89
   99: #define	SYS_dup2	90
  100: #define	SYS_fcntl	92
  101: #define	SYS_select	93
  102: #define	SYS_fsync	95
  103: #define	SYS_setpriority	96
  104: #define	SYS_socket	97
  105: #define	SYS_connect	98
  106: 				/* 99 is old accept */
  107: #define	SYS_getpriority	100
  108: 				/* 101 is old send */
  109: 				/* 102 is old recv */
  110: 				/* 103 is obsolete freebsd3_sigreturn */
  111: #define	SYS_bind	104
  112: #define	SYS_setsockopt	105
  113: #define	SYS_listen	106
  114: 				/* 107 is obsolete vtimes */
  115: 				/* 108 is old sigvec */
  116: 				/* 109 is old sigblock */
  117: 				/* 110 is old sigsetmask */
  118: 				/* 111 is obsolete freebsd3_sigsuspend */
  119: 				/* 112 is old sigstack */
  120: 				/* 113 is old recvmsg */
  121: 				/* 114 is old sendmsg */
  122: 				/* 115 is obsolete vtrace */
  123: #define	SYS_gettimeofday	116
  124: #define	SYS_getrusage	117
  125: #define	SYS_getsockopt	118
  126: #define	SYS_readv	120
  127: #define	SYS_writev	121
  128: #define	SYS_settimeofday	122
  129: #define	SYS_fchown	123
  130: #define	SYS_fchmod	124
  131: 				/* 125 is old recvfrom */
  132: #define	SYS_setreuid	126
  133: #define	SYS_setregid	127
  134: #define	SYS_rename	128
  135: 				/* 129 is old truncate */
  136: 				/* 130 is old ftruncate */
  137: #define	SYS_flock	131
  138: #define	SYS_mkfifo	132
  139: #define	SYS_sendto	133
  140: #define	SYS_shutdown	134
  141: #define	SYS_socketpair	135
  142: #define	SYS_mkdir	136
  143: #define	SYS_rmdir	137
  144: #define	SYS_utimes	138
  145: 				/* 139 is obsolete 4.2 sigreturn */
  146: #define	SYS_adjtime	140
  147: 				/* 141 is old getpeername */
  148: 				/* 142 is old gethostid */
  149: 				/* 143 is old sethostid */
  150: 				/* 144 is old getrlimit */
  151: 				/* 145 is old setrlimit */
  152: 				/* 146 is old killpg */
  153: #define	SYS_setsid	147
  154: #define	SYS_quotactl	148
  155: 				/* 149 is old quota */
  156: 				/* 150 is old getsockname */
  157: #define	SYS_nfssvc	155
  158: 				/* 156 is old getdirentries */
  159: #define	SYS_statfs	157
  160: #define	SYS_fstatfs	158
  161: #define	SYS_getfh	161
  162: #define	SYS_getdomainname	162
  163: #define	SYS_setdomainname	163
  164: #define	SYS_uname	164
  165: #define	SYS_sysarch	165
  166: #define	SYS_rtprio	166
  167: #define	SYS_semsys	169
  168: #define	SYS_msgsys	170
  169: #define	SYS_shmsys	171
  170: #define	SYS_pread	173
  171: #define	SYS_pwrite	174
  172: #define	SYS_ntp_adjtime	176
  173: #define	SYS_setgid	181
  174: #define	SYS_setegid	182
  175: #define	SYS_seteuid	183
  176: #define	SYS_stat	188
  177: #define	SYS_fstat	189
  178: #define	SYS_lstat	190
  179: #define	SYS_pathconf	191
  180: #define	SYS_fpathconf	192
  181: #define	SYS_getrlimit	194
  182: #define	SYS_setrlimit	195
  183: #define	SYS_getdirentries	196
  184: #define	SYS_mmap	197
  185: #define	SYS___syscall	198
  186: #define	SYS_lseek	199
  187: #define	SYS_truncate	200
  188: #define	SYS_ftruncate	201
  189: #define	SYS___sysctl	202
  190: #define	SYS_mlock	203
  191: #define	SYS_munlock	204
  192: #define	SYS_undelete	205
  193: #define	SYS_futimes	206
  194: #define	SYS_getpgid	207
  195: #define	SYS_poll	209
  196: #define	SYS___semctl	220
  197: #define	SYS_semget	221
  198: #define	SYS_semop	222
  199: #define	SYS_msgctl	224
  200: #define	SYS_msgget	225
  201: #define	SYS_msgsnd	226
  202: #define	SYS_msgrcv	227
  203: #define	SYS_shmat	228
  204: #define	SYS_shmctl	229
  205: #define	SYS_shmdt	230
  206: #define	SYS_shmget	231
  207: #define	SYS_clock_gettime	232
  208: #define	SYS_clock_settime	233
  209: #define	SYS_clock_getres	234
  210: #define	SYS_nanosleep	240
  211: #define	SYS_minherit	250
  212: #define	SYS_rfork	251
  213: #define	SYS_openbsd_poll	252
  214: #define	SYS_issetugid	253
  215: #define	SYS_lchown	254
  216: #define	SYS_getdents	272
  217: #define	SYS_lchmod	274
  218: #define	SYS_netbsd_lchown	275
  219: #define	SYS_lutimes	276
  220: #define	SYS_netbsd_msync	277
  221: #define	SYS_nstat	278
  222: #define	SYS_nfstat	279
  223: #define	SYS_nlstat	280
  224: #define	SYS_fhstatfs	297
  225: #define	SYS_fhopen	298
  226: #define	SYS_fhstat	299
  227: #define	SYS_modnext	300
  228: #define	SYS_modstat	301
  229: #define	SYS_modfnext	302
  230: #define	SYS_modfind	303
  231: #define	SYS_kldload	304
  232: #define	SYS_kldunload	305
  233: #define	SYS_kldfind	306
  234: #define	SYS_kldnext	307
  235: #define	SYS_kldstat	308
  236: #define	SYS_kldfirstmod	309
  237: #define	SYS_getsid	310
  238: #define	SYS_setresuid	311
  239: #define	SYS_setresgid	312
  240: 				/* 313 is obsolete signanosleep */
  241: #define	SYS_aio_return	314
  242: #define	SYS_aio_suspend	315
  243: #define	SYS_aio_cancel	316
  244: #define	SYS_aio_error	317
  245: #define	SYS_aio_read	318
  246: #define	SYS_aio_write	319
  247: #define	SYS_lio_listio	320
  248: #define	SYS_yield	321
  249: #define	SYS_thr_sleep	322
  250: #define	SYS_thr_wakeup	323
  251: #define	SYS_mlockall	324
  252: #define	SYS_munlockall	325
  253: #define	SYS___getcwd	326
  254: #define	SYS_sched_setparam	327
  255: #define	SYS_sched_getparam	328
  256: #define	SYS_sched_setscheduler	329
  257: #define	SYS_sched_getscheduler	330
  258: #define	SYS_sched_yield	331
  259: #define	SYS_sched_get_priority_max	332
  260: #define	SYS_sched_get_priority_min	333
  261: #define	SYS_sched_rr_get_interval	334
  262: #define	SYS_utrace	335
  263: 				/* 336 is obsolete freebsd4_sendfile */
  264: #define	SYS_kldsym	337
  265: #define	SYS_jail	338
  266: #define	SYS_sigprocmask	340
  267: #define	SYS_sigsuspend	341
  268: #define	SYS_sigaction	342
  269: #define	SYS_sigpending	343
  270: #define	SYS_sigreturn	344
  271: #define	SYS___acl_get_file	347
  272: #define	SYS___acl_set_file	348
  273: #define	SYS___acl_get_fd	349
  274: #define	SYS___acl_set_fd	350
  275: #define	SYS___acl_delete_file	351
  276: #define	SYS___acl_delete_fd	352
  277: #define	SYS___acl_aclcheck_file	353
  278: #define	SYS___acl_aclcheck_fd	354
  279: #define	SYS_extattrctl	355
  280: #define	SYS_extattr_set_file	356
  281: #define	SYS_extattr_get_file	357
  282: #define	SYS_extattr_delete_file	358
  283: #define	SYS_aio_waitcomplete	359
  284: #define	SYS_getresuid	360
  285: #define	SYS_getresgid	361
  286: #define	SYS_kqueue	362
  287: #define	SYS_kevent	363
  288: #define	SYS_sendfile	393
  289: #define	SYS_varsym_set	450
  290: #define	SYS_varsym_get	451
  291: #define	SYS_varsym_list	452
  292: #define	SYS_upc_register	453
  293: #define	SYS_upc_control	454
  294: #define	SYS_caps_sys_service	455
  295: #define	SYS_caps_sys_client	456
  296: #define	SYS_caps_sys_close	457
  297: #define	SYS_caps_sys_put	458
  298: #define	SYS_caps_sys_reply	459
  299: #define	SYS_caps_sys_get	460
  300: #define	SYS_caps_sys_wait	461
  301: #define	SYS_caps_sys_abort	462
  302: #define	SYS_exec_sys_register	465
  303: #define	SYS_exec_sys_unregister	466
  304: #define	SYS_MAXSYSCALL	467