From: Roland McGrath Date: Wed, 2 Feb 2005 20:32:13 +0000 (+0000) Subject: 2005-02-02 Roland McGrath X-Git-Tag: v4.5.18~435 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ddce11b805b1db9452a4dbd3972f6f4aeeab0499;p=strace 2005-02-02 Roland McGrath * linux/sparc/syscall.h: Declare sys_epoll_create, sys_epoll_ctl, sys_epoll_wait. * linux/sparc64/syscall.h: Just #include "../sparc/syscall.h" here. * ioctl.c (nioctlents2): Add const to type. Fixes Debian bug #278449. --- diff --git a/ioctl.c b/ioctl.c index aba69c7f..d99b669a 100644 --- a/ioctl.c +++ b/ioctl.c @@ -62,7 +62,7 @@ const struct ioctlent ioctlent2[] = { #include "ioctlent2.h" }; -int nioctlents2 = sizeof ioctlent2 / sizeof ioctlent2[0]; +const int nioctlents2 = sizeof ioctlent2 / sizeof ioctlent2[0]; #endif /* SUPPORTED_PERSONALITIES >= 3 */ const struct ioctlent *ioctlent; diff --git a/linux/sparc/syscall.h b/linux/sparc/syscall.h index dc23258e..b4eb5d26 100644 --- a/linux/sparc/syscall.h +++ b/linux/sparc/syscall.h @@ -59,6 +59,7 @@ int sys_getitimer(),sys_setitimer(); /* 1.5 descriptors */ int sys_getdtablesize(),sys_dup(),sys_dup2(),sys_close(); int sys_oldselect(),sys_select(),sys_getdopt(),sys_setdopt(),sys_fcntl(),sys_flock(); +int sys_epoll_create(), sys_epoll_ctl(), sys_epoll_wait(); /* 1.6 resource controls */ int sys_getpriority(),sys_setpriority(),sys_getrusage(),sys_getrlimit(),sys_setrlimit(); diff --git a/linux/sparc64/syscall.h b/linux/sparc64/syscall.h index dc23258e..b56e08df 100644 --- a/linux/sparc64/syscall.h +++ b/linux/sparc64/syscall.h @@ -1,204 +1 @@ -/* - * Copyright (c) 1991, 1992 Paul Kranenburg - * Copyright (c) 1993, 1994, 1995, 1996 Rick Sladkey - * 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. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. - * - * $Id$ - */ -#include "dummy.h" - -int sys_nosys(); -int sys_nullsys(); -int sys_errsys(); - -/* 1.1 processes and protection */ -int sys_gethostid(),sys_sethostname(),sys_gethostname(),sys_getpid(); -int sys_setdomainname(),sys_getdomainname(); -int sys_fork(),sys_clone(),sys_exit(),sys_execv(),sys_execve(),sys_wait4(),sys_waitpid(); -int sys_setuid(),sys_setgid(),sys_getuid(),sys_setreuid(),sys_getgid(),sys_getgroups(),sys_setregid(),sys_setgroups(); -int sys_getpgrp(),sys_setpgrp(); -int sys_setsid(), sys_setpgid(); -int sys_uname(), sys_sysinfo(); - -/* 1.2 memory management */ -int sys_brk(),sys_sbrk(),sys_sstk(); -int sys_getpagesize(),sys_mmap(),sys_mctl(),sys_munmap(),sys_mprotect(),sys_mincore(), sys_mremap(); -int sys_omsync(),sys_omadvise(), sys_madvise(),sys_mlockall(); - -/* 1.3 signals */ -int sys_sigvec(),sys_sigblock(),sys_sigsetmask(),sys_sigpause(),sys_sigstack(),sys_sigcleanup(), sys_sigreturn(); -int sys_kill(), sys_killpg(), sys_sigpending(), sys_signal(), sys_sigaction(), sys_sigsuspend(), sys_sigprocmask(); - -/* 1.4 timing and statistics */ -int sys_gettimeofday(),sys_settimeofday(); -int sys_adjtime(), sys_adjtimex(); -int sys_getitimer(),sys_setitimer(); - -/* 1.5 descriptors */ -int sys_getdtablesize(),sys_dup(),sys_dup2(),sys_close(); -int sys_oldselect(),sys_select(),sys_getdopt(),sys_setdopt(),sys_fcntl(),sys_flock(); - -/* 1.6 resource controls */ -int sys_getpriority(),sys_setpriority(),sys_getrusage(),sys_getrlimit(),sys_setrlimit(); -int sys_oldquota(), sys_quotactl(); -int sys_rtschedule(), sys_personality(); - -/* 1.7 system operation support */ -int sys_mount(),sys_unmount(),sys_swapon(),sys_pivotroot(); -int sys_sync(),sys_reboot(); -int sys_sysacct(); -int sys_auditsys(); - -/* 2.1 generic operations */ -int sys_read(),sys_write(),sys_readv(),sys_writev(),sys_ioctl(); - -/* 2.1.1 asynch operations */ -int sys_aioread(), sys_aiowrite(), sys_aiowait(), sys_aiocancel(); - -/* 2.2 file system */ -int sys_chdir(),sys_chroot(); -int sys_fchdir(),sys_fchroot(); -int sys_mkdir(),sys_rmdir(),sys_getdirentries(); -int sys_getdents(), sys_getdents64(), sys_readdir(); -int sys_creat(),sys_open(),sys_mknod(),sys_unlink(),sys_stat(),sys_fstat(),sys_lstat(); -int sys_chown(),sys_fchown(),sys_chmod(),sys_fchmod(),sys_utimes(); -int sys_link(),sys_symlink(),sys_readlink(),sys_rename(); -int sys_lseek(), sys_llseek(); -int sys_truncate(),sys_ftruncate(),sys_access(),sys_fsync(),sys_sysctl(); -int sys_statfs(),sys_fstatfs(),sys_msync(); -int sys_stat64(), sys_lstat64(), sys_fstat64(); -int sys_truncate64(), sys_ftruncate64(); - - -/* 2.3 communications */ -int sys_socket(),sys_bind(),sys_listen(),sys_accept(),sys_connect(); -int sys_socketpair(),sys_sendto(),sys_send(),sys_recvfrom(),sys_recv(); -int sys_sendmsg(),sys_recvmsg(),sys_shutdown(),sys_setsockopt(),sys_getsockopt(); -int sys_getsockname(),sys_getpeername(),sys_pipe(); - -int sys_setresuid(), sys_setresgid(), sys_getresuid(), sys_getresgid(), sys_pread(); -int sys_pwrite(), sys_getcwd(); -int sys_sigaltstack(), sys_rt_sigprocmask(), sys_rt_sigaction(); -int sys_rt_sigpending(), sys_rt_sigsuspend(), sys_rt_sigqueueinfo(); -int sys_rt_sigtimedwait(), sys_prctl(), sys_poll(); -int sys_sendfile(), sys_query_module(), sys_capget(), sys_capset(); -int sys_create_module(), sys_init_module(); - -int sys_umask(); /* XXX */ - -int sys_sched_setparam(), sys_sched_getparam(); -int sys_sched_setscheduler(), sys_sched_getscheduler(), sys_sched_yield(); -int sys_sched_get_priority_max(), sys_sched_get_priority_min(); - -/* 2.3.1 SystemV-compatible IPC */ -int sys_semsys(), sys_semctl(), sys_semget(); -#define SYS_semsys_subcall 200 -#define SYS_semsys_nsubcalls 3 -#define SYS_semctl (SYS_semsys_subcall + 0) -#define SYS_semget (SYS_semsys_subcall + 1) -#define SYS_semop (SYS_semsys_subcall + 2) -int sys_msgsys(), sys_msgget(), sys_msgctl(), sys_msgrcv(), sys_msgsnd(); -#define SYS_msgsys_subcall 203 -#define SYS_msgsys_nsubcalls 4 -#define SYS_msgget (SYS_msgsys_subcall + 0) -#define SYS_msgctl (SYS_msgsys_subcall + 1) -#define SYS_msgrcv (SYS_msgsys_subcall + 2) -#define SYS_msgsnd (SYS_msgsys_subcall + 3) -int sys_shmsys(), sys_shmat(), sys_shmctl(), sys_shmdt(), sys_shmget(); -#define SYS_shmsys_subcall 207 -#define SYS_shmsys_nsubcalls 4 -#define SYS_shmat (SYS_shmsys_subcall + 0) -#define SYS_shmctl (SYS_shmsys_subcall + 1) -#define SYS_shmdt (SYS_shmsys_subcall + 2) -#define SYS_shmget (SYS_shmsys_subcall + 3) - -/* 2.4 processes */ -int sys_ptrace(); - -/* 2.5 terminals */ - -/* emulations for backwards compatibility */ -int sys_otime(); /* now use gettimeofday */ -int sys_ostime(); /* now use settimeofday */ -int sys_oalarm(); /* now use setitimer */ -int sys_outime(); /* now use utimes */ -int sys_opause(); /* now use sigpause */ -int sys_onice(); /* now use setpriority,getpriority */ -int sys_oftime(); /* now use gettimeofday */ -int sys_osetpgrp(); /* ??? */ -int sys_otimes(); /* now use getrusage */ -int sys_ossig(); /* now use sigvec, etc */ -int sys_ovlimit(); /* now use setrlimit,getrlimit */ -int sys_ovtimes(); /* now use getrusage */ -int sys_osetuid(); /* now use setreuid */ -int sys_osetgid(); /* now use setregid */ -int sys_ostat(); /* now use stat */ -int sys_ofstat(); /* now use fstat */ - -/* BEGIN JUNK */ -int sys_profil(); /* 'cuz sys calls are interruptible */ -int sys_vhangup(); /* should just do in sys_exit() */ -int sys_vfork(); /* XXX - was awaiting fork w/ copy on write */ -int sys_ovadvise(); /* awaiting new madvise */ -int sys_indir(); /* indirect system call */ -int sys_ustat(); /* System V compatibility */ -int sys_owait(); /* should use wait4 interface */ -int sys_owait3(); /* should use wait4 interface */ -int sys_umount(); /* still more Sys V (and 4.2?) compatibility */ -int sys_umount2(); -int sys_pathconf(); /* posix */ -int sys_fpathconf(); /* posix */ -int sys_sysconf(); /* posix */ -int sys_delete_module(); -int sys_debug(); -/* END JUNK */ - -int sys_vtrace(); /* kernel event tracing */ - -/* nfs */ -int sys_async_daemon(); /* client async daemon */ -int sys_nfs_svc(); /* run nfs server */ -int sys_nfs_getfh(); /* get file handle */ -int sys_exportfs(); /* export file systems */ - -int sys_rfssys(); /* RFS-related calls */ - -int sys_getmsg(); -int sys_putmsg(); -int sys_poll(); - -int sys_vpixsys(); /* VP/ix system calls */ - -int sys_sendfile64(), sys_futex(), sys_gettid(), sys_sched_setaffinity(); -int sys_sched_getaffinity(), sys_setxattr(), sys_lsetxattr(); -int sys_fsetxattr(), sys_getxattr(), sys_lgetxattr(), sys_fgetxattr(); -int sys_listxattr(), sys_llistxattr(), sys_flistxattr(); -int sys_removexattr(), sys_lremovexattr(), sys_fremovexattr(); -int sys_remap_file_pages(), sys_readahead(), sys_tgkill(), sys_statfs64(); -int sys_fstatfs64(), sys_clock_settime(), sys_clock_gettime(); -int sys_clock_getres(), sys_clock_nanosleep(); -int sys_timer_create(), sys_timer_settime(), sys_timer_gettime(); - -#include "syscall1.h" +#include "../sparc/syscall.h"