1*4beb5340Schristos /* $NetBSD: aoutm68k_syscall.h,v 1.55 2019/06/18 01:39:09 christos Exp $ */ 247a35be2Sscw 347a35be2Sscw /* 447a35be2Sscw * System call numbers. 547a35be2Sscw * 647a35be2Sscw * DO NOT EDIT-- this file is automatically generated. 7*4beb5340Schristos * created from NetBSD: syscalls.master,v 1.44 2019/06/18 01:39:01 christos Exp 847a35be2Sscw */ 947a35be2Sscw 10280b6906Smatt #ifndef _AOUTM68K_SYS_SYSCALL_H_ 11280b6906Smatt #define _AOUTM68K_SYS_SYSCALL_H_ 12280b6906Smatt 13ee077208Sdsl #define AOUTM68K_SYS_MAXSYSARGS 8 14ee077208Sdsl 1547a35be2Sscw /* syscall: "syscall" ret: "int" args: "int" "..." */ 1647a35be2Sscw #define AOUTM68K_SYS_syscall 0 1747a35be2Sscw 1847a35be2Sscw /* syscall: "exit" ret: "void" args: "int" */ 1947a35be2Sscw #define AOUTM68K_SYS_exit 1 2047a35be2Sscw 2147a35be2Sscw /* syscall: "fork" ret: "int" args: */ 2247a35be2Sscw #define AOUTM68K_SYS_fork 2 2347a35be2Sscw 2447a35be2Sscw /* syscall: "read" ret: "ssize_t" args: "int" "void *" "size_t" */ 2547a35be2Sscw #define AOUTM68K_SYS_read 3 2647a35be2Sscw 2747a35be2Sscw /* syscall: "write" ret: "ssize_t" args: "int" "const void *" "size_t" */ 2847a35be2Sscw #define AOUTM68K_SYS_write 4 2947a35be2Sscw 3047a35be2Sscw /* syscall: "open" ret: "int" args: "const char *" "int" "..." */ 3147a35be2Sscw #define AOUTM68K_SYS_open 5 3247a35be2Sscw 3347a35be2Sscw /* syscall: "close" ret: "int" args: "int" */ 3447a35be2Sscw #define AOUTM68K_SYS_close 6 3547a35be2Sscw 3641e9d73cStsutsui /* syscall: "wait4" ret: "int" args: "int" "int *" "int" "struct rusage50 *" */ 3747a35be2Sscw #define AOUTM68K_SYS_wait4 7 3847a35be2Sscw 3996d1fdecStsutsui #if defined(COMPAT_43) || !defined(_KERNEL) 4047a35be2Sscw /* syscall: "ocreat" ret: "int" args: "const char *" "mode_t" */ 4147a35be2Sscw #define AOUTM68K_SYS_ocreat 8 4247a35be2Sscw 439b18b6faScl #else 4447a35be2Sscw /* 8 is excluded compat_43_sys_creat */ 459b18b6faScl #endif 4647a35be2Sscw /* syscall: "link" ret: "int" args: "const char *" "const char *" */ 4747a35be2Sscw #define AOUTM68K_SYS_link 9 4847a35be2Sscw 4947a35be2Sscw /* syscall: "unlink" ret: "int" args: "const char *" */ 5047a35be2Sscw #define AOUTM68K_SYS_unlink 10 5147a35be2Sscw 5247a35be2Sscw /* 11 is obsolete execv */ 5347a35be2Sscw /* syscall: "chdir" ret: "int" args: "const char *" */ 5447a35be2Sscw #define AOUTM68K_SYS_chdir 12 5547a35be2Sscw 5647a35be2Sscw /* syscall: "fchdir" ret: "int" args: "int" */ 5747a35be2Sscw #define AOUTM68K_SYS_fchdir 13 5847a35be2Sscw 5947a35be2Sscw /* syscall: "mknod" ret: "int" args: "const char *" "mode_t" "dev_t" */ 6047a35be2Sscw #define AOUTM68K_SYS_mknod 14 6147a35be2Sscw 6247a35be2Sscw /* syscall: "chmod" ret: "int" args: "const char *" "mode_t" */ 6347a35be2Sscw #define AOUTM68K_SYS_chmod 15 6447a35be2Sscw 6547a35be2Sscw /* syscall: "chown" ret: "int" args: "const char *" "uid_t" "gid_t" */ 6647a35be2Sscw #define AOUTM68K_SYS_chown 16 6747a35be2Sscw 6847a35be2Sscw /* syscall: "break" ret: "int" args: "char *" */ 6947a35be2Sscw #define AOUTM68K_SYS_break 17 7047a35be2Sscw 7196d1fdecStsutsui #if defined(COMPAT_20) || !defined(_KERNEL) 72633d902cSmatt /* syscall: "getfsstat" ret: "int" args: "struct statfs12 *" "long" "int" */ 7347a35be2Sscw #define AOUTM68K_SYS_getfsstat 18 7447a35be2Sscw 75633d902cSmatt #else 76633d902cSmatt /* 18 is excluded compat_20_sys_getfsstat */ 77633d902cSmatt #endif 7896d1fdecStsutsui #if defined(COMPAT_43) || !defined(_KERNEL) 7947a35be2Sscw /* syscall: "olseek" ret: "long" args: "int" "long" "int" */ 8047a35be2Sscw #define AOUTM68K_SYS_olseek 19 8147a35be2Sscw 829b18b6faScl #else 8347a35be2Sscw /* 19 is excluded compat_43_sys_lseek */ 849b18b6faScl #endif 8547a35be2Sscw /* syscall: "getpid" ret: "pid_t" args: */ 8647a35be2Sscw #define AOUTM68K_SYS_getpid 20 8747a35be2Sscw 8847a35be2Sscw /* syscall: "mount" ret: "int" args: "const char *" "const char *" "int" "void *" */ 8947a35be2Sscw #define AOUTM68K_SYS_mount 21 9047a35be2Sscw 9147a35be2Sscw /* syscall: "unmount" ret: "int" args: "const char *" "int" */ 9247a35be2Sscw #define AOUTM68K_SYS_unmount 22 9347a35be2Sscw 9447a35be2Sscw /* syscall: "setuid" ret: "int" args: "uid_t" */ 9547a35be2Sscw #define AOUTM68K_SYS_setuid 23 9647a35be2Sscw 9747a35be2Sscw /* syscall: "getuid" ret: "uid_t" args: */ 9847a35be2Sscw #define AOUTM68K_SYS_getuid 24 9947a35be2Sscw 10047a35be2Sscw /* syscall: "geteuid" ret: "uid_t" args: */ 10147a35be2Sscw #define AOUTM68K_SYS_geteuid 25 10247a35be2Sscw 10353524e44Schristos /* syscall: "ptrace" ret: "int" args: "int" "pid_t" "void *" "int" */ 10447a35be2Sscw #define AOUTM68K_SYS_ptrace 26 10547a35be2Sscw 10647a35be2Sscw /* syscall: "recvmsg" ret: "ssize_t" args: "int" "struct msghdr *" "int" */ 10747a35be2Sscw #define AOUTM68K_SYS_recvmsg 27 10847a35be2Sscw 10947a35be2Sscw /* syscall: "sendmsg" ret: "ssize_t" args: "int" "const struct msghdr *" "int" */ 11047a35be2Sscw #define AOUTM68K_SYS_sendmsg 28 11147a35be2Sscw 11247a35be2Sscw /* syscall: "recvfrom" ret: "ssize_t" args: "int" "void *" "size_t" "int" "struct sockaddr *" "unsigned int *" */ 11347a35be2Sscw #define AOUTM68K_SYS_recvfrom 29 11447a35be2Sscw 11547a35be2Sscw /* syscall: "accept" ret: "int" args: "int" "struct sockaddr *" "unsigned int *" */ 11647a35be2Sscw #define AOUTM68K_SYS_accept 30 11747a35be2Sscw 11847a35be2Sscw /* syscall: "getpeername" ret: "int" args: "int" "struct sockaddr *" "unsigned int *" */ 11947a35be2Sscw #define AOUTM68K_SYS_getpeername 31 12047a35be2Sscw 12147a35be2Sscw /* syscall: "getsockname" ret: "int" args: "int" "struct sockaddr *" "unsigned int *" */ 12247a35be2Sscw #define AOUTM68K_SYS_getsockname 32 12347a35be2Sscw 12447a35be2Sscw /* syscall: "access" ret: "int" args: "const char *" "int" */ 12547a35be2Sscw #define AOUTM68K_SYS_access 33 12647a35be2Sscw 12747a35be2Sscw /* syscall: "chflags" ret: "int" args: "const char *" "u_long" */ 12847a35be2Sscw #define AOUTM68K_SYS_chflags 34 12947a35be2Sscw 13047a35be2Sscw /* syscall: "fchflags" ret: "int" args: "int" "u_long" */ 13147a35be2Sscw #define AOUTM68K_SYS_fchflags 35 13247a35be2Sscw 13347a35be2Sscw /* syscall: "sync" ret: "void" args: */ 13447a35be2Sscw #define AOUTM68K_SYS_sync 36 13547a35be2Sscw 13647a35be2Sscw /* syscall: "kill" ret: "int" args: "int" "int" */ 13747a35be2Sscw #define AOUTM68K_SYS_kill 37 13847a35be2Sscw 13996d1fdecStsutsui #if defined(COMPAT_43) || !defined(_KERNEL) 14047a35be2Sscw /* syscall: "stat43" ret: "int" args: "const char *" "struct aoutm68k_stat43 *" */ 14147a35be2Sscw #define AOUTM68K_SYS_stat43 38 14247a35be2Sscw 1439b18b6faScl #else 14447a35be2Sscw /* 38 is excluded aoutm68k_compat_43_sys_stat */ 1459b18b6faScl #endif 14647a35be2Sscw /* syscall: "getppid" ret: "pid_t" args: */ 14747a35be2Sscw #define AOUTM68K_SYS_getppid 39 14847a35be2Sscw 14996d1fdecStsutsui #if defined(COMPAT_43) || !defined(_KERNEL) 15047a35be2Sscw /* syscall: "lstat43" ret: "int" args: "const char *" "struct aoutm68k_stat43 *" */ 15147a35be2Sscw #define AOUTM68K_SYS_lstat43 40 15247a35be2Sscw 1539b18b6faScl #else 15447a35be2Sscw /* 40 is excluded aoutm68k_compat_43_sys_lstat */ 1559b18b6faScl #endif 15647a35be2Sscw /* syscall: "dup" ret: "int" args: "int" */ 15747a35be2Sscw #define AOUTM68K_SYS_dup 41 15847a35be2Sscw 15947a35be2Sscw /* syscall: "pipe" ret: "int" args: */ 16047a35be2Sscw #define AOUTM68K_SYS_pipe 42 16147a35be2Sscw 16247a35be2Sscw /* syscall: "getegid" ret: "gid_t" args: */ 16347a35be2Sscw #define AOUTM68K_SYS_getegid 43 16447a35be2Sscw 16553524e44Schristos /* syscall: "profil" ret: "int" args: "void *" "size_t" "u_long" "u_int" */ 16647a35be2Sscw #define AOUTM68K_SYS_profil 44 16747a35be2Sscw 1689b18b6faScl #if defined(KTRACE) || !defined(_KERNEL) 16947a35be2Sscw /* syscall: "ktrace" ret: "int" args: "const char *" "int" "int" "int" */ 17047a35be2Sscw #define AOUTM68K_SYS_ktrace 45 17147a35be2Sscw 1729b18b6faScl #else 17347a35be2Sscw /* 45 is excluded ktrace */ 1749b18b6faScl #endif 17596d1fdecStsutsui #if defined(COMPAT_13) || !defined(_KERNEL) 17647a35be2Sscw /* syscall: "sigaction13" ret: "int" args: "int" "const struct sigaction13 *" "struct sigaction13 *" */ 17747a35be2Sscw #define AOUTM68K_SYS_sigaction13 46 17847a35be2Sscw 1799b18b6faScl #else 18047a35be2Sscw /* 46 is excluded compat_13_sys_sigaction */ 1819b18b6faScl #endif 18247a35be2Sscw /* syscall: "getgid" ret: "gid_t" args: */ 18347a35be2Sscw #define AOUTM68K_SYS_getgid 47 18447a35be2Sscw 18596d1fdecStsutsui #if defined(COMPAT_13) || !defined(_KERNEL) 18647a35be2Sscw /* syscall: "sigprocmask13" ret: "int" args: "int" "int" */ 18747a35be2Sscw #define AOUTM68K_SYS_sigprocmask13 48 18847a35be2Sscw 1899b18b6faScl #else 19047a35be2Sscw /* 48 is excluded compat_13_sys_sigprocmask */ 1919b18b6faScl #endif 19247a35be2Sscw /* syscall: "__getlogin" ret: "int" args: "char *" "size_t" */ 19347a35be2Sscw #define AOUTM68K_SYS___getlogin 49 19447a35be2Sscw 195a83ddff8Sthorpej /* syscall: "__setlogin" ret: "int" args: "const char *" */ 196a83ddff8Sthorpej #define AOUTM68K_SYS___setlogin 50 19747a35be2Sscw 19847a35be2Sscw /* syscall: "acct" ret: "int" args: "const char *" */ 19947a35be2Sscw #define AOUTM68K_SYS_acct 51 20047a35be2Sscw 20196d1fdecStsutsui #if defined(COMPAT_13) || !defined(_KERNEL) 20247a35be2Sscw /* syscall: "sigpending13" ret: "int" args: */ 20347a35be2Sscw #define AOUTM68K_SYS_sigpending13 52 20447a35be2Sscw 20547a35be2Sscw /* syscall: "sigaltstack13" ret: "int" args: "const struct sigaltstack13 *" "struct sigaltstack13 *" */ 20647a35be2Sscw #define AOUTM68K_SYS_sigaltstack13 53 20747a35be2Sscw 2089b18b6faScl #else 20947a35be2Sscw /* 52 is excluded compat_13_sys_sigpending */ 21047a35be2Sscw /* 53 is excluded compat_13_sys_sigaltstack */ 2119b18b6faScl #endif 21247a35be2Sscw /* syscall: "ioctl" ret: "int" args: "int" "u_long" "..." */ 21347a35be2Sscw #define AOUTM68K_SYS_ioctl 54 21447a35be2Sscw 21596d1fdecStsutsui #if defined(COMPAT_12) || !defined(_KERNEL) 21647a35be2Sscw /* syscall: "oreboot" ret: "int" args: "int" */ 21747a35be2Sscw #define AOUTM68K_SYS_oreboot 55 21847a35be2Sscw 2199b18b6faScl #else 22047a35be2Sscw /* 55 is excluded compat_12_sys_reboot */ 2219b18b6faScl #endif 22247a35be2Sscw /* syscall: "revoke" ret: "int" args: "const char *" */ 22347a35be2Sscw #define AOUTM68K_SYS_revoke 56 22447a35be2Sscw 22547a35be2Sscw /* syscall: "symlink" ret: "int" args: "const char *" "const char *" */ 22647a35be2Sscw #define AOUTM68K_SYS_symlink 57 22747a35be2Sscw 22847a35be2Sscw /* syscall: "readlink" ret: "int" args: "const char *" "char *" "size_t" */ 22947a35be2Sscw #define AOUTM68K_SYS_readlink 58 23047a35be2Sscw 23147a35be2Sscw /* syscall: "execve" ret: "int" args: "const char *" "char *const *" "char *const *" */ 23247a35be2Sscw #define AOUTM68K_SYS_execve 59 23347a35be2Sscw 23447a35be2Sscw /* syscall: "umask" ret: "mode_t" args: "mode_t" */ 23547a35be2Sscw #define AOUTM68K_SYS_umask 60 23647a35be2Sscw 23747a35be2Sscw /* syscall: "chroot" ret: "int" args: "const char *" */ 23847a35be2Sscw #define AOUTM68K_SYS_chroot 61 23947a35be2Sscw 24096d1fdecStsutsui #if defined(COMPAT_43) || !defined(_KERNEL) 24147a35be2Sscw /* syscall: "fstat43" ret: "int" args: "int" "struct aoutm68k_stat43 *" */ 24247a35be2Sscw #define AOUTM68K_SYS_fstat43 62 24347a35be2Sscw 24447a35be2Sscw /* syscall: "ogetkerninfo" ret: "int" args: "int" "char *" "int *" "int" */ 24547a35be2Sscw #define AOUTM68K_SYS_ogetkerninfo 63 24647a35be2Sscw 24747a35be2Sscw /* syscall: "ogetpagesize" ret: "int" args: */ 24847a35be2Sscw #define AOUTM68K_SYS_ogetpagesize 64 24947a35be2Sscw 2509b18b6faScl #else 25147a35be2Sscw /* 62 is excluded aoutm68k_compat_43_sys_fstat */ 25247a35be2Sscw /* 63 is excluded compat_43_sys_getkerninfo */ 25347a35be2Sscw /* 64 is excluded compat_43_sys_getpagesize */ 2549b18b6faScl #endif 25596d1fdecStsutsui #if defined(COMPAT_12) || !defined(_KERNEL) 25653524e44Schristos /* syscall: "msync" ret: "int" args: "void *" "size_t" */ 25747a35be2Sscw #define AOUTM68K_SYS_msync 65 25847a35be2Sscw 2599b18b6faScl #else 26047a35be2Sscw /* 65 is excluded compat_12_sys_msync */ 2619b18b6faScl #endif 26247a35be2Sscw /* syscall: "vfork" ret: "int" args: */ 26347a35be2Sscw #define AOUTM68K_SYS_vfork 66 26447a35be2Sscw 26547a35be2Sscw /* 67 is obsolete vread */ 26647a35be2Sscw /* 68 is obsolete vwrite */ 267b20edd1aSkamil /* 69 is obsolete sbrk */ 268fc1871a1Skamil /* 70 is obsolete sstk */ 26996d1fdecStsutsui #if defined(COMPAT_43) || !defined(_KERNEL) 27053524e44Schristos /* syscall: "ommap" ret: "int" args: "void *" "size_t" "int" "int" "int" "long" */ 27147a35be2Sscw #define AOUTM68K_SYS_ommap 71 27247a35be2Sscw 2739b18b6faScl #else 27447a35be2Sscw /* 71 is excluded compat_43_sys_mmap */ 2759b18b6faScl #endif 276f98f70a7Skamil /* syscall: "vadvise" ret: "int" args: "int" */ 277f98f70a7Skamil #define AOUTM68K_SYS_vadvise 72 278f98f70a7Skamil 27947a35be2Sscw /* syscall: "munmap" ret: "int" args: "void *" "size_t" */ 28047a35be2Sscw #define AOUTM68K_SYS_munmap 73 28147a35be2Sscw 28247a35be2Sscw /* syscall: "mprotect" ret: "int" args: "void *" "size_t" "int" */ 28347a35be2Sscw #define AOUTM68K_SYS_mprotect 74 28447a35be2Sscw 28547a35be2Sscw /* syscall: "madvise" ret: "int" args: "void *" "size_t" "int" */ 28647a35be2Sscw #define AOUTM68K_SYS_madvise 75 28747a35be2Sscw 28847a35be2Sscw /* 76 is obsolete vhangup */ 28947a35be2Sscw /* 77 is obsolete vlimit */ 29053524e44Schristos /* syscall: "mincore" ret: "int" args: "void *" "size_t" "char *" */ 29147a35be2Sscw #define AOUTM68K_SYS_mincore 78 29247a35be2Sscw 29347a35be2Sscw /* syscall: "getgroups" ret: "int" args: "int" "gid_t *" */ 29447a35be2Sscw #define AOUTM68K_SYS_getgroups 79 29547a35be2Sscw 29647a35be2Sscw /* syscall: "setgroups" ret: "int" args: "int" "const gid_t *" */ 29747a35be2Sscw #define AOUTM68K_SYS_setgroups 80 29847a35be2Sscw 29947a35be2Sscw /* syscall: "getpgrp" ret: "int" args: */ 30047a35be2Sscw #define AOUTM68K_SYS_getpgrp 81 30147a35be2Sscw 30247a35be2Sscw /* syscall: "setpgid" ret: "int" args: "int" "int" */ 30347a35be2Sscw #define AOUTM68K_SYS_setpgid 82 30447a35be2Sscw 30541e9d73cStsutsui /* syscall: "setitimer" ret: "int" args: "int" "const struct itimerval50 *" "struct itimerval50 *" */ 30647a35be2Sscw #define AOUTM68K_SYS_setitimer 83 30747a35be2Sscw 30896d1fdecStsutsui #if defined(COMPAT_43) || !defined(_KERNEL) 30947a35be2Sscw /* syscall: "owait" ret: "int" args: */ 31047a35be2Sscw #define AOUTM68K_SYS_owait 84 31147a35be2Sscw 3129b18b6faScl #else 31347a35be2Sscw /* 84 is excluded compat_43_sys_wait */ 3149b18b6faScl #endif 31596d1fdecStsutsui #if defined(COMPAT_12) || !defined(_KERNEL) 31647a35be2Sscw /* syscall: "oswapon" ret: "int" args: "const char *" */ 31747a35be2Sscw #define AOUTM68K_SYS_oswapon 85 31847a35be2Sscw 3199b18b6faScl #else 32047a35be2Sscw /* 85 is excluded compat_12_sys_swapon */ 3219b18b6faScl #endif 32241e9d73cStsutsui /* syscall: "getitimer" ret: "int" args: "int" "struct itimerval50 *" */ 32347a35be2Sscw #define AOUTM68K_SYS_getitimer 86 32447a35be2Sscw 32596d1fdecStsutsui #if defined(COMPAT_43) || !defined(_KERNEL) 32647a35be2Sscw /* syscall: "ogethostname" ret: "int" args: "char *" "u_int" */ 32747a35be2Sscw #define AOUTM68K_SYS_ogethostname 87 32847a35be2Sscw 32947a35be2Sscw /* syscall: "osethostname" ret: "int" args: "char *" "u_int" */ 33047a35be2Sscw #define AOUTM68K_SYS_osethostname 88 33147a35be2Sscw 33247a35be2Sscw /* syscall: "ogetdtablesize" ret: "int" args: */ 33347a35be2Sscw #define AOUTM68K_SYS_ogetdtablesize 89 33447a35be2Sscw 3359b18b6faScl #else 33647a35be2Sscw /* 87 is excluded compat_43_sys_gethostname */ 33747a35be2Sscw /* 88 is excluded compat_43_sys_sethostname */ 33847a35be2Sscw /* 89 is excluded compat_43_sys_getdtablesize */ 3399b18b6faScl #endif 34047a35be2Sscw /* syscall: "dup2" ret: "int" args: "int" "int" */ 34147a35be2Sscw #define AOUTM68K_SYS_dup2 90 34247a35be2Sscw 34347a35be2Sscw /* syscall: "fcntl" ret: "int" args: "int" "int" "..." */ 34447a35be2Sscw #define AOUTM68K_SYS_fcntl 92 34547a35be2Sscw 34641e9d73cStsutsui /* syscall: "select" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "struct timeval50 *" */ 34747a35be2Sscw #define AOUTM68K_SYS_select 93 34847a35be2Sscw 34947a35be2Sscw /* syscall: "fsync" ret: "int" args: "int" */ 35047a35be2Sscw #define AOUTM68K_SYS_fsync 95 35147a35be2Sscw 35247a35be2Sscw /* syscall: "setpriority" ret: "int" args: "int" "int" "int" */ 35347a35be2Sscw #define AOUTM68K_SYS_setpriority 96 35447a35be2Sscw 355d91f98a8Spgoyette #if defined(COMPAT_30) || !defined(_KERNEL) 35647a35be2Sscw /* syscall: "socket" ret: "int" args: "int" "int" "int" */ 35747a35be2Sscw #define AOUTM68K_SYS_socket 97 35847a35be2Sscw 359d91f98a8Spgoyette #else 360d91f98a8Spgoyette /* 97 is excluded compat_30_sys_socket */ 361d91f98a8Spgoyette #endif 36247a35be2Sscw /* syscall: "connect" ret: "int" args: "int" "const struct sockaddr *" "int" */ 36347a35be2Sscw #define AOUTM68K_SYS_connect 98 36447a35be2Sscw 36596d1fdecStsutsui #if defined(COMPAT_43) || !defined(_KERNEL) 36653524e44Schristos /* syscall: "oaccept" ret: "int" args: "int" "void *" "int *" */ 36747a35be2Sscw #define AOUTM68K_SYS_oaccept 99 36847a35be2Sscw 3699b18b6faScl #else 37047a35be2Sscw /* 99 is excluded compat_43_sys_accept */ 3719b18b6faScl #endif 37247a35be2Sscw /* syscall: "getpriority" ret: "int" args: "int" "int" */ 37347a35be2Sscw #define AOUTM68K_SYS_getpriority 100 37447a35be2Sscw 37596d1fdecStsutsui #if defined(COMPAT_43) || !defined(_KERNEL) 37653524e44Schristos /* syscall: "osend" ret: "int" args: "int" "void *" "int" "int" */ 37747a35be2Sscw #define AOUTM68K_SYS_osend 101 37847a35be2Sscw 37953524e44Schristos /* syscall: "orecv" ret: "int" args: "int" "void *" "int" "int" */ 38047a35be2Sscw #define AOUTM68K_SYS_orecv 102 38147a35be2Sscw 3829b18b6faScl #else 38347a35be2Sscw /* 101 is excluded compat_43_sys_send */ 38447a35be2Sscw /* 102 is excluded compat_43_sys_recv */ 3859b18b6faScl #endif 38696d1fdecStsutsui #if defined(COMPAT_13) || !defined(_KERNEL) 38747a35be2Sscw /* syscall: "sigreturn13" ret: "int" args: "struct sigcontext13 *" */ 38847a35be2Sscw #define AOUTM68K_SYS_sigreturn13 103 38947a35be2Sscw 3909b18b6faScl #else 39147a35be2Sscw /* 103 is excluded compat_13_sys_sigreturn */ 3929b18b6faScl #endif 39347a35be2Sscw /* syscall: "bind" ret: "int" args: "int" "const struct sockaddr *" "int" */ 39447a35be2Sscw #define AOUTM68K_SYS_bind 104 39547a35be2Sscw 39647a35be2Sscw /* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "const void *" "int" */ 39747a35be2Sscw #define AOUTM68K_SYS_setsockopt 105 39847a35be2Sscw 39947a35be2Sscw /* syscall: "listen" ret: "int" args: "int" "int" */ 40047a35be2Sscw #define AOUTM68K_SYS_listen 106 40147a35be2Sscw 40247a35be2Sscw /* 107 is obsolete vtimes */ 40396d1fdecStsutsui #if defined(COMPAT_43) || !defined(_KERNEL) 40447a35be2Sscw /* syscall: "osigvec" ret: "int" args: "int" "struct sigvec *" "struct sigvec *" */ 40547a35be2Sscw #define AOUTM68K_SYS_osigvec 108 40647a35be2Sscw 40747a35be2Sscw /* syscall: "osigblock" ret: "int" args: "int" */ 40847a35be2Sscw #define AOUTM68K_SYS_osigblock 109 40947a35be2Sscw 41047a35be2Sscw /* syscall: "osigsetmask" ret: "int" args: "int" */ 41147a35be2Sscw #define AOUTM68K_SYS_osigsetmask 110 41247a35be2Sscw 4139b18b6faScl #else 41447a35be2Sscw /* 108 is excluded compat_43_sys_sigvec */ 41547a35be2Sscw /* 109 is excluded compat_43_sys_sigblock */ 41647a35be2Sscw /* 110 is excluded compat_43_sys_sigsetmask */ 4179b18b6faScl #endif 41896d1fdecStsutsui #if defined(COMPAT_13) || !defined(_KERNEL) 41947a35be2Sscw /* syscall: "sigsuspend13" ret: "int" args: "int" */ 42047a35be2Sscw #define AOUTM68K_SYS_sigsuspend13 111 42147a35be2Sscw 4229b18b6faScl #else 42347a35be2Sscw /* 111 is excluded compat_13_sys_sigsuspend */ 4249b18b6faScl #endif 42596d1fdecStsutsui #if defined(COMPAT_43) || !defined(_KERNEL) 42647a35be2Sscw /* syscall: "osigstack" ret: "int" args: "struct sigstack *" "struct sigstack *" */ 42747a35be2Sscw #define AOUTM68K_SYS_osigstack 112 42847a35be2Sscw 42947a35be2Sscw /* syscall: "orecvmsg" ret: "int" args: "int" "struct omsghdr *" "int" */ 43047a35be2Sscw #define AOUTM68K_SYS_orecvmsg 113 43147a35be2Sscw 43253524e44Schristos /* syscall: "osendmsg" ret: "int" args: "int" "void *" "int" */ 43347a35be2Sscw #define AOUTM68K_SYS_osendmsg 114 43447a35be2Sscw 4359b18b6faScl #else 43647a35be2Sscw /* 112 is excluded compat_43_sys_sigstack */ 43747a35be2Sscw /* 113 is excluded compat_43_sys_recvmesg */ 43847a35be2Sscw /* 114 is excluded compat_43_sys_sendmesg */ 4399b18b6faScl #endif 44047a35be2Sscw /* 115 is obsolete vtrace */ 44141e9d73cStsutsui /* syscall: "gettimeofday" ret: "int" args: "struct timeval50 *" "struct timezone *" */ 44247a35be2Sscw #define AOUTM68K_SYS_gettimeofday 116 44347a35be2Sscw 44441e9d73cStsutsui /* syscall: "getrusage" ret: "int" args: "int" "struct rusage50 *" */ 44547a35be2Sscw #define AOUTM68K_SYS_getrusage 117 44647a35be2Sscw 44747a35be2Sscw /* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "void *" "int *" */ 44847a35be2Sscw #define AOUTM68K_SYS_getsockopt 118 44947a35be2Sscw 45047a35be2Sscw /* 119 is obsolete resuba */ 45147a35be2Sscw /* syscall: "readv" ret: "ssize_t" args: "int" "const struct iovec *" "int" */ 45247a35be2Sscw #define AOUTM68K_SYS_readv 120 45347a35be2Sscw 45447a35be2Sscw /* syscall: "writev" ret: "ssize_t" args: "int" "const struct iovec *" "int" */ 45547a35be2Sscw #define AOUTM68K_SYS_writev 121 45647a35be2Sscw 45741e9d73cStsutsui /* syscall: "settimeofday" ret: "int" args: "const struct timeval50 *" "const struct timezone *" */ 45847a35be2Sscw #define AOUTM68K_SYS_settimeofday 122 45947a35be2Sscw 46047a35be2Sscw /* syscall: "fchown" ret: "int" args: "int" "uid_t" "gid_t" */ 46147a35be2Sscw #define AOUTM68K_SYS_fchown 123 46247a35be2Sscw 46347a35be2Sscw /* syscall: "fchmod" ret: "int" args: "int" "mode_t" */ 46447a35be2Sscw #define AOUTM68K_SYS_fchmod 124 46547a35be2Sscw 46696d1fdecStsutsui #if defined(COMPAT_43) || !defined(_KERNEL) 46753524e44Schristos /* syscall: "orecvfrom" ret: "int" args: "int" "void *" "size_t" "int" "void *" "int *" */ 46847a35be2Sscw #define AOUTM68K_SYS_orecvfrom 125 46947a35be2Sscw 4709b18b6faScl #else 47147a35be2Sscw /* 125 is excluded compat_43_sys_recvfrom */ 4729b18b6faScl #endif 47347a35be2Sscw /* syscall: "setreuid" ret: "int" args: "uid_t" "uid_t" */ 47447a35be2Sscw #define AOUTM68K_SYS_setreuid 126 47547a35be2Sscw 47647a35be2Sscw /* syscall: "setregid" ret: "int" args: "gid_t" "gid_t" */ 47747a35be2Sscw #define AOUTM68K_SYS_setregid 127 47847a35be2Sscw 47947a35be2Sscw /* syscall: "rename" ret: "int" args: "const char *" "const char *" */ 48047a35be2Sscw #define AOUTM68K_SYS_rename 128 48147a35be2Sscw 48296d1fdecStsutsui #if defined(COMPAT_43) || !defined(_KERNEL) 48347a35be2Sscw /* syscall: "otruncate" ret: "int" args: "const char *" "long" */ 48447a35be2Sscw #define AOUTM68K_SYS_otruncate 129 48547a35be2Sscw 48647a35be2Sscw /* syscall: "oftruncate" ret: "int" args: "int" "long" */ 48747a35be2Sscw #define AOUTM68K_SYS_oftruncate 130 48847a35be2Sscw 4899b18b6faScl #else 490aff5787bStsutsui /* 129 is excluded compat_43_sys_truncate */ 49147a35be2Sscw /* 130 is excluded compat_43_sys_ftruncate */ 4929b18b6faScl #endif 49347a35be2Sscw /* syscall: "flock" ret: "int" args: "int" "int" */ 49447a35be2Sscw #define AOUTM68K_SYS_flock 131 49547a35be2Sscw 49647a35be2Sscw /* syscall: "mkfifo" ret: "int" args: "const char *" "mode_t" */ 49747a35be2Sscw #define AOUTM68K_SYS_mkfifo 132 49847a35be2Sscw 49947a35be2Sscw /* syscall: "sendto" ret: "ssize_t" args: "int" "const void *" "size_t" "int" "const struct sockaddr *" "int" */ 50047a35be2Sscw #define AOUTM68K_SYS_sendto 133 50147a35be2Sscw 50247a35be2Sscw /* syscall: "shutdown" ret: "int" args: "int" "int" */ 50347a35be2Sscw #define AOUTM68K_SYS_shutdown 134 50447a35be2Sscw 50547a35be2Sscw /* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */ 50647a35be2Sscw #define AOUTM68K_SYS_socketpair 135 50747a35be2Sscw 50847a35be2Sscw /* syscall: "mkdir" ret: "int" args: "const char *" "mode_t" */ 50947a35be2Sscw #define AOUTM68K_SYS_mkdir 136 51047a35be2Sscw 51147a35be2Sscw /* syscall: "rmdir" ret: "int" args: "const char *" */ 51247a35be2Sscw #define AOUTM68K_SYS_rmdir 137 51347a35be2Sscw 51441e9d73cStsutsui /* syscall: "utimes" ret: "int" args: "const char *" "const struct timeval50 *" */ 51547a35be2Sscw #define AOUTM68K_SYS_utimes 138 51647a35be2Sscw 51747a35be2Sscw /* 139 is obsolete 4.2 sigreturn */ 51841e9d73cStsutsui /* syscall: "adjtime" ret: "int" args: "const struct timeval50 *" "struct timeval50 *" */ 51947a35be2Sscw #define AOUTM68K_SYS_adjtime 140 52047a35be2Sscw 52196d1fdecStsutsui #if defined(COMPAT_43) || !defined(_KERNEL) 52253524e44Schristos /* syscall: "ogetpeername" ret: "int" args: "int" "void *" "int *" */ 52347a35be2Sscw #define AOUTM68K_SYS_ogetpeername 141 52447a35be2Sscw 52547a35be2Sscw /* syscall: "ogethostid" ret: "int32_t" args: */ 52647a35be2Sscw #define AOUTM68K_SYS_ogethostid 142 52747a35be2Sscw 52847a35be2Sscw /* syscall: "osethostid" ret: "int" args: "int32_t" */ 52947a35be2Sscw #define AOUTM68K_SYS_osethostid 143 53047a35be2Sscw 53147a35be2Sscw /* syscall: "ogetrlimit" ret: "int" args: "int" "struct orlimit *" */ 53247a35be2Sscw #define AOUTM68K_SYS_ogetrlimit 144 53347a35be2Sscw 53447a35be2Sscw /* syscall: "osetrlimit" ret: "int" args: "int" "const struct orlimit *" */ 53547a35be2Sscw #define AOUTM68K_SYS_osetrlimit 145 53647a35be2Sscw 53747a35be2Sscw /* syscall: "okillpg" ret: "int" args: "int" "int" */ 53847a35be2Sscw #define AOUTM68K_SYS_okillpg 146 53947a35be2Sscw 5409b18b6faScl #else 54147a35be2Sscw /* 141 is excluded compat_43_sys_getpeername */ 54247a35be2Sscw /* 142 is excluded compat_43_sys_gethostid */ 54347a35be2Sscw /* 143 is excluded compat_43_sys_sethostid */ 54447a35be2Sscw /* 144 is excluded compat_43_sys_getrlimit */ 54547a35be2Sscw /* 145 is excluded compat_43_sys_setrlimit */ 54647a35be2Sscw /* 146 is excluded compat_43_sys_killpg */ 5479b18b6faScl #endif 54847a35be2Sscw /* syscall: "setsid" ret: "int" args: */ 54947a35be2Sscw #define AOUTM68K_SYS_setsid 147 55047a35be2Sscw 551*4beb5340Schristos #if defined(QUOTA) || !defined(_KERNEL_OPT) 55253524e44Schristos /* syscall: "quotactl" ret: "int" args: "const char *" "int" "int" "void *" */ 55347a35be2Sscw #define AOUTM68K_SYS_quotactl 148 55447a35be2Sscw 555*4beb5340Schristos #else 556*4beb5340Schristos /* 148 is excluded compat_50_sys_quotactl */ 557*4beb5340Schristos #endif 558*4beb5340Schristos #if (defined(QUOTA) && defined(COMPAT_43)) || !defined(_KERNEL_OPT) 55947a35be2Sscw /* syscall: "oquota" ret: "int" args: */ 56047a35be2Sscw #define AOUTM68K_SYS_oquota 149 56147a35be2Sscw 562*4beb5340Schristos #else 563*4beb5340Schristos /* 149 is excluded compat_43_sys_quota */ 564*4beb5340Schristos #endif 565*4beb5340Schristos #if defined(COMPAT_43) || !defined(_KERNEL_OPT) 56653524e44Schristos /* syscall: "ogetsockname" ret: "int" args: "int" "void *" "int *" */ 56747a35be2Sscw #define AOUTM68K_SYS_ogetsockname 150 56847a35be2Sscw 5699b18b6faScl #else 57047a35be2Sscw /* 150 is excluded compat_43_sys_getsockname */ 5719b18b6faScl #endif 57247a35be2Sscw /* 155 is excluded nfssvc */ 57396d1fdecStsutsui #if defined(COMPAT_43) || !defined(_KERNEL) 57447a35be2Sscw /* syscall: "ogetdirentries" ret: "int" args: "int" "char *" "u_int" "long *" */ 57547a35be2Sscw #define AOUTM68K_SYS_ogetdirentries 156 57647a35be2Sscw 5779b18b6faScl #else 57847a35be2Sscw /* 156 is excluded compat_43_sys_getdirentries */ 5799b18b6faScl #endif 58096d1fdecStsutsui #if defined(COMPAT_20) || !defined(_KERNEL) 581633d902cSmatt /* syscall: "statfs" ret: "int" args: "const char *" "struct statfs12 *" */ 5829b18b6faScl #define AOUTM68K_SYS_statfs 157 5839b18b6faScl 584633d902cSmatt #else 585633d902cSmatt /* 157 is excluded compat_20_sys_statfs */ 5869b18b6faScl #endif 58796d1fdecStsutsui #if defined(COMPAT_20) || !defined(_KERNEL) 588633d902cSmatt /* syscall: "fstatfs" ret: "int" args: "int" "struct statfs12 *" */ 58947a35be2Sscw #define AOUTM68K_SYS_fstatfs 158 59047a35be2Sscw 591633d902cSmatt #else 592633d902cSmatt /* 158 is excluded compat_20_sys_statfs */ 593633d902cSmatt #endif 594d91f98a8Spgoyette #if defined(COMPAT_30) || !defined(_KERNEL) 59561138efdSmartin /* syscall: "getfh" ret: "int" args: "const char *" "struct compat_30_fhandle *" */ 59647a35be2Sscw #define AOUTM68K_SYS_getfh 161 59747a35be2Sscw 598d91f98a8Spgoyette #else 599d91f98a8Spgoyette /* 161 is excluded compat_30_sys_getfh */ 600d91f98a8Spgoyette #endif 60196d1fdecStsutsui #if defined(COMPAT_09) || !defined(_KERNEL) 60247a35be2Sscw /* syscall: "ogetdomainname" ret: "int" args: "char *" "int" */ 60347a35be2Sscw #define AOUTM68K_SYS_ogetdomainname 162 60447a35be2Sscw 60547a35be2Sscw /* syscall: "osetdomainname" ret: "int" args: "char *" "int" */ 60647a35be2Sscw #define AOUTM68K_SYS_osetdomainname 163 60747a35be2Sscw 60847a35be2Sscw /* syscall: "ouname" ret: "int" args: "struct outsname *" */ 60947a35be2Sscw #define AOUTM68K_SYS_ouname 164 61047a35be2Sscw 6119b18b6faScl #else 61247a35be2Sscw /* 162 is excluded compat_09_sys_getdomainname */ 61347a35be2Sscw /* 163 is excluded compat_09_sys_setdomainname */ 61447a35be2Sscw /* 164 is excluded compat_09_sys_uname */ 6159b18b6faScl #endif 61647a35be2Sscw /* syscall: "sysarch" ret: "int" args: "int" "void *" */ 61747a35be2Sscw #define AOUTM68K_SYS_sysarch 165 61847a35be2Sscw 6199b18b6faScl #if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64) && defined(COMPAT_10) 62047a35be2Sscw /* syscall: "osemsys" ret: "int" args: "int" "int" "int" "int" "int" */ 62147a35be2Sscw #define AOUTM68K_SYS_osemsys 169 62247a35be2Sscw 6239b18b6faScl #else 62447a35be2Sscw /* 169 is excluded 1.0 semsys */ 6259b18b6faScl #endif 6269b18b6faScl #if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64) && defined(COMPAT_10) 62747a35be2Sscw /* syscall: "omsgsys" ret: "int" args: "int" "int" "int" "int" "int" "int" */ 62847a35be2Sscw #define AOUTM68K_SYS_omsgsys 170 62947a35be2Sscw 6309b18b6faScl #else 63147a35be2Sscw /* 170 is excluded 1.0 msgsys */ 6329b18b6faScl #endif 6339b18b6faScl #if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64) && defined(COMPAT_10) 63447a35be2Sscw /* syscall: "oshmsys" ret: "int" args: "int" "int" "int" "int" */ 63547a35be2Sscw #define AOUTM68K_SYS_oshmsys 171 63647a35be2Sscw 6379b18b6faScl #else 63847a35be2Sscw /* 171 is excluded 1.0 shmsys */ 6399b18b6faScl #endif 64047a35be2Sscw /* syscall: "pread" ret: "ssize_t" args: "int" "void *" "size_t" "int" "off_t" */ 64147a35be2Sscw #define AOUTM68K_SYS_pread 173 64247a35be2Sscw 64347a35be2Sscw /* syscall: "pwrite" ret: "ssize_t" args: "int" "const void *" "size_t" "int" "off_t" */ 64447a35be2Sscw #define AOUTM68K_SYS_pwrite 174 64547a35be2Sscw 6469b18b6faScl #if defined(NTP) || !defined(_KERNEL) 64747a35be2Sscw /* syscall: "ntp_adjtime" ret: "int" args: "struct timex *" */ 64847a35be2Sscw #define AOUTM68K_SYS_ntp_adjtime 176 64947a35be2Sscw 6509b18b6faScl #else 65147a35be2Sscw /* 176 is excluded ntp_adjtime */ 6529b18b6faScl #endif 65347a35be2Sscw /* syscall: "setgid" ret: "int" args: "gid_t" */ 65447a35be2Sscw #define AOUTM68K_SYS_setgid 181 65547a35be2Sscw 65647a35be2Sscw /* syscall: "setegid" ret: "int" args: "gid_t" */ 65747a35be2Sscw #define AOUTM68K_SYS_setegid 182 65847a35be2Sscw 65947a35be2Sscw /* syscall: "seteuid" ret: "int" args: "uid_t" */ 66047a35be2Sscw #define AOUTM68K_SYS_seteuid 183 66147a35be2Sscw 66247a35be2Sscw /* 184 is excluded lfs_bmapv */ 66347a35be2Sscw /* 185 is excluded lfs_markv */ 66447a35be2Sscw /* 186 is excluded lfs_segclean */ 66547a35be2Sscw /* 187 is excluded lfs_segwait */ 66696d1fdecStsutsui #if defined(COMPAT_12) || !defined(_KERNEL) 66747a35be2Sscw /* syscall: "stat12" ret: "int" args: "const char *" "struct aoutm68k_stat12 *" */ 66847a35be2Sscw #define AOUTM68K_SYS_stat12 188 66947a35be2Sscw 67047a35be2Sscw /* syscall: "fstat12" ret: "int" args: "int" "struct aoutm68k_stat12 *" */ 67147a35be2Sscw #define AOUTM68K_SYS_fstat12 189 67247a35be2Sscw 67347a35be2Sscw /* syscall: "lstat12" ret: "int" args: "const char *" "struct aoutm68k_stat12 *" */ 67447a35be2Sscw #define AOUTM68K_SYS_lstat12 190 67547a35be2Sscw 6769b18b6faScl #else 67747a35be2Sscw /* 188 is excluded aoutm68k_compat_12_sys_stat */ 67847a35be2Sscw /* 189 is excluded aoutm68k_compat_12_sys_fstat */ 67947a35be2Sscw /* 190 is excluded aoutm68k_compat_12_sys_lstat */ 6809b18b6faScl #endif 68147a35be2Sscw /* syscall: "pathconf" ret: "long" args: "const char *" "int" */ 68247a35be2Sscw #define AOUTM68K_SYS_pathconf 191 68347a35be2Sscw 68447a35be2Sscw /* syscall: "fpathconf" ret: "long" args: "int" "int" */ 68547a35be2Sscw #define AOUTM68K_SYS_fpathconf 192 68647a35be2Sscw 68747a35be2Sscw /* syscall: "getrlimit" ret: "int" args: "int" "struct rlimit *" */ 68847a35be2Sscw #define AOUTM68K_SYS_getrlimit 194 68947a35be2Sscw 69047a35be2Sscw /* syscall: "setrlimit" ret: "int" args: "int" "const struct rlimit *" */ 69147a35be2Sscw #define AOUTM68K_SYS_setrlimit 195 69247a35be2Sscw 69396d1fdecStsutsui #if defined(COMPAT_12) || !defined(_KERNEL) 69447a35be2Sscw /* syscall: "getdirentries" ret: "int" args: "int" "char *" "u_int" "long *" */ 69547a35be2Sscw #define AOUTM68K_SYS_getdirentries 196 69647a35be2Sscw 6979b18b6faScl #else 69847a35be2Sscw /* 196 is excluded compat_12_sys_getdirentries */ 6999b18b6faScl #endif 70047a35be2Sscw /* syscall: "mmap" ret: "void *" args: "void *" "size_t" "int" "int" "int" "long" "off_t" */ 70147a35be2Sscw #define AOUTM68K_SYS_mmap 197 70247a35be2Sscw 70347a35be2Sscw /* syscall: "__syscall" ret: "quad_t" args: "quad_t" "..." */ 70447a35be2Sscw #define AOUTM68K_SYS___syscall 198 70547a35be2Sscw 70647a35be2Sscw /* syscall: "lseek" ret: "off_t" args: "int" "int" "off_t" "int" */ 70747a35be2Sscw #define AOUTM68K_SYS_lseek 199 70847a35be2Sscw 70947a35be2Sscw /* syscall: "truncate" ret: "int" args: "const char *" "int" "off_t" */ 71047a35be2Sscw #define AOUTM68K_SYS_truncate 200 71147a35be2Sscw 71247a35be2Sscw /* syscall: "ftruncate" ret: "int" args: "int" "int" "off_t" */ 71347a35be2Sscw #define AOUTM68K_SYS_ftruncate 201 71447a35be2Sscw 71547a35be2Sscw /* syscall: "__sysctl" ret: "int" args: "int *" "u_int" "void *" "size_t *" "void *" "size_t" */ 71647a35be2Sscw #define AOUTM68K_SYS___sysctl 202 71747a35be2Sscw 71847a35be2Sscw /* syscall: "mlock" ret: "int" args: "const void *" "size_t" */ 71947a35be2Sscw #define AOUTM68K_SYS_mlock 203 72047a35be2Sscw 72147a35be2Sscw /* syscall: "munlock" ret: "int" args: "const void *" "size_t" */ 72247a35be2Sscw #define AOUTM68K_SYS_munlock 204 72347a35be2Sscw 72447a35be2Sscw /* syscall: "undelete" ret: "int" args: "const char *" */ 72547a35be2Sscw #define AOUTM68K_SYS_undelete 205 72647a35be2Sscw 72741e9d73cStsutsui /* syscall: "futimes" ret: "int" args: "int" "const struct timeval50 *" */ 72847a35be2Sscw #define AOUTM68K_SYS_futimes 206 72947a35be2Sscw 73047a35be2Sscw /* syscall: "getpgid" ret: "pid_t" args: "pid_t" */ 73147a35be2Sscw #define AOUTM68K_SYS_getpgid 207 73247a35be2Sscw 73347a35be2Sscw /* syscall: "reboot" ret: "int" args: "int" "char *" */ 73447a35be2Sscw #define AOUTM68K_SYS_reboot 208 73547a35be2Sscw 73647a35be2Sscw /* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */ 73747a35be2Sscw #define AOUTM68K_SYS_poll 209 73847a35be2Sscw 7399b18b6faScl #if defined(SYSVSEM) || !defined(_KERNEL) 74096d1fdecStsutsui #if defined(COMPAT_14) || !defined(_KERNEL) 74147a35be2Sscw /* syscall: "__semctl" ret: "int" args: "int" "int" "int" "union __semun *" */ 74247a35be2Sscw #define AOUTM68K_SYS___semctl 220 74347a35be2Sscw 7449b18b6faScl #else 74547a35be2Sscw /* 220 is excluded compat_14_semctl */ 7469b18b6faScl #endif 74747a35be2Sscw /* syscall: "semget" ret: "int" args: "key_t" "int" "int" */ 74847a35be2Sscw #define AOUTM68K_SYS_semget 221 74947a35be2Sscw 75047a35be2Sscw /* syscall: "semop" ret: "int" args: "int" "struct sembuf *" "size_t" */ 75147a35be2Sscw #define AOUTM68K_SYS_semop 222 75247a35be2Sscw 75347a35be2Sscw /* syscall: "semconfig" ret: "int" args: "int" */ 75447a35be2Sscw #define AOUTM68K_SYS_semconfig 223 75547a35be2Sscw 7569b18b6faScl #else 75747a35be2Sscw /* 220 is excluded compat_14_semctl */ 75847a35be2Sscw /* 221 is excluded semget */ 75947a35be2Sscw /* 222 is excluded semop */ 76047a35be2Sscw /* 223 is excluded semconfig */ 7619b18b6faScl #endif 7629b18b6faScl #if defined(SYSVMSG) || !defined(_KERNEL) 76396d1fdecStsutsui #if defined(COMPAT_14) || !defined(_KERNEL) 76447a35be2Sscw /* syscall: "msgctl" ret: "int" args: "int" "int" "struct msqid_ds14 *" */ 76547a35be2Sscw #define AOUTM68K_SYS_msgctl 224 76647a35be2Sscw 7679b18b6faScl #else 76847a35be2Sscw /* 224 is excluded compat_14_sys_msgctl */ 7699b18b6faScl #endif 77047a35be2Sscw /* syscall: "msgget" ret: "int" args: "key_t" "int" */ 77147a35be2Sscw #define AOUTM68K_SYS_msgget 225 77247a35be2Sscw 77347a35be2Sscw /* syscall: "msgsnd" ret: "int" args: "int" "const void *" "size_t" "int" */ 77447a35be2Sscw #define AOUTM68K_SYS_msgsnd 226 77547a35be2Sscw 77647a35be2Sscw /* syscall: "msgrcv" ret: "ssize_t" args: "int" "void *" "size_t" "long" "int" */ 77747a35be2Sscw #define AOUTM68K_SYS_msgrcv 227 77847a35be2Sscw 7799b18b6faScl #else 78047a35be2Sscw /* 224 is excluded compat_14_msgctl */ 78147a35be2Sscw /* 225 is excluded msgget */ 78247a35be2Sscw /* 226 is excluded msgsnd */ 78347a35be2Sscw /* 227 is excluded msgrcv */ 7849b18b6faScl #endif 7859b18b6faScl #if defined(SYSVSHM) || !defined(_KERNEL) 78647a35be2Sscw /* syscall: "shmat" ret: "void *" args: "int" "const void *" "int" */ 78747a35be2Sscw #define AOUTM68K_SYS_shmat 228 78847a35be2Sscw 78996d1fdecStsutsui #if defined(COMPAT_14) || !defined(_KERNEL) 79047a35be2Sscw /* syscall: "shmctl" ret: "int" args: "int" "int" "struct shmid_ds14 *" */ 79147a35be2Sscw #define AOUTM68K_SYS_shmctl 229 79247a35be2Sscw 7939b18b6faScl #else 79447a35be2Sscw /* 229 is excluded compat_14_sys_shmctl */ 7959b18b6faScl #endif 79647a35be2Sscw /* syscall: "shmdt" ret: "int" args: "const void *" */ 79747a35be2Sscw #define AOUTM68K_SYS_shmdt 230 79847a35be2Sscw 79947a35be2Sscw /* syscall: "shmget" ret: "int" args: "key_t" "size_t" "int" */ 80047a35be2Sscw #define AOUTM68K_SYS_shmget 231 80147a35be2Sscw 8029b18b6faScl #else 80347a35be2Sscw /* 228 is excluded shmat */ 80447a35be2Sscw /* 229 is excluded compat_14_shmctl */ 80547a35be2Sscw /* 230 is excluded shmdt */ 80647a35be2Sscw /* 231 is excluded shmget */ 8079b18b6faScl #endif 80841e9d73cStsutsui /* syscall: "clock_gettime" ret: "int" args: "clockid_t" "struct timespec50 *" */ 80947a35be2Sscw #define AOUTM68K_SYS_clock_gettime 232 81047a35be2Sscw 81141e9d73cStsutsui /* syscall: "clock_settime" ret: "int" args: "clockid_t" "const struct timespec50 *" */ 81247a35be2Sscw #define AOUTM68K_SYS_clock_settime 233 81347a35be2Sscw 81441e9d73cStsutsui /* syscall: "clock_getres" ret: "int" args: "clockid_t" "struct timespec50 *" */ 81547a35be2Sscw #define AOUTM68K_SYS_clock_getres 234 81647a35be2Sscw 81741e9d73cStsutsui /* syscall: "nanosleep" ret: "int" args: "const struct timespec50 *" "struct timespec50 *" */ 81847a35be2Sscw #define AOUTM68K_SYS_nanosleep 240 81947a35be2Sscw 82047a35be2Sscw /* syscall: "fdatasync" ret: "int" args: "int" */ 82147a35be2Sscw #define AOUTM68K_SYS_fdatasync 241 82247a35be2Sscw 82347a35be2Sscw /* syscall: "mlockall" ret: "int" args: "int" */ 82447a35be2Sscw #define AOUTM68K_SYS_mlockall 242 82547a35be2Sscw 82647a35be2Sscw /* syscall: "munlockall" ret: "int" args: */ 82747a35be2Sscw #define AOUTM68K_SYS_munlockall 243 82847a35be2Sscw 82947a35be2Sscw /* syscall: "__posix_rename" ret: "int" args: "const char *" "const char *" */ 83047a35be2Sscw #define AOUTM68K_SYS___posix_rename 270 83147a35be2Sscw 83247a35be2Sscw /* syscall: "swapctl" ret: "int" args: "int" "const void *" "int" */ 83347a35be2Sscw #define AOUTM68K_SYS_swapctl 271 83447a35be2Sscw 83596d1fdecStsutsui #if defined(COMPAT_30) || !defined(_KERNEL) 83647a35be2Sscw /* syscall: "getdents" ret: "int" args: "int" "char *" "size_t" */ 83747a35be2Sscw #define AOUTM68K_SYS_getdents 272 83847a35be2Sscw 839cffd112bSchristos #else 840cffd112bSchristos /* 272 is excluded compat_30_sys_getdents */ 841cffd112bSchristos #endif 84247a35be2Sscw /* syscall: "minherit" ret: "int" args: "void *" "size_t" "int" */ 84347a35be2Sscw #define AOUTM68K_SYS_minherit 273 84447a35be2Sscw 84547a35be2Sscw /* syscall: "lchmod" ret: "int" args: "const char *" "mode_t" */ 84647a35be2Sscw #define AOUTM68K_SYS_lchmod 274 84747a35be2Sscw 84847a35be2Sscw /* syscall: "lchown" ret: "int" args: "const char *" "uid_t" "gid_t" */ 84947a35be2Sscw #define AOUTM68K_SYS_lchown 275 85047a35be2Sscw 85141e9d73cStsutsui /* syscall: "lutimes" ret: "int" args: "const char *" "const struct timeval50 *" */ 85247a35be2Sscw #define AOUTM68K_SYS_lutimes 276 85347a35be2Sscw 85447a35be2Sscw /* syscall: "__msync13" ret: "int" args: "void *" "size_t" "int" */ 85547a35be2Sscw #define AOUTM68K_SYS___msync13 277 85647a35be2Sscw 85747a35be2Sscw /* syscall: "__stat13" ret: "int" args: "const char *" "struct aoutm68k_stat *" */ 85847a35be2Sscw #define AOUTM68K_SYS___stat13 278 85947a35be2Sscw 86047a35be2Sscw /* syscall: "__fstat13" ret: "int" args: "int" "struct aoutm68k_stat *" */ 86147a35be2Sscw #define AOUTM68K_SYS___fstat13 279 86247a35be2Sscw 86347a35be2Sscw /* syscall: "__lstat13" ret: "int" args: "const char *" "struct aoutm68k_stat *" */ 86447a35be2Sscw #define AOUTM68K_SYS___lstat13 280 86547a35be2Sscw 86647a35be2Sscw /* syscall: "__sigaltstack14" ret: "int" args: "const struct sigaltstack *" "struct sigaltstack *" */ 86747a35be2Sscw #define AOUTM68K_SYS___sigaltstack14 281 86847a35be2Sscw 86947a35be2Sscw /* syscall: "__vfork14" ret: "int" args: */ 87047a35be2Sscw #define AOUTM68K_SYS___vfork14 282 87147a35be2Sscw 87247a35be2Sscw /* syscall: "__posix_chown" ret: "int" args: "const char *" "uid_t" "gid_t" */ 87347a35be2Sscw #define AOUTM68K_SYS___posix_chown 283 87447a35be2Sscw 87547a35be2Sscw /* syscall: "__posix_fchown" ret: "int" args: "int" "uid_t" "gid_t" */ 87647a35be2Sscw #define AOUTM68K_SYS___posix_fchown 284 87747a35be2Sscw 87847a35be2Sscw /* syscall: "__posix_lchown" ret: "int" args: "const char *" "uid_t" "gid_t" */ 87947a35be2Sscw #define AOUTM68K_SYS___posix_lchown 285 88047a35be2Sscw 88147a35be2Sscw /* syscall: "getsid" ret: "pid_t" args: "pid_t" */ 88247a35be2Sscw #define AOUTM68K_SYS_getsid 286 88347a35be2Sscw 8849b18b6faScl #if defined(KTRACE) || !defined(_KERNEL) 88547a35be2Sscw /* syscall: "fktrace" ret: "int" args: "const int" "int" "int" "int" */ 88647a35be2Sscw #define AOUTM68K_SYS_fktrace 288 88747a35be2Sscw 8889b18b6faScl #else 88947a35be2Sscw /* 288 is excluded ktrace */ 8909b18b6faScl #endif 89147a35be2Sscw /* syscall: "preadv" ret: "ssize_t" args: "int" "const struct iovec *" "int" "int" "off_t" */ 89247a35be2Sscw #define AOUTM68K_SYS_preadv 289 89347a35be2Sscw 89447a35be2Sscw /* syscall: "pwritev" ret: "ssize_t" args: "int" "const struct iovec *" "int" "int" "off_t" */ 89547a35be2Sscw #define AOUTM68K_SYS_pwritev 290 89647a35be2Sscw 89796d1fdecStsutsui #if defined(COMPAT_16) || !defined(_KERNEL) 89847a35be2Sscw /* syscall: "__sigaction14" ret: "int" args: "int" "const struct sigaction *" "struct sigaction *" */ 89947a35be2Sscw #define AOUTM68K_SYS___sigaction14 291 90047a35be2Sscw 9010dd1fb3dScl #else 9020dd1fb3dScl /* 291 is excluded compat_16_sys___sigaction14 */ 9030dd1fb3dScl #endif 90447a35be2Sscw /* syscall: "__sigpending14" ret: "int" args: "sigset_t *" */ 90547a35be2Sscw #define AOUTM68K_SYS___sigpending14 292 90647a35be2Sscw 90747a35be2Sscw /* syscall: "__sigprocmask14" ret: "int" args: "int" "const sigset_t *" "sigset_t *" */ 90847a35be2Sscw #define AOUTM68K_SYS___sigprocmask14 293 90947a35be2Sscw 91047a35be2Sscw /* syscall: "__sigsuspend14" ret: "int" args: "const sigset_t *" */ 91147a35be2Sscw #define AOUTM68K_SYS___sigsuspend14 294 91247a35be2Sscw 91396d1fdecStsutsui #if defined(COMPAT_16) || !defined(_KERNEL) 91447a35be2Sscw /* syscall: "__sigreturn14" ret: "int" args: "struct sigcontext *" */ 91547a35be2Sscw #define AOUTM68K_SYS___sigreturn14 295 91647a35be2Sscw 9179b18b6faScl #else 9189b18b6faScl /* 295 is excluded compat_16_sys___sigreturn14 */ 9199b18b6faScl #endif 92047a35be2Sscw /* syscall: "__getcwd" ret: "int" args: "char *" "size_t" */ 92147a35be2Sscw #define AOUTM68K_SYS___getcwd 296 92247a35be2Sscw 92347a35be2Sscw /* syscall: "fchroot" ret: "int" args: "int" */ 92447a35be2Sscw #define AOUTM68K_SYS_fchroot 297 92547a35be2Sscw 926d91f98a8Spgoyette #if defined(COMPAT_30) || ! defined(_KERNEL) 92761138efdSmartin /* syscall: "fhopen" ret: "int" args: "const struct compat_30_fhandle *" "int" */ 92847a35be2Sscw #define AOUTM68K_SYS_fhopen 298 92947a35be2Sscw 930d91f98a8Spgoyette #else 931d91f98a8Spgoyette /* 298 is excluded compat_30_sys_fhopen */ 932d91f98a8Spgoyette #endif 93361138efdSmartin /* syscall: "fhstat" ret: "int" args: "const struct compat_30_fhandle *" "struct aoutm68k_stat *" */ 93447a35be2Sscw #define AOUTM68K_SYS_fhstat 299 93547a35be2Sscw 93696d1fdecStsutsui #if defined(COMPAT_20) || !defined(_KERNEL) 93761138efdSmartin /* syscall: "fhstatfs" ret: "int" args: "const struct compat_30-fhandle *" "struct statfs12 *" */ 93847a35be2Sscw #define AOUTM68K_SYS_fhstatfs 300 93947a35be2Sscw 940633d902cSmatt #else 941633d902cSmatt /* 300 is excluded compat_20_sys_fhstatfs */ 942633d902cSmatt #endif 9439b18b6faScl #if defined(SYSVSEM) || !defined(_KERNEL) 94447a35be2Sscw /* syscall: "____semctl13" ret: "int" args: "int" "int" "int" "..." */ 94547a35be2Sscw #define AOUTM68K_SYS_____semctl13 301 94647a35be2Sscw 9479b18b6faScl #else 94847a35be2Sscw /* 301 is excluded ____semctl13 */ 9499b18b6faScl #endif 9509b18b6faScl #if defined(SYSVMSG) || !defined(_KERNEL) 95147a35be2Sscw /* syscall: "__msgctl13" ret: "int" args: "int" "int" "struct msqid_ds *" */ 95247a35be2Sscw #define AOUTM68K_SYS___msgctl13 302 95347a35be2Sscw 9549b18b6faScl #else 95547a35be2Sscw /* 302 is excluded __msgctl13 */ 9569b18b6faScl #endif 9579b18b6faScl #if defined(SYSVSHM) || !defined(_KERNEL) 95847a35be2Sscw /* syscall: "__shmctl13" ret: "int" args: "int" "int" "struct shmid_ds *" */ 95947a35be2Sscw #define AOUTM68K_SYS___shmctl13 303 96047a35be2Sscw 9619b18b6faScl #else 96247a35be2Sscw /* 303 is excluded __shmctl13 */ 9639b18b6faScl #endif 96447a35be2Sscw /* syscall: "lchflags" ret: "int" args: "const char *" "u_long" */ 96547a35be2Sscw #define AOUTM68K_SYS_lchflags 304 96647a35be2Sscw 96747a35be2Sscw /* syscall: "issetugid" ret: "int" args: */ 96847a35be2Sscw #define AOUTM68K_SYS_issetugid 305 96947a35be2Sscw 970a83ddff8Sthorpej /* syscall: "getcontext" ret: "int" args: "struct __ucontext *" */ 971a83ddff8Sthorpej #define AOUTM68K_SYS_getcontext 306 972a83ddff8Sthorpej 973a83ddff8Sthorpej /* syscall: "setcontext" ret: "int" args: "const struct __ucontext *" */ 974a83ddff8Sthorpej #define AOUTM68K_SYS_setcontext 307 975a83ddff8Sthorpej 976a83ddff8Sthorpej #define AOUTM68K_SYS_MAXSYSCALL 308 97722ca1fc9Sjdolecek #define AOUTM68K_SYS_NSYSENT 512 978280b6906Smatt #endif /* _AOUTM68K_SYS_SYSCALL_H_ */ 979