1/* $NetBSD: sunos_syscall.h,v 1.99 2020/06/11 03:47:05 dholland Exp $ */ 2 3/* 4 * System call numbers. 5 * 6 * DO NOT EDIT-- this file is automatically generated. 7 * created from NetBSD: syscalls.master,v 1.82 2019/09/23 20:42:29 christos Exp 8 */ 9 10#ifndef _SUNOS_SYS_SYSCALL_H_ 11#define _SUNOS_SYS_SYSCALL_H_ 12 13#define SUNOS_SYS_MAXSYSARGS 8 14 15/* syscall: "syscall" ret: "int" args: */ 16#define SUNOS_SYS_syscall 0 17 18/* syscall: "exit" ret: "int" args: "int" */ 19#define SUNOS_SYS_exit 1 20 21/* syscall: "fork" ret: "int" args: */ 22#define SUNOS_SYS_fork 2 23 24/* syscall: "read" ret: "int" args: "int" "char *" "u_int" */ 25#define SUNOS_SYS_read 3 26 27/* syscall: "write" ret: "int" args: "int" "char *" "u_int" */ 28#define SUNOS_SYS_write 4 29 30/* syscall: "open" ret: "int" args: "const char *" "int" "int" */ 31#define SUNOS_SYS_open 5 32 33/* syscall: "close" ret: "int" args: "int" */ 34#define SUNOS_SYS_close 6 35 36/* syscall: "wait4" ret: "int" args: "int" "int *" "int" "struct rusage50 *" */ 37#define SUNOS_SYS_wait4 7 38 39/* syscall: "creat" ret: "int" args: "const char *" "int" */ 40#define SUNOS_SYS_creat 8 41 42/* syscall: "link" ret: "int" args: "char *" "char *" */ 43#define SUNOS_SYS_link 9 44 45/* syscall: "unlink" ret: "int" args: "char *" */ 46#define SUNOS_SYS_unlink 10 47 48/* syscall: "execv" ret: "int" args: "const char *" "char **" */ 49#define SUNOS_SYS_execv 11 50 51/* syscall: "chdir" ret: "int" args: "char *" */ 52#define SUNOS_SYS_chdir 12 53 54 /* 13 is obsolete old_time */ 55/* syscall: "mknod" ret: "int" args: "const char *" "int" "int" */ 56#define SUNOS_SYS_mknod 14 57 58/* syscall: "chmod" ret: "int" args: "char *" "int" */ 59#define SUNOS_SYS_chmod 15 60 61/* syscall: "chown" ret: "int" args: "char *" "int" "int" */ 62#define SUNOS_SYS_chown 16 63 64/* syscall: "break" ret: "int" args: "char *" */ 65#define SUNOS_SYS_break 17 66 67 /* 18 is obsolete old_stat */ 68/* syscall: "lseek" ret: "long" args: "int" "long" "int" */ 69#define SUNOS_SYS_lseek 19 70 71/* syscall: "getpid_with_ppid" ret: "pid_t" args: */ 72#define SUNOS_SYS_getpid_with_ppid 20 73 74 /* 21 is obsolete sunos_old_mount */ 75/* syscall: "setuid" ret: "int" args: "uid_t" */ 76#define SUNOS_SYS_setuid 23 77 78/* syscall: "getuid_with_euid" ret: "uid_t" args: */ 79#define SUNOS_SYS_getuid_with_euid 24 80 81/* syscall: "stime" ret: "int" args: "sunos_time_t *" */ 82#define SUNOS_SYS_stime 25 83 84/* syscall: "ptrace" ret: "long" args: "int" "pid_t" "void *" "int" "char *" */ 85#define SUNOS_SYS_ptrace 26 86 87/* syscall: "access" ret: "int" args: "const char *" "int" */ 88#define SUNOS_SYS_access 33 89 90/* syscall: "sync" ret: "int" args: */ 91#define SUNOS_SYS_sync 36 92 93/* syscall: "kill" ret: "int" args: "int" "int" */ 94#define SUNOS_SYS_kill 37 95 96/* syscall: "stat" ret: "int" args: "const char *" "struct stat43 *" */ 97#define SUNOS_SYS_stat 38 98 99/* syscall: "lstat" ret: "int" args: "const char *" "struct stat43 *" */ 100#define SUNOS_SYS_lstat 40 101 102/* syscall: "dup" ret: "int" args: "int" */ 103#define SUNOS_SYS_dup 41 104 105/* syscall: "pipe" ret: "int" args: */ 106#define SUNOS_SYS_pipe 42 107 108/* syscall: "profil" ret: "int" args: "void *" "u_int" "u_int" "u_int" */ 109#define SUNOS_SYS_profil 44 110 111/* syscall: "setgid" ret: "int" args: "uid_t" */ 112#define SUNOS_SYS_setgid 46 113 114/* syscall: "getgid_with_egid" ret: "gid_t" args: */ 115#define SUNOS_SYS_getgid_with_egid 47 116 117/* syscall: "acct" ret: "int" args: "char *" */ 118#define SUNOS_SYS_acct 51 119 120/* syscall: "mctl" ret: "int" args: "void *" "int" "int" "void *" */ 121#define SUNOS_SYS_mctl 53 122 123/* syscall: "ioctl" ret: "int" args: "int" "u_long" "void *" */ 124#define SUNOS_SYS_ioctl 54 125 126/* syscall: "reboot" ret: "int" args: "int" "char *" */ 127#define SUNOS_SYS_reboot 55 128 129 /* 56 is obsolete sunos_owait3 */ 130/* syscall: "symlink" ret: "int" args: "char *" "char *" */ 131#define SUNOS_SYS_symlink 57 132 133/* syscall: "readlink" ret: "int" args: "char *" "char *" "int" */ 134#define SUNOS_SYS_readlink 58 135 136/* syscall: "execve" ret: "int" args: "const char *" "char **" "char **" */ 137#define SUNOS_SYS_execve 59 138 139/* syscall: "umask" ret: "int" args: "int" */ 140#define SUNOS_SYS_umask 60 141 142/* syscall: "chroot" ret: "int" args: "char *" */ 143#define SUNOS_SYS_chroot 61 144 145/* syscall: "fstat" ret: "int" args: "int" "struct stat43 *" */ 146#define SUNOS_SYS_fstat 62 147 148/* syscall: "getpagesize" ret: "int" args: */ 149#define SUNOS_SYS_getpagesize 64 150 151/* syscall: "omsync" ret: "int" args: "void *" "size_t" "int" */ 152#define SUNOS_SYS_omsync 65 153 154/* syscall: "vfork" ret: "int" args: */ 155#define SUNOS_SYS_vfork 66 156 157 /* 67 is obsolete vread */ 158 /* 68 is obsolete vwrite */ 159 /* 69 is obsolete sbrk */ 160 /* 70 is obsolete sstk */ 161/* syscall: "mmap" ret: "void *" args: "void *" "size_t" "int" "int" "int" "long" */ 162#define SUNOS_SYS_mmap 71 163 164/* syscall: "vadvise" ret: "int" args: "int" */ 165#define SUNOS_SYS_vadvise 72 166 167/* syscall: "munmap" ret: "int" args: "void *" "size_t" */ 168#define SUNOS_SYS_munmap 73 169 170/* syscall: "mprotect" ret: "int" args: "void *" "size_t" "int" */ 171#define SUNOS_SYS_mprotect 74 172 173/* syscall: "madvise" ret: "int" args: "void *" "size_t" "int" */ 174#define SUNOS_SYS_madvise 75 175 176/* syscall: "vhangup" ret: "int" args: */ 177#define SUNOS_SYS_vhangup 76 178 179/* syscall: "mincore" ret: "int" args: "void *" "size_t" "char *" */ 180#define SUNOS_SYS_mincore 78 181 182/* syscall: "getgroups" ret: "int" args: "u_int" "gid_t *" */ 183#define SUNOS_SYS_getgroups 79 184 185/* syscall: "setgroups" ret: "int" args: "u_int" "gid_t *" */ 186#define SUNOS_SYS_setgroups 80 187 188/* syscall: "getpgrp" ret: "int" args: */ 189#define SUNOS_SYS_getpgrp 81 190 191/* syscall: "setpgrp" ret: "int" args: "int" "int" */ 192#define SUNOS_SYS_setpgrp 82 193 194/* syscall: "setitimer" ret: "int" args: "u_int" "struct itimerval50 *" "struct itimerval50 *" */ 195#define SUNOS_SYS_setitimer 83 196 197/* syscall: "swapon" ret: "int" args: "char *" */ 198#define SUNOS_SYS_swapon 85 199 200/* syscall: "getitimer" ret: "int" args: "u_int" "struct itimerval50 *" */ 201#define SUNOS_SYS_getitimer 86 202 203/* syscall: "gethostname" ret: "int" args: "char *" "u_int" */ 204#define SUNOS_SYS_gethostname 87 205 206/* syscall: "sethostname" ret: "int" args: "char *" "u_int" */ 207#define SUNOS_SYS_sethostname 88 208 209/* syscall: "getdtablesize" ret: "int" args: */ 210#define SUNOS_SYS_getdtablesize 89 211 212/* syscall: "dup2" ret: "int" args: "int" "int" */ 213#define SUNOS_SYS_dup2 90 214 215/* syscall: "fcntl" ret: "int" args: "int" "int" "void *" */ 216#define SUNOS_SYS_fcntl 92 217 218/* syscall: "select" ret: "int" args: "u_int" "fd_set *" "fd_set *" "fd_set *" "struct timeval50 *" */ 219#define SUNOS_SYS_select 93 220 221/* syscall: "fsync" ret: "int" args: "int" */ 222#define SUNOS_SYS_fsync 95 223 224/* syscall: "setpriority" ret: "int" args: "int" "int" "int" */ 225#define SUNOS_SYS_setpriority 96 226 227/* syscall: "socket" ret: "int" args: "int" "int" "int" */ 228#define SUNOS_SYS_socket 97 229 230/* syscall: "connect" ret: "int" args: "int" "void *" "int" */ 231#define SUNOS_SYS_connect 98 232 233/* syscall: "accept" ret: "int" args: "int" "void *" "int *" */ 234#define SUNOS_SYS_accept 99 235 236/* syscall: "getpriority" ret: "int" args: "int" "int" */ 237#define SUNOS_SYS_getpriority 100 238 239/* syscall: "send" ret: "int" args: "int" "void *" "int" "int" */ 240#define SUNOS_SYS_send 101 241 242/* syscall: "recv" ret: "int" args: "int" "void *" "int" "int" */ 243#define SUNOS_SYS_recv 102 244 245/* syscall: "bind" ret: "int" args: "int" "void *" "int" */ 246#define SUNOS_SYS_bind 104 247 248/* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "void *" "u_int" */ 249#define SUNOS_SYS_setsockopt 105 250 251/* syscall: "listen" ret: "int" args: "int" "int" */ 252#define SUNOS_SYS_listen 106 253 254/* syscall: "sigvec" ret: "int" args: "int" "struct sigvec *" "struct sigvec *" */ 255#define SUNOS_SYS_sigvec 108 256 257/* syscall: "sigblock" ret: "int" args: "int" */ 258#define SUNOS_SYS_sigblock 109 259 260/* syscall: "sigsetmask" ret: "int" args: "int" */ 261#define SUNOS_SYS_sigsetmask 110 262 263/* syscall: "sigsuspend" ret: "int" args: "int" */ 264#define SUNOS_SYS_sigsuspend 111 265 266/* syscall: "sigstack" ret: "int" args: "struct sigstack *" "struct sigstack *" */ 267#define SUNOS_SYS_sigstack 112 268 269/* syscall: "recvmsg" ret: "int" args: "int" "struct omsghdr *" "int" */ 270#define SUNOS_SYS_recvmsg 113 271 272/* syscall: "sendmsg" ret: "int" args: "int" "void *" "int" */ 273#define SUNOS_SYS_sendmsg 114 274 275 /* 115 is obsolete vtrace */ 276/* syscall: "gettimeofday" ret: "int" args: "struct timeval50 *" "struct timezone *" */ 277#define SUNOS_SYS_gettimeofday 116 278 279/* syscall: "getrusage" ret: "int" args: "int" "struct rusage50 *" */ 280#define SUNOS_SYS_getrusage 117 281 282/* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "void *" "int *" */ 283#define SUNOS_SYS_getsockopt 118 284 285/* syscall: "readv" ret: "int" args: "int" "struct iovec *" "u_int" */ 286#define SUNOS_SYS_readv 120 287 288/* syscall: "writev" ret: "int" args: "int" "struct iovec *" "u_int" */ 289#define SUNOS_SYS_writev 121 290 291/* syscall: "settimeofday" ret: "int" args: "struct timeval50 *" "struct timezone *" */ 292#define SUNOS_SYS_settimeofday 122 293 294/* syscall: "fchown" ret: "int" args: "int" "int" "int" */ 295#define SUNOS_SYS_fchown 123 296 297/* syscall: "fchmod" ret: "int" args: "int" "int" */ 298#define SUNOS_SYS_fchmod 124 299 300/* syscall: "recvfrom" ret: "int" args: "int" "void *" "size_t" "int" "void *" "int *" */ 301#define SUNOS_SYS_recvfrom 125 302 303/* syscall: "setreuid" ret: "int" args: "int" "int" */ 304#define SUNOS_SYS_setreuid 126 305 306/* syscall: "setregid" ret: "int" args: "int" "int" */ 307#define SUNOS_SYS_setregid 127 308 309/* syscall: "rename" ret: "int" args: "char *" "char *" */ 310#define SUNOS_SYS_rename 128 311 312/* syscall: "truncate" ret: "int" args: "char *" "long" */ 313#define SUNOS_SYS_truncate 129 314 315/* syscall: "ftruncate" ret: "int" args: "int" "long" */ 316#define SUNOS_SYS_ftruncate 130 317 318/* syscall: "flock" ret: "int" args: "int" "int" */ 319#define SUNOS_SYS_flock 131 320 321/* syscall: "sendto" ret: "int" args: "int" "void *" "size_t" "int" "void *" "int" */ 322#define SUNOS_SYS_sendto 133 323 324/* syscall: "shutdown" ret: "int" args: "int" "int" */ 325#define SUNOS_SYS_shutdown 134 326 327/* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */ 328#define SUNOS_SYS_socketpair 135 329 330/* syscall: "mkdir" ret: "int" args: "char *" "int" */ 331#define SUNOS_SYS_mkdir 136 332 333/* syscall: "rmdir" ret: "int" args: "char *" */ 334#define SUNOS_SYS_rmdir 137 335 336/* syscall: "utimes" ret: "int" args: "char *" "struct timeval50 *" */ 337#define SUNOS_SYS_utimes 138 338 339/* syscall: "sigreturn" ret: "int" args: "struct sigcontext *" */ 340#define SUNOS_SYS_sigreturn 139 341 342/* syscall: "adjtime" ret: "int" args: "struct timeval50 *" "struct timeval50 *" */ 343#define SUNOS_SYS_adjtime 140 344 345/* syscall: "getpeername" ret: "int" args: "int" "void *" "int *" */ 346#define SUNOS_SYS_getpeername 141 347 348/* syscall: "gethostid" ret: "int" args: */ 349#define SUNOS_SYS_gethostid 142 350 351/* syscall: "getrlimit" ret: "int" args: "u_int" "struct orlimit *" */ 352#define SUNOS_SYS_getrlimit 144 353 354/* syscall: "setrlimit" ret: "int" args: "u_int" "struct orlimit *" */ 355#define SUNOS_SYS_setrlimit 145 356 357/* syscall: "killpg" ret: "int" args: "int" "int" */ 358#define SUNOS_SYS_killpg 146 359 360/* syscall: "getsockname" ret: "int" args: "int" "void *" "int *" */ 361#define SUNOS_SYS_getsockname 150 362 363/* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */ 364#define SUNOS_SYS_poll 153 365 366/* syscall: "getdirentries" ret: "int" args: "int" "char *" "u_int" "long *" */ 367#define SUNOS_SYS_getdirentries 156 368 369/* syscall: "statfs" ret: "int" args: "const char *" "struct sunos_statfs *" */ 370#define SUNOS_SYS_statfs 157 371 372/* syscall: "fstatfs" ret: "int" args: "int" "struct sunos_statfs *" */ 373#define SUNOS_SYS_fstatfs 158 374 375/* syscall: "unmount" ret: "int" args: "char *" */ 376#define SUNOS_SYS_unmount 159 377 378/* syscall: "async_daemon" ret: "int" args: */ 379#define SUNOS_SYS_async_daemon 160 380 381/* syscall: "getfh" ret: "int" args: "char *" "fhandle_t *" */ 382#define SUNOS_SYS_getfh 161 383 384#ifdef COMPAT_09 385/* syscall: "getdomainname" ret: "int" args: "char *" "int" */ 386#define SUNOS_SYS_getdomainname 162 387 388/* syscall: "setdomainname" ret: "int" args: "char *" "int" */ 389#define SUNOS_SYS_setdomainname 163 390 391#else 392#endif 393/* syscall: "quotactl" ret: "int" args: "int" "char *" "int" "void *" */ 394#define SUNOS_SYS_quotactl 165 395 396/* syscall: "exportfs" ret: "int" args: "char *" "char *" */ 397#define SUNOS_SYS_exportfs 166 398 399/* syscall: "mount" ret: "int" args: "char *" "char *" "int" "void *" */ 400#define SUNOS_SYS_mount 167 401 402/* syscall: "ustat" ret: "int" args: "int" "struct sunos_ustat *" */ 403#define SUNOS_SYS_ustat 168 404 405#if defined(SYSVSEM) && defined(COMPAT_10) 406/* syscall: "semsys" ret: "int" args: "int" "int" "int" "int" "int" */ 407#define SUNOS_SYS_semsys 169 408 409#else 410#endif 411#if defined(SYSVMSG) && defined(COMPAT_10) 412/* syscall: "msgsys" ret: "int" args: "int" "int" "int" "int" "int" "int" */ 413#define SUNOS_SYS_msgsys 170 414 415#else 416#endif 417#if defined(SYSVSHM) && defined(COMPAT_10) 418/* syscall: "shmsys" ret: "int" args: "int" "int" "int" "int" */ 419#define SUNOS_SYS_shmsys 171 420 421#else 422#endif 423/* syscall: "auditsys" ret: "int" args: "char *" */ 424#define SUNOS_SYS_auditsys 172 425 426/* syscall: "getdents" ret: "int" args: "int" "char *" "int" */ 427#define SUNOS_SYS_getdents 174 428 429/* syscall: "setsid" ret: "int" args: */ 430#define SUNOS_SYS_setsid 175 431 432/* syscall: "fchdir" ret: "int" args: "int" */ 433#define SUNOS_SYS_fchdir 176 434 435/* syscall: "fchroot" ret: "int" args: "int" */ 436#define SUNOS_SYS_fchroot 177 437 438/* syscall: "sigpending" ret: "int" args: "int *" */ 439#define SUNOS_SYS_sigpending 183 440 441/* syscall: "setpgid" ret: "int" args: "int" "int" */ 442#define SUNOS_SYS_setpgid 185 443 444/* syscall: "pathconf" ret: "long" args: "char *" "int" */ 445#define SUNOS_SYS_pathconf 186 446 447/* syscall: "fpathconf" ret: "long" args: "int" "int" */ 448#define SUNOS_SYS_fpathconf 187 449 450/* syscall: "sysconf" ret: "int" args: "int" */ 451#define SUNOS_SYS_sysconf 188 452 453/* syscall: "uname" ret: "int" args: "struct sunos_utsname *" */ 454#define SUNOS_SYS_uname 189 455 456#define SUNOS_SYS_MAXSYSCALL 190 457#define SUNOS_SYS_NSYSENT 256 458#endif /* _SUNOS_SYS_SYSCALL_H_ */ 459