libc
/* $Id$ */
/* Copyright (c) 2006-2020 Pierre Pronchery <khorben@defora.org> */
/* This file is part of DeforaOS System libc */
/* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
#ifndef KERNEL_NETBSD_SYS_SYSCALL_H
# define KERNEL_NETBSD_SYS_SYSCALL_H
/* constants */
/* syscalls */
# define SYS_exit 1
# define SYS_fork 2
# define SYS_read 3
# define SYS_write 4
# define SYS_open 5
# define SYS_close 6
# define SYS_link 9
# define SYS_unlink 10
# define SYS_chdir 12
# define SYS_fchdir 13
# define SYS_chmod 15
# define SYS_brk 17
# define SYS_getpid 20
# define SYS_unmount 22
# define SYS_setuid 23
# define SYS_getuid 24
# define SYS_geteuid 25
# define SYS_ptrace 26
# define SYS_access 33
# define SYS_sync 36
# define SYS_kill 37
# define SYS_getppid 39
# define SYS_dup 41
# define SYS_pipe 42
# define SYS_getegid 43
# define SYS_getgid 47
# define SYS_getlogin_r 49
# define SYS_ioctl 54
# define SYS_symlink 57
# define SYS_readlink 58
# define SYS_execve 59
# define SYS_umask 60
# define SYS_chroot 61
# define SYS_vfork 66
# define SYS_munmap 73
# define SYS_mprotect 74
# define SYS_getgroups 79
# define SYS_getpgrp 81
# define SYS_setpgid 82
# define SYS_dup2 90
# define SYS_fcntl 92
# define SYS_fsync 95
# define SYS_setpriority 96
# define SYS_getpriority 100
# define SYS_fchmod 124
# define SYS_setreuid 126
# define SYS_setregid 127
# define SYS_flock 131
# define SYS_mkfifo 132
# define SYS_mkdir 136
# define SYS_rmdir 137
# define SYS_setsid 147
# define SYS_setgid 181
# define SYS_setegid 182
# define SYS_seteuid 183
# define SYS_getrlimit 194
# define SYS_setrlimit 195
# define SYS_mmap 197
# define SYS_lseek 199
# define SYS_truncate 200
# define SYS_ftruncate 201
# define SYS_sysctl 202
# define SYS_mlock 203
# define SYS_munlock 204
# define SYS_reboot 208
# define SYS_poll 209
# define SYS_msgget 225
# define SYS_msgsnd 226
# define SYS_msgrcv 227
# define SYS_shmat 228
# define SYS_shmdt 230
# define SYS_shmget 231
# define SYS_rename 270
# define SYS_chown 283
# define SYS_fchown 284
# define SYS_lchown 285
# define SYS_sigaction 340
# define SYS_sigprocmask 293
# define SYS__getcwd 296
# define SYS_getcontext 307
# define SYS_setcontext 308
# define SYS_statvfs 357
# define SYS_getdents 390
# define SYS_mount 410
# define SYS_select 417
# define SYS_gettimeofday 418
# define SYS_utimes 420
# define SYS_setitimer 425
# define SYS_getitimer 426
# define SYS_clock_gettime 427
# define SYS_clock_settime 428
# define SYS_clock_getres 429
# define SYS_nanosleep 430
# define SYS_pselect 436
# define SYS_stat 439
# define SYS_fstat 440
# define SYS_lstat 441
# define SYS_shmctl 443
# define SYS_msgctl 444
# define SYS_getrusage 445
# define SYS_wait4 449
# define SYS_mknod 450
# define SYS_linkat 457
# define SYS_renameat 458
# define SYS_mkfifoat 459
# define SYS_mknodat 460
# define SYS_mkdirat 461
# define SYS_faccessat 462
# define SYS_fchmodat 463
# define SYS_fchownat 464
# define SYS_fstatat 466
# define SYS_openat 468
# define SYS_readlinkat 469
# define SYS_symlinkat 470
# define SYS_unlinkat 471
#endif /* !KERNEL_NETBSD_SYS_SYSCALL_H */