home *** CD-ROM | disk | FTP | other *** search
- From: jrs@world.std.com (Rick Sladkey)
- Newsgroups: comp.sources.misc
- Subject: v43i079: strace - system call tracer for sunos, linux, svr4, solaris2, Part05/10
- Date: 9 Jul 1994 15:49:14 -0500
- Organization: Sterling Software
- Sender: kent@sparky.sterling.com
- Approved: kent@sparky.sterling.com
- Message-ID: <2vn2ga$9bv@sparky.sterling.com>
- X-Md4-Signature: 70f5bf5b823fe593dcd88b8829372ce4
-
- Submitted-by: jrs@world.std.com (Rick Sladkey)
- Posting-number: Volume 43, Issue 79
- Archive-name: strace/part05
- Environment: sunos, linux, svr4, solaris
-
- #! /bin/sh
- # This is a shell archive. Remove anything before this line, then feed it
- # into a shell via "sh file" or similar. To overwrite existing files,
- # type "sh file -c".
- # Contents: strace-3.0/signal.c strace-3.0/sunos4/ioctlent.sh
- # strace-3.0/svr4/ioctlent.h strace-3.0/svr4/syscallent.h
- # strace-3.0/test/sig.c
- # Wrapped by kent@sparky on Sat Jul 9 15:42:56 1994
- PATH=/bin:/usr/bin:/usr/ucb:/usr/local/bin:/usr/lbin:$PATH ; export PATH
- echo If this archive is complete, you will see the following message:
- echo ' "shar: End of archive 5 (of 10)."'
- if test -f 'strace-3.0/signal.c' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'strace-3.0/signal.c'\"
- else
- echo shar: Extracting \"'strace-3.0/signal.c'\" \(16926 characters\)
- sed "s/^X//" >'strace-3.0/signal.c' <<'END_OF_FILE'
- X/*
- X * Copyright (c) 1991, 1992 Paul Kranenburg <pk@cs.few.eur.nl>
- X * Copyright (c) 1993 Branko Lankester <branko@hacktic.nl>
- X * Copyright (c) 1993, 1994 Rick Sladkey <jrs@world.std.com>
- X * All rights reserved.
- X *
- X * Redistribution and use in source and binary forms, with or without
- X * modification, are permitted provided that the following conditions
- X * are met:
- X * 1. Redistributions of source code must retain the above copyright
- X * notice, this list of conditions and the following disclaimer.
- X * 2. Redistributions in binary form must reproduce the above copyright
- X * notice, this list of conditions and the following disclaimer in the
- X * documentation and/or other materials provided with the distribution.
- X * 3. All advertising materials mentioning features or use of this software
- X * must display the following acknowledgement:
- X * This product includes software developed by Paul Kranenburg,
- X * Branko Lankester and Rick Sladkey.
- X * 4. The name of the author may not be used to endorse or promote products
- X * derived from this software without specific prior written permission.
- X *
- X * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
- X * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- X * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- X * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
- X * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- X * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- X * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- X * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- X * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- X * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- X *
- X * signal.c,v 2.26 1994/03/21 05:45:36 jrs Exp
- X */
- X
- X#include "defs.h"
- X
- X#include <signal.h>
- X#include <sys/user.h>
- X#include <fcntl.h>
- X
- X#ifdef SVR4
- X#include <sys/ucontext.h>
- X#endif /* SVR4 */
- X
- Xchar *signalent[] = {
- X#ifdef LINUX
- X "SIGNULL", /* 0 */
- X "SIGHUP", /* 1 */
- X "SIGINT", /* 2 */
- X "SIGQUIT", /* 3 */
- X "SIGILL", /* 4 */
- X "SIGTRAP", /* 5 */
- X "SIGABRT", /* 6 */
- X "SIGUNUSED", /* 7 */
- X "SIGFPE", /* 8 */
- X "SIGKILL", /* 9 */
- X "SIGUSR1", /* 10 */
- X "SIGSEGV", /* 11 */
- X "SIGUSR2", /* 12 */
- X "SIGPIPE", /* 13 */
- X "SIGALRM", /* 14 */
- X "SIGTERM", /* 15 */
- X "SIGSTKFLT", /* 16 */
- X "SIGCHLD", /* 17 */
- X "SIGCONT", /* 18 */
- X "SIGSTOP", /* 19 */
- X "SIGTSTP", /* 20 */
- X "SIGTTIN", /* 21 */
- X "SIGTTOU", /* 22 */
- X "SIGIO", /* 23 */
- X "SIGXCPU", /* 24 */
- X "SIGXFSZ", /* 25 */
- X "SIGVTALRM", /* 26 */
- X "SIGPROF", /* 27 */
- X "SIGWINCH", /* 28 */
- X "SIGLOST", /* 29 */
- X "SIG30", /* 30 */
- X "SIG31", /* 31 */
- X "SIG32", /* 32 */
- X#endif /* LINUX */
- X#ifdef SUNOS4
- X "SIGNULL", /* 0 */
- X "SIGHUP", /* 1 */
- X "SIGINT", /* 2 */
- X "SIGQUIT", /* 3 */
- X "SIGILL", /* 4 */
- X "SIGTRAP", /* 5 */
- X "SIGIOT", /* 6 */
- X "SIGEMT", /* 7 */
- X "SIGFPE", /* 8 */
- X "SIGKILL", /* 9 */
- X "SIGBUS", /* 10 */
- X "SIGSEGV", /* 11 */
- X "SIGSYS", /* 12 */
- X "SIGPIPE", /* 13 */
- X "SIGALRM", /* 14 */
- X "SIGTERM", /* 15 */
- X "SIGURG", /* 16 */
- X "SIGSTOP", /* 17 */
- X "SIGTSTP", /* 18 */
- X "SIGCONT", /* 19 */
- X "SIGCHLD", /* 20 */
- X "SIGTTIN", /* 21 */
- X "SIGTTOU", /* 22 */
- X "SIGIO", /* 23 */
- X "SIGXCPU", /* 24 */
- X "SIGXFSZ", /* 25 */
- X "SIGVTALRM", /* 26 */
- X "SIGPROF", /* 27 */
- X "SIGWINCH", /* 28 */
- X "SIGLOST", /* 29 */
- X "SIGUSR1", /* 30 */
- X "SIGUSR2", /* 31 */
- X#endif /* SUNOS4 */
- X#ifdef SVR4
- X "SIGNULL", /* 0 */
- X "SIGHUP", /* 1 */
- X "SIGINT", /* 2 */
- X "SIGQUIT", /* 3 */
- X "SIGILL", /* 4 */
- X "SIGTRAP", /* 5 */
- X "SIGABRT", /* 6 */
- X "SIGEMT", /* 7 */
- X "SIGFPE", /* 8 */
- X "SIGKILL", /* 9 */
- X "SIGBUS", /* 10 */
- X "SIGSEGV", /* 11 */
- X "SIGSYS", /* 12 */
- X "SIGPIPE", /* 13 */
- X "SIGALRM", /* 14 */
- X "SIGTERM", /* 15 */
- X "SIGUSR1", /* 16 */
- X "SIGUSR2", /* 17 */
- X "SIGCHLD", /* 18 */
- X "SIGPWR", /* 19 */
- X "SIGWINCH", /* 20 */
- X "SIGURG", /* 21 */
- X "SIGPOLL", /* 22 */
- X "SIGSTOP", /* 23 */
- X "SIGTSTP", /* 24 */
- X "SIGCONT", /* 25 */
- X "SIGTTIN", /* 26 */
- X "SIGTTOU", /* 27 */
- X "SIGVTALRM", /* 28 */
- X "SIGPROF", /* 29 */
- X "SIGXCPU", /* 30 */
- X "SIGXFSZ", /* 31 */
- X "SIGWAITING", /* 32 */
- X "SIGLWP", /* 33 */
- X "SIGFREEZE", /* 34 */
- X "SIGTHAW", /* 35 */
- X "SIGRT1", /* 36 */
- X "SIGRT2", /* 37 */
- X "SIGRT3", /* 38 */
- X "SIGRT4", /* 39 */
- X "SIGRT5", /* 40 */
- X "SIGRT6", /* 41 */
- X "SIGRT7", /* 42 */
- X "SIGRT8", /* 43 */
- X "SIG44", /* 44 */
- X#endif /* SVR4 */
- X};
- Xint nsignals = sizeof signalent / sizeof signalent[0];
- X
- X#ifdef SUNOS4
- X
- Xstatic struct xlat sigvec_flags[] = {
- X { SV_ONSTACK, "SV_ONSTACK" },
- X { SV_INTERRUPT, "SV_INTERRUPT" },
- X { SV_RESETHAND, "SV_RESETHAND" },
- X { SA_NOCLDSTOP, "SA_NOCLDSTOP" },
- X { 0, NULL },
- X};
- X
- X#endif /* SUNOS4 */
- X
- X#ifdef HAVE_SIGACTION
- X
- Xstatic struct xlat sigact_flags[] = {
- X#ifdef SA_STACK
- X { SA_STACK, "SA_STACK" },
- X#endif
- X#ifdef SA_RESTART
- X { SA_RESTART, "SA_RESTART" },
- X#endif
- X#ifdef SA_INTERRUPT
- X { SA_INTERRUPT, "SA_INTERRUPT" },
- X#endif
- X#ifdef SA_NOMASK
- X { SA_NOMASK, "SA_NOMASK" },
- X#endif
- X#ifdef SA_ONESHOT
- X { SA_ONESHOT, "SA_ONESHOT" },
- X#endif
- X#ifdef SA_SIGINFO
- X { SA_SIGINFO, "SA_SIGINFO" },
- X#endif
- X#ifdef SA_RESETHAND
- X { SA_RESETHAND, "SA_RESETHAND" },
- X#endif
- X#ifdef SA_ONSTACK
- X { SA_ONSTACK, "SA_ONSTACK" },
- X#endif
- X#ifdef SA_NODEFER
- X { SA_NODEFER, "SA_NODEFER" },
- X#endif
- X#ifdef SA_NOCLDSTOP
- X { SA_NOCLDSTOP, "SA_NOCLDSTOP" },
- X#endif
- X#ifdef SA_NOCLDWAIT
- X { SA_NOCLDWAIT, "SA_NOCLDWAIT" },
- X#endif
- X { 0, NULL },
- X};
- X
- Xstatic struct xlat sigprocmaskcmds[] = {
- X { SIG_BLOCK, "SIG_BLOCK" },
- X { SIG_UNBLOCK, "SIG_UNBLOCK" },
- X { SIG_SETMASK, "SIG_SETMASK" },
- X { 0, NULL },
- X};
- X
- X#endif /* HAVE_SIGACTION */
- X
- X#ifdef LINUX
- X
- Xstruct sigcontext_struct {
- X unsigned short gs, __gsh;
- X unsigned short fs, __fsh;
- X unsigned short es, __esh;
- X unsigned short ds, __dsh;
- X unsigned long edi;
- X unsigned long esi;
- X unsigned long ebp;
- X unsigned long esp;
- X unsigned long ebx;
- X unsigned long edx;
- X unsigned long ecx;
- X unsigned long eax;
- X unsigned long trapno;
- X unsigned long err;
- X unsigned long eip;
- X unsigned short cs, __csh;
- X unsigned long eflags;
- X unsigned long esp_at_signal;
- X unsigned short ss, __ssh;
- X unsigned long i387;
- X unsigned long oldmask;
- X unsigned long cr2;
- X};
- X
- X#endif /* LINUX */
- X
- Xstatic char *
- Xsprintsigmask(s, mask)
- Xchar *s;
- Xsigset_t mask;
- X{
- X int i, nsigs;
- X char *format;
- X static char outstr[256];
- X
- X strcpy(outstr, s);
- X s = outstr + strlen(outstr);
- X nsigs = 0;
- X for (i = 1; i <= NSIG; i++) {
- X if (sigismember(&mask, i) == 1)
- X nsigs++;
- X }
- X if (nsigs >= NSIG * 2 / 3) {
- X *s++ = '~';
- X for (i = 1; i <= NSIG; i++) {
- X switch (sigismember(&mask, i)) {
- X case 1:
- X sigdelset(&mask, i);
- X break;
- X case 0:
- X sigaddset(&mask, i);
- X break;
- X }
- X }
- X }
- X format = "%s";
- X *s++ = '[';
- X for (i = 1; i <= NSIG; i++) {
- X if (sigismember(&mask, i) == 1) {
- X sprintf(s, format, signalent[i] + 3); s += strlen(s);
- X format = " %s";
- X }
- X }
- X *s++ = ']';
- X *s = '\0';
- X return outstr;
- X}
- X
- Xstatic void
- Xprintsigmask(mask)
- Xsigset_t mask;
- X{
- X tprintf("%s", sprintsigmask("", mask));
- X}
- X
- Xvoid
- Xprintsignal(nr)
- Xint nr;
- X{
- X if (nr > 0 && nr < nsignals)
- X tprintf("%s", signalent[nr]);
- X else
- X tprintf("%d", nr);
- X}
- X
- X/*
- X * Check process TCP for the disposition of signal SIG.
- X * Return 1 if the process would somehow manage to survive signal SIG,
- X * else return 0. This routine will never be called with SIGKILL.
- X */
- Xint
- Xsigishandled(tcp, sig)
- Xstruct tcb *tcp;
- Xint sig;
- X{
- X#ifdef LINUX
- X int sfd;
- X char sname[32];
- X char buf[1024];
- X char *s;
- X int i;
- X int signalled, blocked, ignored, caught;
- X
- X /* This is incredibly costly but it's worth it. */
- X sprintf(sname, "/proc/%d/stat", tcp->pid);
- X if ((sfd = open(sname, O_RDONLY)) == -1) {
- X perror(sname);
- X return 1;
- X }
- X i = read(sfd, buf, 1024);
- X buf[i] = '\0';
- X close(sfd);
- X /*
- X * Skip the extraneous fields. This loses if the
- X * command name has any spaces in it. So be it.
- X */
- X for (i = 0, s = buf; i < 30; i++) {
- X while (*++s != ' ') {
- X if (!*s)
- X break;
- X }
- X }
- X if (sscanf(s, "%d%d%d%d",
- X &signalled, &blocked, &ignored, &caught) != 4) {
- X fprintf(stderr, "/proc/pid/stat format error\n");
- X return 1;
- X }
- X#ifdef DEBUG
- X fprintf(stderr, "sigs: %08x %08x %08x %08x\n",
- X signalled, blocked, ignored, caught);
- X#endif
- X if ((ignored & sigmask(sig)) || (caught & sigmask(sig)))
- X return 1;
- X#endif /* LINUX */
- X
- X#ifdef SUNOS4
- X void (*u_signal)();
- X
- X if (upeek(tcp->pid, uoff(u_signal[0]) + sig*sizeof(u_signal),
- X (int *) &u_signal) < 0) {
- X return 0;
- X }
- X if (u_signal != SIG_DFL)
- X return 1;
- X#endif /* SUNOS4 */
- X
- X#ifdef SVR4
- X /*
- X * Since procfs doesn't interfere with wait I think it is safe
- X * to punt on this question. If not, the information is there.
- X */
- X return 1;
- X#endif /* SVR4 */
- X
- X switch (sig) {
- X case SIGCONT:
- X case SIGSTOP:
- X case SIGTSTP:
- X case SIGTTIN:
- X case SIGTTOU:
- X case SIGCHLD:
- X case SIGIO:
- X#if defined(SIGURG) && SIGURG != SIGIO
- X case SIGURG:
- X#endif
- X case SIGWINCH:
- X /* Gloria Gaynor says ... */
- X return 1;
- X default:
- X break;
- X }
- X return 0;
- X}
- X
- X#ifdef SUNOS4
- X
- Xint
- Xsys_sigvec(tcp)
- Xstruct tcb *tcp;
- X{
- X struct sigvec sv;
- X int addr;
- X
- X if (entering(tcp)) {
- X printsignal(tcp->u_arg[0]);
- X tprintf(", ");
- X addr = tcp->u_arg[1];
- X } else {
- X addr = tcp->u_arg[2];
- X }
- X if (addr == 0)
- X tprintf("NULL");
- X else if (!verbose(tcp))
- X tprintf("%#x", addr);
- X else if (umove(tcp, addr, &sv) < 0)
- X tprintf("{...}");
- X else {
- X switch ((int) sv.sv_handler) {
- X case (int) SIG_ERR:
- X tprintf("{SIG_ERR}");
- X break;
- X case (int) SIG_DFL:
- X tprintf("{SIG_DFL}");
- X break;
- X case (int) SIG_IGN:
- X if (tcp->u_arg[0] == SIGTRAP) {
- X tcp->flags |= TCB_SIGTRAPPED;
- X kill(tcp->pid, SIGSTOP);
- X }
- X tprintf("{SIG_IGN}");
- X break;
- X case (int) SIG_HOLD:
- X if (tcp->u_arg[0] == SIGTRAP) {
- X tcp->flags |= TCB_SIGTRAPPED;
- X kill(tcp->pid, SIGSTOP);
- X }
- X tprintf("SIG_HOLD");
- X break;
- X default:
- X if (tcp->u_arg[0] == SIGTRAP) {
- X tcp->flags |= TCB_SIGTRAPPED;
- X kill(tcp->pid, SIGSTOP);
- X }
- X tprintf("{%#lx, ", (unsigned long) sv.sv_handler);
- X printsigmask(sv.sv_mask);
- X tprintf(", ");
- X if (!printflags(sigvec_flags, sv.sv_flags))
- X tprintf("0");
- X tprintf("}");
- X }
- X }
- X if (entering(tcp))
- X tprintf(", ");
- X return 0;
- X}
- X
- Xint
- Xsys_sigblock(tcp)
- Xstruct tcb *tcp;
- X{
- X return sys_sigsetmask(tcp);
- X}
- X
- Xint
- Xsys_sigpause(tcp)
- Xstruct tcb *tcp;
- X{
- X if (entering(tcp))
- X printsigmask(tcp->u_arg[0]);
- X return 0;
- X}
- X
- Xint
- Xsys_sigstack(tcp)
- Xstruct tcb *tcp;
- X{
- X struct sigstack ss;
- X int addr;
- X
- X if (entering(tcp))
- X addr = tcp->u_arg[0];
- X else
- X addr = tcp->u_arg[1];
- X if (addr == 0)
- X tprintf("NULL");
- X else if (umove(tcp, addr, &ss) < 0)
- X tprintf("%#x", addr);
- X else {
- X tprintf("{ss_sp %#lx ", (unsigned long) ss.ss_sp);
- X tprintf("ss_onstack %s}", ss.ss_onstack ? "YES" : "NO");
- X }
- X if (entering(tcp))
- X tprintf(", ");
- X return 0;
- X}
- X
- Xint
- Xsys_sigcleanup(tcp)
- Xstruct tcb *tcp;
- X{
- X return 0;
- X}
- X
- X#endif /* SUNOS4 */
- X
- X#ifndef SVR4
- X
- Xint
- Xsys_sigsetmask(tcp)
- Xstruct tcb *tcp;
- X{
- X if (entering(tcp)) {
- X printsigmask(tcp->u_arg[0]);
- X if ((tcp->u_arg[0] & sigmask(SIGTRAP))) {
- X /* Mark attempt to block SIGTRAP */
- X tcp->flags |= TCB_SIGTRAPPED;
- X /* Send unblockable signal */
- X kill(tcp->pid, SIGSTOP);
- X }
- X }
- X else if (!syserror(tcp)) {
- X tcp->auxstr = sprintsigmask("old mask ", tcp->u_rval);
- X return RVAL_HEX | RVAL_STR;
- X }
- X return 0;
- X}
- X
- X#endif /* !SVR4 */
- X
- X#ifdef HAVE_SIGACTION
- X
- Xint
- Xsys_sigaction(tcp)
- Xstruct tcb *tcp;
- X{
- X struct sigaction sa;
- X int addr;
- X
- X if (entering(tcp)) {
- X printsignal(tcp->u_arg[0]);
- X tprintf(", ");
- X addr = tcp->u_arg[1];
- X } else
- X addr = tcp->u_arg[2];
- X if (addr == 0)
- X tprintf("NULL");
- X else if (!verbose(tcp))
- X tprintf("%#x", addr);
- X else if (umove(tcp, addr, &sa) < 0)
- X tprintf("{...}");
- X else {
- X switch ((int) sa.sa_handler) {
- X case (int) SIG_ERR:
- X tprintf("{SIG_ERR}");
- X break;
- X case (int) SIG_DFL:
- X tprintf("{SIG_DFL}");
- X break;
- X case (int) SIG_IGN:
- X#ifndef SVR4
- X if (tcp->u_arg[0] == SIGTRAP) {
- X tcp->flags |= TCB_SIGTRAPPED;
- X kill(tcp->pid, SIGSTOP);
- X }
- X#endif /* !SVR4 */
- X tprintf("{SIG_IGN}");
- X break;
- X default:
- X#ifndef SVR4
- X if (tcp->u_arg[0] == SIGTRAP) {
- X tcp->flags |= TCB_SIGTRAPPED;
- X kill(tcp->pid, SIGSTOP);
- X }
- X#endif /* !SVR4 */
- X tprintf("{%#x, ", (int) sa.sa_handler);
- X printsigmask(sa.sa_mask);
- X tprintf(", ");
- X if (!printflags(sigact_flags, sa.sa_flags))
- X tprintf("0");
- X tprintf("}");
- X }
- X }
- X if (entering(tcp))
- X tprintf(", ");
- X return 0;
- X}
- X
- Xint
- Xsys_signal(tcp)
- Xstruct tcb *tcp;
- X{
- X if (entering(tcp)) {
- X printsignal(tcp->u_arg[0]);
- X switch (tcp->u_arg[1]) {
- X case (int) SIG_ERR:
- X tprintf("SIG_ERR");
- X break;
- X case (int) SIG_DFL:
- X tprintf("SIG_DFL");
- X break;
- X case (int) SIG_IGN:
- X#ifndef SVR4
- X if (tcp->u_arg[0] == SIGTRAP) {
- X tcp->flags |= TCB_SIGTRAPPED;
- X kill(tcp->pid, SIGSTOP);
- X }
- X#endif /* !SVR4 */
- X tprintf("SIG_IGN");
- X break;
- X default:
- X#ifndef SVR4
- X if (tcp->u_arg[0] == SIGTRAP) {
- X tcp->flags |= TCB_SIGTRAPPED;
- X kill(tcp->pid, SIGSTOP);
- X }
- X#endif /* !SVR4 */
- X tprintf("%#x", tcp->u_arg[1]);
- X }
- X }
- X return 0;
- X}
- X
- X#endif /* HAVE_SIGACTION */
- X
- X#ifdef LINUX
- X
- Xint
- Xsys_sigreturn(tcp)
- Xstruct tcb *tcp;
- X{
- X int esp;
- X struct sigcontext_struct sc;
- X
- X if (entering(tcp)) {
- X tcp->u_arg[0] = 0;
- X if (upeek(tcp->pid, 4*UESP, &esp) < 0)
- X return 0;
- X if (umove(tcp, esp, &sc) < 0)
- X return 0;
- X tcp->u_arg[0] = 1;
- X tcp->u_arg[1] = sc.oldmask;
- X }
- X else {
- X tcp->u_rval = tcp->u_error = 0;
- X if (tcp->u_arg[0] == 0)
- X return 0;
- X tcp->auxstr = sprintsigmask("mask now ", tcp->u_arg[1]);
- X return RVAL_NONE | RVAL_STR;
- X }
- X return 0;
- X}
- X
- Xint
- Xsys_siggetmask(tcp)
- Xstruct tcb *tcp;
- X{
- X if (exiting(tcp)) {
- X tcp->auxstr = sprintsigmask("mask ", tcp->u_rval);
- X }
- X return RVAL_HEX | RVAL_STR;
- X}
- X
- Xint
- Xsys_sigsuspend(tcp)
- Xstruct tcb *tcp;
- X{
- X if (entering(tcp)) {
- X#if 0
- X /* first two are not really arguments, but print them anyway */
- X /* nevermind, they are an anachronism now, too bad... */
- X tprintf("%d, %#x, ", tcp->u_arg[0], tcp->u_arg[1]);
- X#endif
- X printsigmask(tcp->u_arg[2]);
- X }
- X return 0;
- X}
- X
- X#endif /* LINUX */
- X
- X#ifdef SVR4
- X
- Xint
- Xsys_sigsuspend(tcp)
- Xstruct tcb *tcp;
- X{
- X sigset_t sigset;
- X
- X if (entering(tcp)) {
- X if (umove(tcp, tcp->u_arg[0], &sigset) < 0)
- X tprintf("[?]");
- X else
- X printsigmask(sigset);
- X }
- X return 0;
- X}
- Xstatic struct xlat ucontext_flags[] = {
- X { UC_SIGMASK, "UC_SIGMASK" },
- X { UC_STACK, "UC_STACK" },
- X { UC_CPU, "UC_CPU" },
- X#ifdef UC_FPU
- X { UC_FPU, "UC_FPU" },
- X#endif
- X#ifdef UC_INTR
- X { UC_INTR, "UC_INTR" },
- X#endif
- X { 0, NULL },
- X};
- X
- Xstatic struct xlat sigaltstack_flags[] = {
- X { SS_ONSTACK, "SS_ONSTACK" },
- X { SS_DISABLE, "SS_DISABLE" },
- X { 0, NULL },
- X};
- X
- Xstatic void
- Xprintcontext(tcp, ucp)
- Xstruct tcb *tcp;
- Xucontext_t *ucp;
- X{
- X tprintf("{");
- X if (!abbrev(tcp)) {
- X tprintf("uc_flags=");
- X if (!printflags(ucontext_flags, ucp->uc_flags))
- X tprintf("0");
- X tprintf(", uc_link=%#lx, ", (unsigned long) ucp->uc_link);
- X }
- X tprintf("uc_sigmask=");
- X printsigmask(ucp->uc_sigmask);
- X if (!abbrev(tcp)) {
- X tprintf(", uc_stack={ss_sp=%#lx, ss_size=%d, ss_flags=",
- X (unsigned long) ucp->uc_stack.ss_sp,
- X ucp->uc_stack.ss_size);
- X if (!printflags(sigaltstack_flags, ucp->uc_stack.ss_flags))
- X tprintf("0");
- X tprintf("}");
- X }
- X tprintf(", ...}");
- X}
- X
- Xint
- Xsys_getcontext(tcp)
- Xstruct tcb *tcp;
- X{
- X ucontext_t uc;
- X
- X if (entering(tcp)) {
- X if (!tcp->u_arg[0])
- X tprintf("NULL");
- X else if (umove(tcp, tcp->u_arg[0], &uc) < 0)
- X tprintf("{...}");
- X else
- X printcontext(tcp, &uc);
- X }
- X return 0;
- X}
- X
- Xint
- Xsys_setcontext(tcp)
- Xstruct tcb *tcp;
- X{
- X ucontext_t uc;
- X
- X if (entering(tcp)) {
- X if (!tcp->u_arg[0])
- X tprintf("NULL");
- X else if (umove(tcp, tcp->u_arg[0], &uc) < 0)
- X tprintf("{...}");
- X else
- X printcontext(tcp, &uc);
- X }
- X else {
- X tcp->u_rval = tcp->u_error = 0;
- X if (tcp->u_arg[0] == 0)
- X return 0;
- X return RVAL_NONE;
- X }
- X return 0;
- X}
- X
- X#endif /* SVR4 */
- X
- X#ifdef HAVE_SIGACTION
- X
- Xint
- Xsys_sigprocmask(tcp)
- Xstruct tcb *tcp;
- X{
- X sigset_t sigset;
- X
- X if (entering(tcp)) {
- X#ifdef SVR4
- X if (tcp->u_arg[0] == 0)
- X tprintf("0");
- X else
- X#endif /* SVR4 */
- X printxval(sigprocmaskcmds, tcp->u_arg[0], "SIG_???");
- X tprintf(", ");
- X if (!tcp->u_arg[1])
- X tprintf("NULL, ");
- X else if (umove(tcp, tcp->u_arg[1], &sigset) < 0)
- X tprintf("%#x, ", tcp->u_arg[1]);
- X else {
- X printsigmask(sigset);
- X tprintf(", ");
- X }
- X }
- X else {
- X if (!tcp->u_arg[2])
- X tprintf("NULL");
- X else if (syserror(tcp))
- X tprintf("%#x", tcp->u_arg[2]);
- X else if (umove(tcp, tcp->u_arg[2], &sigset) < 0)
- X tprintf("[?]");
- X else
- X printsigmask(sigset);
- X }
- X return 0;
- X}
- X
- X#endif /* HAVE_SIGACTION */
- X
- Xint
- Xsys_kill(tcp)
- Xstruct tcb *tcp;
- X{
- X if (entering(tcp)) {
- X int sig = tcp->u_arg[1];
- X
- X if (sig >= 0 && sig < NSIG)
- X tprintf("%d, %s", tcp->u_arg[0], signalent[sig]);
- X else
- X tprintf("%d, %d", tcp->u_arg[0], sig);
- X }
- X return 0;
- X}
- X
- Xint
- Xsys_killpg(tcp)
- Xstruct tcb *tcp;
- X{
- X return sys_kill(tcp);
- X}
- X
- Xint
- Xsys_sigpending(tcp)
- Xstruct tcb *tcp;
- X{
- X sigset_t sigset;
- X
- X if (exiting(tcp)) {
- X if (syserror(tcp))
- X tprintf("%#x", tcp->u_arg[0]);
- X else if (umove(tcp, tcp->u_arg[0], &sigset) < 0)
- X tprintf("[?]");
- X else
- X printsigmask(sigset);
- X }
- X return 0;
- X}
- END_OF_FILE
- if test 16926 -ne `wc -c <'strace-3.0/signal.c'`; then
- echo shar: \"'strace-3.0/signal.c'\" unpacked with wrong size!
- fi
- # end of 'strace-3.0/signal.c'
- fi
- if test -f 'strace-3.0/sunos4/ioctlent.sh' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'strace-3.0/sunos4/ioctlent.sh'\"
- else
- echo shar: Extracting \"'strace-3.0/sunos4/ioctlent.sh'\" \(3798 characters\)
- sed "s/^X//" >'strace-3.0/sunos4/ioctlent.sh' <<'END_OF_FILE'
- X#!/bin/sh
- X# Copyright (c) 1993, 1994 Rick Sladkey <jrs@world.std.com>
- X# All rights reserved.
- X#
- X# Redistribution and use in source and binary forms, with or without
- X# modification, are permitted provided that the following conditions
- X# are met:
- X# 1. Redistributions of source code must retain the above copyright
- X# notice, this list of conditions and the following disclaimer.
- X# 2. Redistributions in binary form must reproduce the above copyright
- X# notice, this list of conditions and the following disclaimer in the
- X# documentation and/or other materials provided with the distribution.
- X# 3. All advertising materials mentioning features or use of this software
- X# must display the following acknowledgement:
- X# This product includes software developed by Paul Kranenburg,
- X# Branko Lankester and Rick Sladkey.
- X# 4. The name of the author may not be used to endorse or promote products
- X# derived from this software without specific prior written permission.
- X#
- X# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
- X# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- X# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- X# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
- X# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- X# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- X# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- X# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- X# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- X# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- X#
- X# ioctlent.sh,v 2.2 1994/03/12 23:12:20 jrs Exp
- X
- Xif [ $# -ne 1 ]
- Xthen
- X echo "usage: $0 include-directory" >&2
- X exit 1
- Xfi
- X
- Xbad_defines='WINGETVALIDVALUES'
- X(
- X cd $1
- X find . -name '*.h' -print | sed 's/^\.\///' |
- X xargs egrep '^[ ]*#[ ]*define[ ][ ]*[A-Z_][A-Za-z0-9_]*[ ][ ]*_IO[RW]?\(' /dev/null |
- X sed 's/\(.*\):#[ ]*define[ ]*\([A-Z_][A-Za-z0-9_]*\)[ ]*\(_IO[^)]*)\)[ ]*\(.*\)/ { "\1", "\2", \2 }, \4/' |
- X sort -u
- X) >ioctlent.tmp
- Xecho "\
- X#include <sys/types.h>
- X#define KERNEL
- X#include <stdio.h>
- X#include <strings.h>
- X#include <fcntl.h>
- X#include <sys/types.h>
- X#include <sys/time.h>
- X#include <sys/ioctl.h>
- X#include <sys/socket.h>
- X#include <sys/des.h>
- X#include <sys/mtio.h>
- X#include <sys/stropts.h>
- X#include <sys/stream.h>
- X#include <sys/vcmd.h>
- X
- X#include <net/if.h>
- X#include <net/if_arp.h>
- X#include <net/route.h>
- X#include <net/nit.h>
- X#include <net/nit_if.h>
- X#include <net/nit_pf.h>
- X#include <net/nit_buf.h>
- X#include <net/packetfilt.h>
- X#include <netinet/in.h>
- X#include <netinet/in_systm.h>
- X#include <netinet/in_var.h>
- X#include <netinet/ip.h>
- X#include <netinet/ip_icmp.h>
- X#include <netinet/if_ether.h>
- X
- X#include <scsi/impl/uscsi.h>
- X#include <scsi/scsi.h>
- X#include <scsi/targets/srdef.h>
- X#include <scsi/targets/stdef.h>
- X#if 0
- X#include <scsi/targets/sddef.h>
- X#endif
- X
- X#include <sun/audioio.h>
- X#include <sun/fbio.h>
- X#include <sun/gpio.h>
- X#include <sun/ndio.h>
- X#include <sun/tvio.h>
- X#include <sun/mem.h>
- X#include <sun/sqz.h>
- X#include <sun/vddrv.h>
- X#include <sun/isdnio.h>
- X
- X#include <machine/reg.h>
- X
- X#include <sundev/kbio.h>
- X#include <sundev/msio.h>
- X#include <sundev/fdreg.h>
- X#include <sundev/ppreg.h>
- X#include <sundev/openpromio.h>
- X#include <sundev/lightpenreg.h>
- X
- X#include <sunwindow/window_hs.h>
- X#include <sunwindow/win_enum.h>
- X#include <sunwindow/win_ioctl.h>
- X
- X#include <sbusdev/audiovar.h>
- X#define AMD_CHIP
- X#include <sbusdev/audio_79C30.h>
- X#include <sbusdev/bpp_io.h>
- X#include <sbusdev/gtreg.h>
- X
- X#include <sys/termio.h>
- X"
- Xecho "struct ioctlent ioctlent[] = {"
- Xegrep -v "$bad_defines" ioctlent.tmp | awk '
- X{
- X print "#ifdef " $4
- X print
- X print "#endif"
- X}
- X'
- Xecho "};"
- Xrm -f ioctlent.tmp
- END_OF_FILE
- if test 3798 -ne `wc -c <'strace-3.0/sunos4/ioctlent.sh'`; then
- echo shar: \"'strace-3.0/sunos4/ioctlent.sh'\" unpacked with wrong size!
- fi
- # end of 'strace-3.0/sunos4/ioctlent.sh'
- fi
- if test -f 'strace-3.0/svr4/ioctlent.h' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'strace-3.0/svr4/ioctlent.h'\"
- else
- echo shar: Extracting \"'strace-3.0/svr4/ioctlent.h'\" \(16195 characters\)
- sed "s/^X//" >'strace-3.0/svr4/ioctlent.h' <<'END_OF_FILE'
- X{"sys/dkio.h", "DKIOCGGEOM", 0x401},
- X{"sys/dkio.h", "DKIOCSGEOM", 0x402},
- X{"sys/dkio.h", "DKIOCINFO", 0x403},
- X{"sys/dkio.h", "DKIOCSAPART", 0x404},
- X{"sys/dkio.h", "DKIOCGAPART", 0x405},
- X{"sys/dkio.h", "DKIOCEJECT", 0x406},
- X{"sys/dkio.h", "DKIOCLOCK", 0x407},
- X{"sys/dkio.h", "DKIOCUNLOCK", 0x408},
- X{"sys/dkio.h", "DKIOCGVTOC", 0x40b},
- X{"sys/dkio.h", "DKIOCSVTOC", 0x40c},
- X{"sys/dkio.h", "DKIOCSTATE", 0x40d},
- X{"sys/fdio.h", "FDIOGCHAR", 0x433},
- X{"sys/fdio.h", "FDIOSCHAR", 0x434},
- X{"sys/fdio.h", "FDEJECT", 0x435},
- X{"sys/fdio.h", "FDGETCHANGE", 0x436},
- X{"sys/fdio.h", "FDGETDRIVECHAR", 0x437},
- X{"sys/fdio.h", "FDSETDRIVECHAR", 0x438},
- X{"sys/fdio.h", "FDGETSEARCH", 0x439},
- X{"sys/fdio.h", "FDSETSEARCH", 0x43a},
- X{"sys/fdio.h", "FDIOCMD", 0x43b},
- X{"sys/fdio.h", "FDRAW", 0x446},
- X{"sys/hdio.h", "HDKIOCSTYPE", 0x465},
- X{"sys/hdio.h", "HDKIOCGTYPE", 0x466},
- X{"sys/hdio.h", "HDKIOCSBAD", 0x467},
- X{"sys/hdio.h", "HDKIOCGBAD", 0x468},
- X{"sys/hdio.h", "HDKIOCSCMD", 0x469},
- X{"sys/hdio.h", "HDKIOCGDIAG", 0x46a},
- X{"sys/cdio.h", "CDROMPAUSE", 0x497},
- X{"sys/cdio.h", "CDROMRESUME", 0x498},
- X{"sys/cdio.h", "CDROMPLAYMSF", 0x499},
- X{"sys/cdio.h", "CDROMPLAYTRKIND", 0x49a},
- X{"sys/cdio.h", "CDROMREADTOCHDR", 0x49b},
- X{"sys/cdio.h", "CDROMREADTOCENTRY", 0x49c},
- X{"sys/cdio.h", "CDROMSTOP", 0x49d},
- X{"sys/cdio.h", "CDROMSTART", 0x49e},
- X{"sys/cdio.h", "CDROMEJECT", 0x49f},
- X{"sys/cdio.h", "CDROMVOLCTRL", 0x4a0},
- X{"sys/cdio.h", "CDROMSUBCHNL", 0x4a1},
- X{"sys/cdio.h", "CDROMREADMODE2", 0x4a2},
- X{"sys/cdio.h", "CDROMREADMODE1", 0x4a3},
- X{"sys/cdio.h", "CDROMREADOFFSET", 0x4a4},
- X{"sys/scsi/impl/uscsi.h", "USCSICMD", 0x4c9},
- X{"sys/bdio.h", "BDIOBUTLITE", 0x4201},
- X{"sys/bufmod.h", "SBIOCSTIME", 0x4201},
- X{"sys/bufmod.h", "SBIOCGTIME", 0x4202},
- X{"sys/bufmod.h", "SBIOCCTIME", 0x4203},
- X{"sys/bufmod.h", "SBIOCSCHUNK", 0x4204},
- X{"sys/bufmod.h", "SBIOCGCHUNK", 0x4205},
- X{"sys/bufmod.h", "SBIOCSSNAP", 0x4206},
- X{"sys/bufmod.h", "SBIOCGSNAP", 0x4207},
- X{"sys/bufmod.h", "SBIOCSFLAGS", 0x4208},
- X{"sys/bufmod.h", "SBIOCGFLAGS", 0x4209},
- X{"sys/termios.h", "LDOPEN", 0x4400},
- X{"sys/termios.h", "LDCLOSE", 0x4401},
- X{"sys/dlpi.h", "DLIOCRAW", 0x4401},
- X{"sys/sad.h", "SAD_SAP", 0x4401},
- X{"sys/sad.h", "SAD_GAP", 0x4402},
- X{"sys/termios.h", "LDCHG", 0x4402},
- X{"sys/sad.h", "SAD_VML", 0x4403},
- X{"sys/termios.h", "LDGETT", 0x4408},
- X{"sys/termios.h", "LDSETT", 0x4409},
- X{"sys/termios.h", "LDSMAP", 0x440a},
- X{"sys/dlpi.h", "DL_IOC_HDR_INFO", 0x440a},
- X{"sys/termios.h", "LDGMAP", 0x440b},
- X{"sys/termios.h", "LDNMAP", 0x440c},
- X{"sys/fbio.h", "FBIOGTYPE", 0x4600},
- X{"sys/fbio.h", "FBIOGINFO", 0x4602},
- X{"sys/fbio.h", "FBIOPUTCMAP", 0x4603},
- X{"sys/fbio.h", "FBIOGETCMAP", 0x4604},
- X{"sys/fbio.h", "FBIOSATTR", 0x4605},
- X{"sys/fbio.h", "FBIOGATTR", 0x4606},
- X{"sys/fbio.h", "FBIOSVIDEO", 0x4607},
- X{"sys/fbio.h", "FBIOGVIDEO", 0x4608},
- X{"sys/fbio.h", "FBIOVERTICAL", 0x4609},
- X{"sys/fbio.h", "GRABPAGEALLOC", 0x460a},
- X{"sys/fbio.h", "GRABPAGEFREE", 0x460b},
- X{"sys/fbio.h", "GRABATTACH", 0x460c},
- X{"sys/fbio.h", "FBIOGPLNGRP", 0x460d},
- X{"sys/fbio.h", "FBIOGCMSIZE", 0x460e},
- X{"sys/fbio.h", "FBIOSCMSIZE", 0x460f},
- X{"sys/fbio.h", "FBIOSCMS", 0x4610},
- X{"sys/fbio.h", "FBIOAVAILPLNGRP", 0x4611},
- X{"sys/fbio.h", "FBIODBLGINFO", 0x4612},
- X{"sys/fbio.h", "FBIODBLSINFO", 0x4613},
- X{"sys/fbio.h", "FBIOSWINFD", 0x4614},
- X{"sys/fbio.h", "FBIOSAVWINFD", 0x4615},
- X{"sys/fbio.h", "FBIORESWINFD", 0x4616},
- X{"sys/fbio.h", "FBIOSRWINFD", 0x4617},
- X{"sys/visual_io.h", "VIS_SETCURSOR", 0x4618},
- X{"sys/fbio.h", "FBIOSCURSOR", 0x4618},
- X{"sys/visual_io.h", "VIS_GETCURSOR", 0x4619},
- X{"sys/fbio.h", "FBIOGCURSOR", 0x4619},
- X{"sys/visual_io.h", "VIS_MOVECURSOR", 0x461a},
- X{"sys/fbio.h", "FBIOSCURPOS", 0x461a},
- X{"sys/visual_io.h", "VIS_GETCURSORPOS", 0x461b},
- X{"sys/fbio.h", "FBIOGCURPOS", 0x461b},
- X{"sys/fbio.h", "FBIOGCURMAX", 0x461c},
- X{"sys/fbio.h", "GRABLOCKINFO", 0x461d},
- X{"sys/fbio.h", "FBIO_WID_ALLOC", 0x461e},
- X{"sys/fbio.h", "FBIO_WID_FREE", 0x461f},
- X{"sys/fbio.h", "FBIO_WID_PUT", 0x4620},
- X{"sys/fbio.h", "FBIO_WID_GET", 0x4621},
- X{"sys/fbio.h", "FBIO_DEVID", 0x4622},
- X{"sys/fbio.h", "FBIO_U_RST", 0x4623},
- X{"sys/fbio.h", "FBIO_FULLSCREEN_ELIMINATION_GROUPS", 0x4624},
- X{"sys/fbio.h", "FBIO_WID_DBL_SET", 0x4625},
- X{"sys/fbio.h", "FBIOVRTOFFSET", 0x4626},
- X{"sys/fbio.h", "FBIOGXINFO", 0x4627},
- X{"sys/fbio.h", "FBIOMONINFO", 0x4628},
- X{"sys/fbio.h", "FBIOPUTCMAPI", 0x4629},
- X{"sys/fbio.h", "FBIOGETCMAPI", 0x462a},
- X{"sys/fbio.h", "FBIO_ASSIGNWID", 0x462b},
- X{"sys/fbio.h", "FBIO_STEREO", 0x462c},
- X{"sys/gpio.h", "GP1IO_PUT_INFO", 0x4700},
- X{"sys/gpio.h", "GP1IO_GET_STATIC_BLOCK", 0x4701},
- X{"sys/gpio.h", "GP1IO_FREE_STATIC_BLOCK", 0x4702},
- X{"sys/gpio.h", "GP1IO_GET_GBUFFER_STATE", 0x4703},
- X{"sys/gpio.h", "GP1IO_CHK_GP", 0x4704},
- X{"sys/gpio.h", "GP1IO_GET_RESTART_COUNT", 0x4705},
- X{"sys/gpio.h", "GP1IO_REDIRECT_DEVFB", 0x4706},
- X{"sys/gpio.h", "GP1IO_GET_REQDEV", 0x4707},
- X{"sys/gpio.h", "GP1IO_GET_TRUMINORDEV", 0x4708},
- X{"sys/gpio.h", "GP1IO_CHK_FOR_GBUFFER", 0x4709},
- X{"sys/gpio.h", "GP1IO_SET_USING_GBUFFER", 0x470a},
- X{"sys/gpio.h", "GP1IO_INFO_STATIC_BLOCK", 0x470b},
- X{"sys/sockmod.h", "SI_GETUDATA", 0x4965},
- X{"sys/sockmod.h", "SI_SHUTDOWN", 0x4966},
- X{"sys/sockmod.h", "SI_LISTEN", 0x4967},
- X{"sys/sockmod.h", "SI_SETMYNAME", 0x4968},
- X{"sys/sockmod.h", "SI_SETPEERNAME", 0x4969},
- X{"sys/sockmod.h", "SI_GETINTRANSIT", 0x496a},
- X{"sys/strlog.h", "I_TRCLOG", 0x4c01},
- X{"sys/strlog.h", "I_ERRLOG", 0x4c02},
- X{"sys/strlog.h", "I_CONSLOG", 0x4c03},
- X{"sys/cg14io.h", "MDI_RESET", 0x4d01},
- X{"sys/cg14io.h", "MDI_GET_CFGINFO", 0x4d02},
- X{"sys/cg14io.h", "MDI_SET_PIXELMODE", 0x4d03},
- X{"sys/cg14io.h", "MDI_SET_COUNTERS", 0x4d04},
- X{"sys/cg14io.h", "MDI_SET_PPR", 0x4d05},
- X{"sys/cg14io.h", "MDI_VRT_CNTL", 0x4d06},
- X{"sys/cg14io.h", "MDI_SET_CLUT", 0x4d07},
- X{"sys/cg14io.h", "MDI_GET_CLUT", 0x4d08},
- X{"sys/cg14io.h", "MDI_SET_XLUT", 0x4d09},
- X{"sys/cg14io.h", "MDI_GET_XLUT", 0x4d0a},
- X{"sys/cg14io.h", "MDI_GAMMA_CORRECT", 0x4d0b},
- X{"sys/cg14io.h", "MDI_SET_GAMMALUT", 0x4d0c},
- X{"sys/cg14io.h", "MDI_GET_GAMMALUT", 0x4d0d},
- X{"sys/cg14io.h", "MDI_SET_DEGAMMALUT", 0x4d0e},
- X{"sys/cg14io.h", "MDI_GET_DEGAMMALUT", 0x4d0f},
- X{"sys/cg14io.h", "MDI_GET_BUFFER_INFO", 0x4d10},
- X{"sys/cg14io.h", "MDI_SET_CURSOR", 0x4d11},
- X{"sys/cg14io.h", "MDI_GET_DIAGINFO", 0x4d12},
- X{"sys/openpromio.h", "OPROMGETBOOTARGS", 0x4f0c},
- X{"sys/pfmod.h", "PFIOCSETF", 0x5001},
- X{"sys/stropts.h", "I_NREAD", 0x5301},
- X{"sys/stropts.h", "I_PUSH", 0x5302},
- X{"sys/stropts.h", "I_POP", 0x5303},
- X{"sys/stropts.h", "I_LOOK", 0x5304},
- X{"sys/stropts.h", "I_FLUSH", 0x5305},
- X{"sys/stropts.h", "I_SRDOPT", 0x5306},
- X{"sys/stropts.h", "I_GRDOPT", 0x5307},
- X{"sys/stropts.h", "I_STR", 0x5308},
- X{"sys/stropts.h", "I_SETSIG", 0x5309},
- X{"sys/stropts.h", "I_GETSIG", 0x530a},
- X{"sys/stropts.h", "I_FIND", 0x530b},
- X{"sys/stropts.h", "I_LINK", 0x530c},
- X{"sys/stropts.h", "I_UNLINK", 0x530d},
- X{"sys/stropts.h", "I_RECVFD", 0x530e},
- X{"sys/stropts.h", "I_PEEK", 0x530f},
- X{"sys/stropts.h", "I_FDINSERT", 0x5310},
- X{"sys/stropts.h", "I_SENDFD", 0x5311},
- X{"sys/stropts.h", "I_SWROPT", 0x5313},
- X{"sys/stropts.h", "I_GWROPT", 0x5314},
- X{"sys/stropts.h", "I_LIST", 0x5315},
- X{"sys/stropts.h", "I_PLINK", 0x5316},
- X{"sys/stropts.h", "I_PUNLINK", 0x5317},
- X{"sys/stropts.h", "I_SETEV", 0x5318},
- X{"sys/stropts.h", "I_GETEV", 0x5319},
- X{"sys/stropts.h", "I_STREV", 0x531a},
- X{"sys/stropts.h", "I_UNSTREV", 0x531b},
- X{"sys/stropts.h", "I_FLUSHBAND", 0x531c},
- X{"sys/stropts.h", "I_CKBAND", 0x531d},
- X{"sys/stropts.h", "I_GETBAND", 0x531e},
- X{"sys/stropts.h", "I_ATMARK", 0x531f},
- X{"sys/stropts.h", "I_SETCLTIME", 0x5320},
- X{"sys/stropts.h", "I_GETCLTIME", 0x5321},
- X{"sys/stropts.h", "I_CANPUT", 0x5322},
- X{"sys/termios.h", "TCGETA", 0x5401},
- X{"sys/termios.h", "TCSETA", 0x5402},
- X{"sys/termios.h", "TCSETAW", 0x5403},
- X{"sys/termios.h", "TCSETAF", 0x5404},
- X{"sys/termios.h", "TCSBRK", 0x5405},
- X{"sys/termios.h", "TCXONC", 0x5406},
- X{"sys/termios.h", "TCFLSH", 0x5407},
- X{"sys/termios.h", "TIOCKBON", 0x5408},
- X{"sys/termios.h", "TIOCKBOF", 0x5409},
- X{"sys/termios.h", "KBENABLED", 0x540a},
- X{"sys/termios.h", "TCGETS", 0x540d},
- X{"sys/termios.h", "TCSETS", 0x540e},
- X{"sys/termios.h", "TCSETSW", 0x540f},
- X{"sys/termios.h", "TCSETSF", 0x5410},
- X{"sys/termio.h", "TCDSET", 0x5420},
- X{"sys/termios.h", "TCDSET", 0x5420},
- X{"sys/termios.h", "RTS_TOG", 0x5421},
- X{"sys/ttold.h", "TIOCSWINSZ", 0x5467},
- X{"sys/termios.h", "TIOCSWINSZ", 0x5467},
- X{"sys/termios.h", "TIOCGWINSZ", 0x5468},
- X{"sys/ttold.h", "TIOCGWINSZ", 0x5468},
- X{"sys/termios.h", "TIOCGSOFTCAR", 0x5469},
- X{"sys/termios.h", "TIOCSSOFTCAR", 0x546a},
- X{"sys/timod.h", "TI_GETINFO", 0x548c},
- X{"sys/timod.h", "TI_OPTMGMT", 0x548d},
- X{"sys/timod.h", "TI_BIND", 0x548e},
- X{"sys/timod.h", "TI_UNBIND", 0x548f},
- X{"sys/timod.h", "TI_GETMYNAME", 0x5490},
- X{"sys/timod.h", "TI_GETPEERNAME", 0x5491},
- X{"sys/timod.h", "TI_SETMYNAME", 0x5492},
- X{"sys/timod.h", "TI_SETPEERNAME", 0x5493},
- X{"sys/termiox.h", "TCGETX", 0x5801},
- X{"sys/termiox.h", "TCSETX", 0x5802},
- X{"sys/termiox.h", "TCSETXW", 0x5803},
- X{"sys/termiox.h", "TCSETXF", 0x5804},
- X{"sys/ioctl.h", "DIOCGETC", 0x6401},
- X{"sys/ioctl.h", "DIOCGETB", 0x6402},
- X{"sys/ioctl.h", "DIOCSETE", 0x6403},
- X{"sys/termios.h", "DIOCGETP", 0x6408},
- X{"sys/termios.h", "DIOCSETP", 0x6409},
- X{"sys/jioctl.h", "JBOOT", 0x6a01},
- X{"sys/jioctl.h", "JTERM", 0x6a02},
- X{"sys/jioctl.h", "JMPX", 0x6a03},
- X{"sys/jioctl.h", "JWINSIZE", 0x6a05},
- X{"sys/jioctl.h", "JZOMBOOT", 0x6a07},
- X{"sys/jioctl.h", "JAGENT", 0x6a09},
- X{"sys/jioctl.h", "JTRUN", 0x6a0a},
- X{"sys/jioctl.h", "JXTPROTO", 0x6a0b},
- X{"sys/kbio.h", "KIOCTRANS", 0x6b00},
- X{"sys/kbio.h", "KIOCSETKEY", 0x6b01},
- X{"sys/kbio.h", "KIOCGETKEY", 0x6b02},
- X{"sys/kbio.h", "KIOCGTRANS", 0x6b05},
- X{"sys/kbio.h", "KIOCTRANSABLE", 0x6b06},
- X{"sys/kbio.h", "KIOCGTRANSABLE", 0x6b07},
- X{"sys/kbio.h", "KIOCCMD", 0x6b08},
- X{"sys/kbio.h", "KIOCTYPE", 0x6b09},
- X{"sys/kbio.h", "KIOCSDIRECT", 0x6b0a},
- X{"sys/kbio.h", "KIOCGDIRECT", 0x6b0b},
- X{"sys/kbio.h", "KIOCSKEY", 0x6b0c},
- X{"sys/kbio.h", "KIOCGKEY", 0x6b0d},
- X{"sys/kbio.h", "KIOCSLED", 0x6b0e},
- X{"sys/kbio.h", "KIOCGLED", 0x6b0f},
- X{"sys/kbio.h", "KIOCSCOMPAT", 0x6b10},
- X{"sys/kbio.h", "KIOCGCOMPAT", 0x6b11},
- X{"sys/kbio.h", "KIOCLAYOUT", 0x6b14},
- X{"sys/ioctl.h", "LIOCGETP", 0x6c01},
- X{"sys/ioctl.h", "LIOCSETP", 0x6c02},
- X{"sys/ioctl.h", "LIOCGETS", 0x6c05},
- X{"sys/ioctl.h", "LIOCSETS", 0x6c06},
- X{"sys/mtio.h", "MTIOCTOP", 0x6d01},
- X{"sys/msio.h", "MSIOGETPARMS", 0x6d01},
- X{"sys/msio.h", "MSIOSETPARMS", 0x6d02},
- X{"sys/mtio.h", "MTIOCGET", 0x6d02},
- X{"sys/mtio.h", "MTIOCGETDRIVETYPE", 0x6d03},
- X{"sys/procfs.h", "PIOCSTATUS", 0x7101},
- X{"sys/procfs.h", "PIOCSTOP", 0x7102},
- X{"sys/procfs.h", "PIOCWSTOP", 0x7103},
- X{"sys/procfs.h", "PIOCRUN", 0x7104},
- X{"sys/procfs.h", "PIOCGTRACE", 0x7105},
- X{"sys/procfs.h", "PIOCSTRACE", 0x7106},
- X{"sys/procfs.h", "PIOCSSIG", 0x7107},
- X{"sys/procfs.h", "PIOCKILL", 0x7108},
- X{"sys/procfs.h", "PIOCUNKILL", 0x7109},
- X{"sys/procfs.h", "PIOCGHOLD", 0x710a},
- X{"sys/procfs.h", "PIOCSHOLD", 0x710b},
- X{"sys/procfs.h", "PIOCMAXSIG", 0x710c},
- X{"sys/procfs.h", "PIOCACTION", 0x710d},
- X{"sys/procfs.h", "PIOCGFAULT", 0x710e},
- X{"sys/procfs.h", "PIOCSFAULT", 0x710f},
- X{"sys/procfs.h", "PIOCCFAULT", 0x7110},
- X{"sys/procfs.h", "PIOCGENTRY", 0x7111},
- X{"sys/procfs.h", "PIOCSENTRY", 0x7112},
- X{"sys/procfs.h", "PIOCGEXIT", 0x7113},
- X{"sys/procfs.h", "PIOCSEXIT", 0x7114},
- X{"sys/procfs.h", "PIOCSFORK", 0x7115},
- X{"sys/procfs.h", "PIOCRFORK", 0x7116},
- X{"sys/procfs.h", "PIOCSRLC", 0x7117},
- X{"sys/procfs.h", "PIOCRRLC", 0x7118},
- X{"sys/procfs.h", "PIOCGREG", 0x7119},
- X{"sys/procfs.h", "PIOCSREG", 0x711a},
- X{"sys/procfs.h", "PIOCGFPREG", 0x711b},
- X{"sys/procfs.h", "PIOCSFPREG", 0x711c},
- X{"sys/procfs.h", "PIOCNICE", 0x711d},
- X{"sys/procfs.h", "PIOCPSINFO", 0x711e},
- X{"sys/procfs.h", "PIOCNMAP", 0x711f},
- X{"sys/procfs.h", "PIOCMAP", 0x7120},
- X{"sys/procfs.h", "PIOCOPENM", 0x7121},
- X{"sys/procfs.h", "PIOCCRED", 0x7122},
- X{"sys/procfs.h", "PIOCGROUPS", 0x7123},
- X{"sys/procfs.h", "PIOCGETPR", 0x7124},
- X{"sys/procfs.h", "PIOCGETU", 0x7125},
- X{"sys/procfs.h", "PIOCSET", 0x7126},
- X{"sys/procfs.h", "PIOCRESET", 0x7127},
- X{"sys/procfs.h", "PIOCNWATCH", 0x7128},
- X{"sys/procfs.h", "PIOCGWATCH", 0x7129},
- X{"sys/procfs.h", "PIOCSWATCH", 0x712a},
- X{"sys/procfs.h", "PIOCUSAGE", 0x712b},
- X{"sys/procfs.h", "PIOCOPENPD", 0x712c},
- X{"sys/procfs.h", "PIOCLWPIDS", 0x712d},
- X{"sys/procfs.h", "PIOCOPENLWP", 0x712e},
- X{"sys/procfs.h", "PIOCLSTATUS", 0x712f},
- X{"sys/procfs.h", "PIOCLUSAGE", 0x7130},
- X{"sys/procfs.h", "PIOCNAUXV", 0x7131},
- X{"sys/procfs.h", "PIOCAUXV", 0x7132},
- X{"sys/procfs.h", "PIOCGWIN", 0x7165},
- X{"sys/ttold.h", "TIOCGETD", 0x7400},
- X{"sys/termios.h", "TIOCGETD", 0x7400},
- X{"sys/termios.h", "TIOCSETD", 0x7401},
- X{"sys/ttold.h", "TIOCSETD", 0x7401},
- X{"sys/ttold.h", "TIOCHPCL", 0x7402},
- X{"sys/termios.h", "TIOCHPCL", 0x7402},
- X{"sys/termios.h", "TIOCGETP", 0x7408},
- X{"sys/ttold.h", "TIOCGETP", 0x7408},
- X{"sys/ttold.h", "TIOCSETP", 0x7409},
- X{"sys/termios.h", "TIOCSETP", 0x7409},
- X{"sys/ttold.h", "TIOCSETN", 0x740a},
- X{"sys/termios.h", "TIOCSETN", 0x740a},
- X{"sys/ttold.h", "TIOCEXCL", 0x740d},
- X{"sys/termios.h", "TIOCEXCL", 0x740d},
- X{"sys/ttold.h", "TIOCNXCL", 0x740e},
- X{"sys/termios.h", "TIOCNXCL", 0x740e},
- X{"sys/termios.h", "TIOCFLUSH", 0x7410},
- X{"sys/ttold.h", "TIOCFLUSH", 0x7410},
- X{"sys/ttold.h", "TIOCSETC", 0x7411},
- X{"sys/termios.h", "TIOCSETC", 0x7411},
- X{"sys/ttold.h", "TIOCGETC", 0x7412},
- X{"sys/termios.h", "TIOCGETC", 0x7412},
- X{"sys/termios.h", "TIOCGPGRP", 0x7414},
- X{"sys/termios.h", "TIOCSPGRP", 0x7415},
- X{"sys/termios.h", "TIOCGSID", 0x7416},
- X{"sys/termios.h", "TIOCSTI", 0x7417},
- X{"sys/termios.h", "TIOCSSID", 0x7418},
- X{"sys/termios.h", "TIOCMSET", 0x741a},
- X{"sys/termios.h", "TIOCMBIS", 0x741b},
- X{"sys/termios.h", "TIOCMBIC", 0x741c},
- X{"sys/termios.h", "TIOCMGET", 0x741d},
- X{"sys/termios.h", "TIOCREMOTE", 0x741e},
- X{"sys/ttold.h", "TIOCREMOTE", 0x741e},
- X{"sys/termios.h", "TIOCSIGNAL", 0x741f},
- X{"sys/ttold.h", "TIOCSTART", 0x746e},
- X{"sys/termios.h", "TIOCSTART", 0x746e},
- X{"sys/termios.h", "TIOCSTOP", 0x746f},
- X{"sys/ttold.h", "TIOCSTOP", 0x746f},
- X{"sys/ttold.h", "TIOCNOTTY", 0x7471},
- X{"sys/termios.h", "TIOCNOTTY", 0x7471},
- X{"sys/termios.h", "TIOCOUTQ", 0x7473},
- X{"sys/ttold.h", "TIOCOUTQ", 0x7473},
- X{"sys/ttold.h", "TIOCGLTC", 0x7474},
- X{"sys/termios.h", "TIOCGLTC", 0x7474},
- X{"sys/termios.h", "TIOCSLTC", 0x7475},
- X{"sys/ttold.h", "TIOCSLTC", 0x7475},
- X{"sys/termios.h", "TIOCCDTR", 0x7478},
- X{"sys/ttold.h", "TIOCCDTR", 0x7478},
- X{"sys/ttold.h", "TIOCSDTR", 0x7479},
- X{"sys/termios.h", "TIOCSDTR", 0x7479},
- X{"sys/termios.h", "TIOCCBRK", 0x747a},
- X{"sys/ttold.h", "TIOCCBRK", 0x747a},
- X{"sys/termios.h", "TIOCSBRK", 0x747b},
- X{"sys/ttold.h", "TIOCSBRK", 0x747b},
- X{"sys/termios.h", "TIOCLGET", 0x747c},
- X{"sys/ttold.h", "TIOCLGET", 0x747c},
- X{"sys/termios.h", "TIOCLSET", 0x747d},
- X{"sys/ttold.h", "TIOCLSET", 0x747d},
- X{"sys/ttold.h", "TIOCLBIC", 0x747e},
- X{"sys/termios.h", "TIOCLBIC", 0x747e},
- X{"sys/ttold.h", "TIOCLBIS", 0x747f},
- X{"sys/termios.h", "TIOCLBIS", 0x747f},
- X{"sys/bdio.h", "VUIDSFORMAT", 0x7601},
- X{"sys/vuid_event.h", "VUIDSFORMAT", 0x7601},
- X{"sys/vol.h", "VOLIOCMAP", 0x7601},
- X{"sys/vol.h", "VOLIOCUNMAP", 0x7602},
- X{"sys/bdio.h", "VUIDGFORMAT", 0x7602},
- X{"sys/vuid_event.h", "VUIDGFORMAT", 0x7602},
- X{"sys/vuid_event.h", "VUIDSADDR", 0x7603},
- X{"sys/vol.h", "VOLIOCEVENT", 0x7603},
- X{"sys/vuid_event.h", "VUIDGADDR", 0x7604},
- X{"sys/vol.h", "VOLIOCEJECT", 0x7604},
- X{"sys/vol.h", "VOLIOCCHECK", 0x7605},
- X{"sys/vol.h", "VOLIOCINUSE", 0x7606},
- X{"sys/vol.h", "VOLIOCDGATTR", 0x7607},
- X{"sys/vol.h", "VOLIOCDSATTR", 0x7608},
- X{"sys/vol.h", "VOLIOCDCHECK", 0x7609},
- X{"sys/vol.h", "VOLIOCCANCEL", 0x760a},
- X{"sys/vol.h", "VOLIOCINFO", 0x760b},
- X{"sys/vol.h", "VOLIOCSATTR", 0x760c},
- X{"sys/vol.h", "VOLIOCGATTR", 0x760d},
- X{"sys/vol.h", "VOLIOCDINUSE", 0x760e},
- X{"sys/vol.h", "VOLIOCDAEMON", 0x760f},
- X{"sys/vol.h", "VOLIOCFLAGS", 0x7610},
- X{"sys/vol.h", "VOLIOCEXTRA4", 0x7611},
- X{"sys/vol.h", "VOLIOCEXTRA5", 0x7612},
- X{"sys/vol.h", "VOLIOCEXTRA6", 0x7613},
- X{"sys/vol.h", "VOLIOCEXTRA7", 0x7614},
- X{"sys/ser_sync.h", "S_IOCGETMODE", 0x7a01},
- X{"sys/ser_sync.h", "S_IOCSETMODE", 0x7a02},
- X{"sys/ser_sync.h", "S_IOCGETSTATS", 0x7a03},
- X{"sys/ser_sync.h", "S_IOCCLRSTATS", 0x7a04},
- X{"sys/ser_sync.h", "S_IOCGETSPEED", 0x7a05},
- X{"sys/ser_sync.h", "S_IOCGETMRU", 0x7a06},
- X{"sys/ser_sync.h", "S_IOCSETMRU", 0x7a07},
- X{"sys/ser_sync.h", "S_IOCGETMTU", 0x7a08},
- X{"sys/ser_sync.h", "S_IOCSETMTU", 0x7a09},
- X{"sys/ser_sync.h", "S_IOCGETMCTL", 0x7a0a},
- END_OF_FILE
- if test 16195 -ne `wc -c <'strace-3.0/svr4/ioctlent.h'`; then
- echo shar: \"'strace-3.0/svr4/ioctlent.h'\" unpacked with wrong size!
- fi
- # end of 'strace-3.0/svr4/ioctlent.h'
- fi
- if test -f 'strace-3.0/svr4/syscallent.h' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'strace-3.0/svr4/syscallent.h'\"
- else
- echo shar: Extracting \"'strace-3.0/svr4/syscallent.h'\" \(19157 characters\)
- sed "s/^X//" >'strace-3.0/svr4/syscallent.h' <<'END_OF_FILE'
- X/*
- X * Copyright (c) 1993, 1994 Rick Sladkey <jrs@world.std.com>
- X * All rights reserved.
- X *
- X * Redistribution and use in source and binary forms, with or without
- X * modification, are permitted provided that the following conditions
- X * are met:
- X * 1. Redistributions of source code must retain the above copyright
- X * notice, this list of conditions and the following disclaimer.
- X * 2. Redistributions in binary form must reproduce the above copyright
- X * notice, this list of conditions and the following disclaimer in the
- X * documentation and/or other materials provided with the distribution.
- X * 3. All advertising materials mentioning features or use of this software
- X * must display the following acknowledgement:
- X * This product includes software developed by Paul Kranenburg,
- X * Branko Lankester and Rick Sladkey.
- X * 4. The name of the author may not be used to endorse or promote products
- X * derived from this software without specific prior written permission.
- X *
- X * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
- X * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- X * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- X * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
- X * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- X * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- X * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- X * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- X * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- X * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- X *
- X * syscallent.h,v 2.23 1994/03/21 05:45:58 jrs Exp
- X */
- X
- X { -1, sys_syscall, "syscall" }, /* 0 */
- X { -1, sys_exit, "_exit" }, /* 1 */
- X { -1, sys_fork, "fork" }, /* 2 */
- X { -1, sys_read, "read" }, /* 3 */
- X { -1, sys_write, "write" }, /* 4 */
- X { -1, sys_open, "open" }, /* 5 */
- X { -1, sys_close, "close" }, /* 6 */
- X { -1, sys_wait, "wait" }, /* 7 */
- X { -1, sys_creat, "creat" }, /* 8 */
- X { -1, sys_link, "link" }, /* 9 */
- X { -1, sys_unlink, "unlink" }, /* 10 */
- X { -1, sys_exec, "exec" }, /* 11 */
- X { -1, sys_chdir, "chdir" }, /* 12 */
- X { -1, sys_time, "time" }, /* 13 */
- X { -1, sys_mknod, "mknod" }, /* 14 */
- X { -1, sys_chmod, "chmod" }, /* 15 */
- X { -1, sys_chown, "chown" }, /* 16 */
- X { -1, sys_brk, "brk" }, /* 17 */
- X { -1, sys_stat, "stat" }, /* 18 */
- X { -1, sys_lseek, "lseek" }, /* 19 */
- X { -1, sys_getpid, "getpid" }, /* 20 */
- X { -1, sys_mount, "mount" }, /* 21 */
- X { -1, sys_umount, "umount" }, /* 22 */
- X { -1, sys_setuid, "setuid" }, /* 23 */
- X { -1, sys_getuid, "getuid" }, /* 24 */
- X { -1, sys_stime, "stime" }, /* 25 */
- X { -1, sys_ptrace, "ptrace" }, /* 26 */
- X { -1, sys_alarm, "alarm" }, /* 27 */
- X { -1, sys_fstat, "fstat" }, /* 28 */
- X { -1, sys_pause, "pause" }, /* 29 */
- X { -1, sys_utime, "utime" }, /* 30 */
- X { -1, sys_stty, "stty" }, /* 31 */
- X { -1, sys_gtty, "gtty" }, /* 32 */
- X { -1, sys_access, "access" }, /* 33 */
- X { -1, sys_nice, "nice" }, /* 34 */
- X { -1, sys_statfs, "statfs" }, /* 35 */
- X { -1, sys_sync, "sync" }, /* 36 */
- X { -1, sys_kill, "kill" }, /* 37 */
- X { -1, sys_fstatfs, "fstatfs" }, /* 38 */
- X { -1, sys_pgrpsys, "pgrpsys" }, /* 39 */
- X { -1, sys_xenix, "xenix" }, /* 40 */
- X { -1, sys_dup, "dup" }, /* 41 */
- X { -1, sys_pipe, "pipe" }, /* 42 */
- X { -1, sys_times, "times" }, /* 43 */
- X { -1, sys_profil, "profil" }, /* 44 */
- X { -1, sys_plock, "plock" }, /* 45 */
- X { -1, sys_setgid, "setgid" }, /* 46 */
- X { -1, sys_getgid, "getgid" }, /* 47 */
- X { -1, sys_sigcall, "sigcall" }, /* 48 */
- X { -1, sys_msgsys, "msgsys" }, /* 49 */
- X#ifdef __sun__
- X { -1, sys_syssun, "syssun" }, /* 50 */
- X#else /* !__sun__ */
- X#ifdef __i386__
- X { -1, sys_sysi86, "sysi86" }, /* 50 */
- X#else /* !__i386__ */
- X { -1, sys_sysmachine, "sysmachine" }, /* 50 */
- X#endif /* !__i386__ */
- X#endif /* !__sun__ */
- X { -1, sys_acct, "acct" }, /* 51 */
- X { -1, sys_shmsys, "shmsys" }, /* 52 */
- X { -1, sys_semsys, "semsys" }, /* 53 */
- X { -1, sys_ioctl, "ioctl" }, /* 54 */
- X { -1, sys_uadmin, "uadmin" }, /* 55 */
- X { -1, printargs, "SYS_56" }, /* 56 */
- X { -1, sys_utssys, "utssys" }, /* 57 */
- X { -1, sys_fdsync, "fdsync" }, /* 58 */
- X { -1, sys_execve, "execve" }, /* 59 */
- X { -1, sys_umask, "umask" }, /* 60 */
- X { -1, sys_chroot, "chroot" }, /* 61 */
- X { -1, sys_fcntl, "fcntl" }, /* 62 */
- X { -1, sys_ulimit, "ulimit" }, /* 63 */
- X { -1, printargs, "SYS_64" }, /* 64 */
- X { -1, printargs, "SYS_65" }, /* 65 */
- X { -1, printargs, "SYS_66" }, /* 66 */
- X { -1, printargs, "SYS_67" }, /* 67 */
- X { -1, printargs, "SYS_68" }, /* 68 */
- X { -1, printargs, "SYS_69" }, /* 69 */
- X { -1, printargs, "SYS_70" }, /* 70 */
- X { -1, printargs, "SYS_71" }, /* 71 */
- X { -1, printargs, "SYS_72" }, /* 72 */
- X { -1, printargs, "SYS_73" }, /* 73 */
- X { -1, printargs, "SYS_74" }, /* 74 */
- X { -1, printargs, "SYS_75" }, /* 75 */
- X { -1, printargs, "SYS_76" }, /* 76 */
- X { -1, printargs, "SYS_77" }, /* 77 */
- X { -1, printargs, "SYS_78" }, /* 78 */
- X { -1, sys_rmdir, "rmdir" }, /* 79 */
- X { -1, sys_mkdir, "mkdir" }, /* 80 */
- X { -1, sys_getdents, "getdents" }, /* 81 */
- X { -1, printargs, "SYS_82" }, /* 82 */
- X { -1, printargs, "SYS_83" }, /* 83 */
- X { -1, sys_sysfs, "sysfs" }, /* 84 */
- X { -1, sys_getmsg, "getmsg" }, /* 85 */
- X { -1, sys_putmsg, "putmsg" }, /* 86 */
- X { -1, sys_poll, "poll" }, /* 87 */
- X { -1, sys_lstat, "lstat" }, /* 88 */
- X { -1, sys_symlink, "symlink" }, /* 89 */
- X { -1, sys_readlink, "readlink" }, /* 90 */
- X { -1, sys_setgroups, "setgroups" }, /* 91 */
- X { -1, sys_getgroups, "getgroups" }, /* 92 */
- X { -1, sys_fchmod, "fchmod" }, /* 93 */
- X { -1, sys_fchown, "fchown" }, /* 94 */
- X { -1, sys_sigprocmask, "sigprocmask" }, /* 95 */
- X { -1, sys_sigsuspend, "sigsuspend" }, /* 96 */
- X { -1, sys_sigaltstack, "sigaltstack" }, /* 97 */
- X { -1, sys_sigaction, "sigaction" }, /* 98 */
- X { -1, sys_spcall, "spcall" }, /* 99 */
- X { -1, sys_context, "context" }, /* 100 */
- X { -1, sys_evsys, "evsys" }, /* 101 */
- X { -1, sys_evtrapret, "evtrapret" }, /* 102 */
- X { -1, sys_statvfs, "statvfs" }, /* 103 */
- X { -1, sys_fstatvfs, "fstatvfs" }, /* 104 */
- X { -1, printargs, "SYS_105" }, /* 105 */
- X { -1, sys_nfssys, "nfssys" }, /* 106 */
- X { -1, sys_waitid, "waitid" }, /* 107 */
- X { -1, sys_sigsendsys, "sigsendsys" }, /* 108 */
- X { -1, sys_hrtsys, "hrtsys" }, /* 109 */
- X { -1, sys_acancel, "acancel" }, /* 110 */
- X { -1, sys_async, "async" }, /* 111 */
- X { -1, sys_priocntlsys, "priocntlsys" }, /* 112 */
- X { -1, sys_pathconf, "pathconf" }, /* 113 */
- X { -1, sys_mincore, "mincore" }, /* 114 */
- X { -1, sys_mmap, "mmap" }, /* 115 */
- X { -1, sys_mprotect, "mprotect" }, /* 116 */
- X { -1, sys_munmap, "munmap" }, /* 117 */
- X { -1, sys_fpathconf, "fpathconf" }, /* 118 */
- X { -1, sys_vfork, "vfork" }, /* 119 */
- X { -1, sys_fchdir, "fchdir" }, /* 120 */
- X { -1, sys_readv, "readv" }, /* 121 */
- X { -1, sys_writev, "writev" }, /* 122 */
- X { -1, sys_xstat, "xstat" }, /* 123 */
- X { -1, sys_lxstat, "lxstat" }, /* 124 */
- X { -1, sys_fxstat, "fxstat" }, /* 125 */
- X { -1, sys_xmknod, "xmknod" }, /* 126 */
- X { -1, sys_clocal, "clocal" }, /* 127 */
- X { -1, sys_setrlimit, "setrlimit" }, /* 128 */
- X { -1, sys_getrlimit, "getrlimit" }, /* 129 */
- X { -1, sys_lchown, "lchown" }, /* 130 */
- X { -1, sys_memcntl, "memcntl" }, /* 131 */
- X { -1, sys_getpmsg, "getpmsg" }, /* 132 */
- X { -1, sys_putpmsg, "putpmsg" }, /* 133 */
- X { -1, sys_rename, "rename" }, /* 134 */
- X { -1, sys_uname, "uname" }, /* 135 */
- X { -1, sys_setegid, "setegid" }, /* 136 */
- X { -1, sys_sysconfig, "sysconfig" }, /* 137 */
- X { -1, sys_adjtime, "adjtime" }, /* 138 */
- X { -1, sys_sysinfo, "sysinfo" }, /* 139 */
- X { -1, printargs, "SYS_140" }, /* 140 */
- X { -1, sys_seteuid, "seteuid" }, /* 141 */
- X { -1, sys_vtrace, "vtrace" }, /* 142 */
- X { -1, sys_fork1, "fork1" }, /* 143 */
- X { -1, sys_sigtimedwait, "sigtimedwait" }, /* 144 */
- X { -1, sys_lwp_info, "lwp_info" }, /* 145 */
- X { -1, sys_yield, "yield" }, /* 146 */
- X { -1, sys_lwp_sema_wait, "lwp_sema_wait" }, /* 147 */
- X { -1, sys_lwp_sema_post, "lwp_sema_post" }, /* 148 */
- X { -1, printargs, "SYS_149" }, /* 149 */
- X { -1, printargs, "SYS_150" }, /* 150 */
- X { -1, printargs, "SYS_151" }, /* 151 */
- X { -1, sys_modctl, "modctl" }, /* 152 */
- X { -1, sys_fchroot, "fchroot" }, /* 153 */
- X { -1, sys_utimes, "utimes" }, /* 154 */
- X { -1, sys_vhangup, "vhangup" }, /* 155 */
- X { -1, sys_gettimeofday, "gettimeofday" }, /* 156 */
- X { -1, sys_getitimer, "getitimer" }, /* 157 */
- X { -1, sys_setitimer, "setitimer" }, /* 158 */
- X { -1, sys_lwp_create, "lwp_create" }, /* 159 */
- X { -1, sys_lwp_exit, "lwp_exit" }, /* 160 */
- X { -1, sys_lwp_suspend, "lwp_suspend" }, /* 161 */
- X { -1, sys_lwp_continue, "lwp_continue" }, /* 162 */
- X { -1, sys_lwp_kill, "lwp_kill" }, /* 163 */
- X { -1, sys_lwp_self, "lwp_self" }, /* 164 */
- X { -1, sys_lwp_setprivate, "lwp_setprivate"}, /* 165 */
- X { -1, sys_lwp_getprivate, "lwp_getprivate"}, /* 166 */
- X { -1, sys_lwp_wait, "lwp_wait" }, /* 167 */
- X { -1, sys_lwp_mutex_unlock, "lwp_mutex_unlock"}, /* 168 */
- X { -1, sys_lwp_mutex_lock, "lwp_mutex_lock"}, /* 169 */
- X { -1, sys_lwp_cond_wait, "lwp_cond_wait"}, /* 170 */
- X { -1, sys_lwp_cond_signal, "lwp_cond_signal"}, /* 171 */
- X { -1, sys_lwp_cond_broadcast, "lwp_cond_broadcast"}, /* 172 */
- X { -1, sys_pread, "pread" }, /* 173 */
- X { -1, sys_pwrite, "pwrite" }, /* 174 */
- X { -1, sys_llseek, "llseek" }, /* 175 */
- X { -1, sys_inst_sync, "inst_sync" }, /* 176 */
- X { -1, printargs, "SYS_177" }, /* 177 */
- X { -1, printargs, "SYS_178" }, /* 178 */
- X { -1, printargs, "SYS_179" }, /* 179 */
- X { -1, printargs, "SYS_180" }, /* 180 */
- X { -1, printargs, "SYS_181" }, /* 181 */
- X { -1, printargs, "SYS_182" }, /* 182 */
- X { -1, printargs, "SYS_183" }, /* 183 */
- X { -1, printargs, "SYS_184" }, /* 184 */
- X { -1, printargs, "SYS_185" }, /* 185 */
- X { -1, sys_auditsys, "auditsys" }, /* 186 */
- X { -1, sys_processor_bind, "processor_bind"}, /* 187 */
- X { -1, sys_processor_info, "processor_info"}, /* 188 */
- X { -1, sys_p_online, "p_online" }, /* 189 */
- X { -1, sys_sigqueue, "sigqueue" }, /* 190 */
- X { -1, sys_clock_gettime, "clock_gettime" }, /* 191 */
- X { -1, sys_clock_settime, "clock_settime" }, /* 192 */
- X { -1, sys_clock_getres, "clock_getres" }, /* 193 */
- X { -1, sys_timer_create, "timer_create" }, /* 194 */
- X { -1, sys_timer_delete, "timer_delete" }, /* 195 */
- X { -1, sys_timer_settime, "timer_settime" }, /* 196 */
- X { -1, sys_timer_gettime, "timer_gettime" }, /* 197 */
- X { -1, sys_timer_getoverrun, "timer_getoverrun"}, /* 198 */
- X { -1, sys_nanosleep, "nanosleep" }, /* 199 */
- X
- X { -1, printargs, "SYS_200" }, /* 200 */
- X { -1, printargs, "SYS_201" }, /* 201 */
- X { -1, printargs, "SYS_202" }, /* 202 */
- X { -1, printargs, "SYS_203" }, /* 203 */
- X { -1, printargs, "SYS_204" }, /* 204 */
- X { -1, printargs, "SYS_205" }, /* 205 */
- X { -1, printargs, "SYS_206" }, /* 206 */
- X { -1, printargs, "SYS_207" }, /* 207 */
- X { -1, printargs, "SYS_208" }, /* 208 */
- X { -1, printargs, "SYS_209" }, /* 209 */
- X { -1, printargs, "SYS_210" }, /* 210 */
- X { -1, printargs, "SYS_211" }, /* 211 */
- X { -1, printargs, "SYS_212" }, /* 212 */
- X { -1, printargs, "SYS_213" }, /* 213 */
- X { -1, printargs, "SYS_214" }, /* 214 */
- X { -1, printargs, "SYS_215" }, /* 215 */
- X { -1, printargs, "SYS_216" }, /* 216 */
- X { -1, printargs, "SYS_217" }, /* 217 */
- X { -1, printargs, "SYS_218" }, /* 218 */
- X { -1, printargs, "SYS_219" }, /* 219 */
- X { -1, printargs, "SYS_220" }, /* 220 */
- X { -1, printargs, "SYS_221" }, /* 221 */
- X { -1, printargs, "SYS_222" }, /* 222 */
- X { -1, printargs, "SYS_223" }, /* 223 */
- X { -1, printargs, "SYS_224" }, /* 224 */
- X { -1, printargs, "SYS_225" }, /* 225 */
- X { -1, printargs, "SYS_226" }, /* 226 */
- X { -1, printargs, "SYS_227" }, /* 227 */
- X { -1, printargs, "SYS_228" }, /* 228 */
- X { -1, printargs, "SYS_229" }, /* 229 */
- X { -1, printargs, "SYS_230" }, /* 230 */
- X { -1, printargs, "SYS_231" }, /* 231 */
- X { -1, printargs, "SYS_232" }, /* 232 */
- X { -1, printargs, "SYS_233" }, /* 233 */
- X { -1, printargs, "SYS_234" }, /* 234 */
- X { -1, printargs, "SYS_235" }, /* 235 */
- X { -1, printargs, "SYS_236" }, /* 236 */
- X { -1, printargs, "SYS_237" }, /* 237 */
- X { -1, printargs, "SYS_238" }, /* 238 */
- X { -1, printargs, "SYS_239" }, /* 239 */
- X { -1, printargs, "SYS_240" }, /* 240 */
- X { -1, printargs, "SYS_241" }, /* 241 */
- X { -1, printargs, "SYS_242" }, /* 242 */
- X { -1, printargs, "SYS_243" }, /* 243 */
- X { -1, printargs, "SYS_244" }, /* 244 */
- X { -1, printargs, "SYS_245" }, /* 245 */
- X { -1, printargs, "SYS_246" }, /* 246 */
- X { -1, printargs, "SYS_247" }, /* 247 */
- X { -1, printargs, "SYS_248" }, /* 248 */
- X { -1, printargs, "SYS_249" }, /* 249 */
- X { -1, printargs, "SYS_250" }, /* 250 */
- X { -1, printargs, "SYS_251" }, /* 251 */
- X { -1, printargs, "SYS_252" }, /* 252 */
- X { -1, printargs, "SYS_253" }, /* 253 */
- X { -1, printargs, "SYS_254" }, /* 254 */
- X { -1, printargs, "SYS_255" }, /* 255 */
- X { -1, printargs, "SYS_256" }, /* 256 */
- X { -1, printargs, "SYS_257" }, /* 257 */
- X { -1, printargs, "SYS_258" }, /* 258 */
- X { -1, printargs, "SYS_259" }, /* 259 */
- X { -1, printargs, "SYS_260" }, /* 260 */
- X { -1, printargs, "SYS_261" }, /* 261 */
- X { -1, printargs, "SYS_262" }, /* 262 */
- X { -1, printargs, "SYS_263" }, /* 263 */
- X { -1, printargs, "SYS_264" }, /* 264 */
- X { -1, printargs, "SYS_265" }, /* 265 */
- X { -1, printargs, "SYS_266" }, /* 266 */
- X { -1, printargs, "SYS_267" }, /* 267 */
- X { -1, printargs, "SYS_268" }, /* 268 */
- X { -1, printargs, "SYS_269" }, /* 269 */
- X { -1, printargs, "SYS_270" }, /* 270 */
- X { -1, printargs, "SYS_271" }, /* 271 */
- X { -1, printargs, "SYS_272" }, /* 272 */
- X { -1, printargs, "SYS_273" }, /* 273 */
- X { -1, printargs, "SYS_274" }, /* 274 */
- X { -1, printargs, "SYS_275" }, /* 275 */
- X { -1, printargs, "SYS_276" }, /* 276 */
- X { -1, printargs, "SYS_277" }, /* 277 */
- X { -1, printargs, "SYS_278" }, /* 278 */
- X { -1, printargs, "SYS_279" }, /* 279 */
- X { -1, printargs, "SYS_280" }, /* 280 */
- X { -1, printargs, "SYS_281" }, /* 281 */
- X { -1, printargs, "SYS_282" }, /* 282 */
- X { -1, printargs, "SYS_283" }, /* 283 */
- X { -1, printargs, "SYS_284" }, /* 284 */
- X { -1, printargs, "SYS_285" }, /* 285 */
- X { -1, printargs, "SYS_286" }, /* 286 */
- X { -1, printargs, "SYS_287" }, /* 287 */
- X { -1, printargs, "SYS_288" }, /* 288 */
- X { -1, printargs, "SYS_289" }, /* 289 */
- X { -1, printargs, "SYS_290" }, /* 290 */
- X { -1, printargs, "SYS_291" }, /* 291 */
- X { -1, printargs, "SYS_292" }, /* 292 */
- X { -1, printargs, "SYS_293" }, /* 293 */
- X { -1, printargs, "SYS_294" }, /* 294 */
- X { -1, printargs, "SYS_295" }, /* 295 */
- X { -1, printargs, "SYS_296" }, /* 296 */
- X { -1, printargs, "SYS_297" }, /* 297 */
- X { -1, printargs, "SYS_298" }, /* 298 */
- X { -1, printargs, "SYS_299" }, /* 299 */
- X
- X { -1, sys_getpgrp, "getpgrp" }, /* 300 */
- X { -1, sys_setpgrp, "setpgrp" }, /* 301 */
- X { -1, sys_getsid, "getsid" }, /* 302 */
- X { -1, sys_setsid, "setsid" }, /* 303 */
- X { -1, sys_getpgid, "getpgid" }, /* 304 */
- X { -1, sys_setpgid, "setpgid" }, /* 305 */
- X { -1, printargs, "SYS_306" }, /* 306 */
- X { -1, printargs, "SYS_307" }, /* 307 */
- X { -1, printargs, "SYS_308" }, /* 308 */
- X { -1, printargs, "SYS_309" }, /* 309 */
- X
- X { -1, sys_signal, "signal" }, /* 310 */
- X { -1, sys_sigset, "sigset" }, /* 311 */
- X { -1, sys_sighold, "sighold" }, /* 312 */
- X { -1, sys_sigrelse, "sigrelse" }, /* 313 */
- X { -1, sys_sigignore, "sigignore" }, /* 314 */
- X { -1, sys_sigpause, "sigpause" }, /* 315 */
- X { -1, printargs, "SYS_316" }, /* 316 */
- X { -1, printargs, "SYS_317" }, /* 317 */
- X { -1, printargs, "SYS_318" }, /* 318 */
- X { -1, printargs, "SYS_319" }, /* 319 */
- X
- X { -1, sys_msgget, "msgget" }, /* 320 */
- X { -1, sys_msgctl, "msgctl" }, /* 321 */
- X { -1, sys_msgrcv, "msgrcv" }, /* 322 */
- X { -1, sys_msgsnd, "msgsnd" }, /* 323 */
- X { -1, printargs, "SYS_324" }, /* 324 */
- X { -1, printargs, "SYS_325" }, /* 325 */
- X { -1, printargs, "SYS_326" }, /* 326 */
- X { -1, printargs, "SYS_327" }, /* 327 */
- X { -1, printargs, "SYS_328" }, /* 328 */
- X { -1, printargs, "SYS_329" }, /* 329 */
- X
- X { -1, sys_shmat, "shmat" }, /* 330 */
- X { -1, sys_shmctl, "shmctl" }, /* 331 */
- X { -1, sys_shmdt, "shmdt" }, /* 332 */
- X { -1, sys_shmget, "shmget" }, /* 333 */
- X { -1, printargs, "SYS_334" }, /* 334 */
- X { -1, printargs, "SYS_335" }, /* 335 */
- X { -1, printargs, "SYS_336" }, /* 336 */
- X { -1, printargs, "SYS_337" }, /* 337 */
- X { -1, printargs, "SYS_338" }, /* 338 */
- X { -1, printargs, "SYS_339" }, /* 339 */
- X
- X { -1, sys_semctl, "semctl" }, /* 340 */
- X { -1, sys_semget, "semget" }, /* 341 */
- X { -1, sys_semop, "semop" }, /* 342 */
- X { -1, printargs, "SYS_343" }, /* 343 */
- X { -1, printargs, "SYS_344" }, /* 344 */
- X { -1, printargs, "SYS_345" }, /* 345 */
- X { -1, printargs, "SYS_346" }, /* 346 */
- X { -1, printargs, "SYS_347" }, /* 347 */
- X { -1, printargs, "SYS_348" }, /* 348 */
- X { -1, printargs, "SYS_349" }, /* 349 */
- X
- X { -1, sys_olduname, "olduname" }, /* 350 */
- X { -1, printargs, "utssys1" }, /* 351 */
- X { -1, sys_ustat, "ustat" }, /* 352 */
- X { -1, sys_fusers, "fusers" }, /* 353 */
- X { -1, printargs, "SYS_354" }, /* 354 */
- X { -1, printargs, "SYS_355" }, /* 355 */
- X { -1, printargs, "SYS_356" }, /* 356 */
- X { -1, printargs, "SYS_357" }, /* 357 */
- X { -1, printargs, "SYS_358" }, /* 358 */
- X { -1, printargs, "SYS_359" }, /* 359 */
- X
- X { -1, printargs, "sysfs0" }, /* 360 */
- X { -1, sys_sysfs1, "sysfs1" }, /* 361 */
- X { -1, sys_sysfs2, "sysfs2" }, /* 362 */
- X { -1, sys_sysfs3, "sysfs3" }, /* 363 */
- X { -1, printargs, "SYS_364" }, /* 364 */
- X { -1, printargs, "SYS_365" }, /* 365 */
- X { -1, printargs, "SYS_366" }, /* 366 */
- X { -1, printargs, "SYS_367" }, /* 367 */
- X { -1, printargs, "SYS_368" }, /* 368 */
- X { -1, printargs, "SYS_369" }, /* 369 */
- X
- X { -1, printargs, "spcall0" }, /* 370 */
- X { -1, sys_sigpending, "sigpending" }, /* 371 */
- X { -1, sys_sigfillset, "sigfillset" }, /* 372 */
- X { -1, printargs, "SYS_373" }, /* 373 */
- X { -1, printargs, "SYS_374" }, /* 374 */
- X { -1, printargs, "SYS_375" }, /* 375 */
- X { -1, printargs, "SYS_376" }, /* 376 */
- X { -1, printargs, "SYS_377" }, /* 377 */
- X { -1, printargs, "SYS_378" }, /* 378 */
- X { -1, printargs, "SYS_379" }, /* 379 */
- X
- X { -1, sys_getcontext, "getcontext" }, /* 380 */
- X { -1, sys_setcontext, "setcontext" }, /* 381 */
- X { -1, printargs, "SYS_382" }, /* 382 */
- X { -1, printargs, "SYS_383" }, /* 383 */
- X { -1, printargs, "SYS_384" }, /* 384 */
- X { -1, printargs, "SYS_385" }, /* 385 */
- X { -1, printargs, "SYS_386" }, /* 386 */
- X { -1, printargs, "SYS_387" }, /* 387 */
- X { -1, printargs, "SYS_388" }, /* 388 */
- X { -1, printargs, "SYS_389" }, /* 389 */
- X
- X { -1, printargs, "SYS_390" }, /* 390 */
- X { -1, printargs, "SYS_391" }, /* 391 */
- X { -1, printargs, "SYS_392" }, /* 392 */
- X { -1, printargs, "SYS_393" }, /* 393 */
- X { -1, printargs, "SYS_394" }, /* 394 */
- X { -1, printargs, "SYS_395" }, /* 395 */
- X { -1, printargs, "SYS_396" }, /* 396 */
- X { -1, printargs, "SYS_397" }, /* 397 */
- X { -1, printargs, "SYS_398" }, /* 398 */
- X { -1, printargs, "SYS_399" }, /* 399 */
- END_OF_FILE
- if test 19157 -ne `wc -c <'strace-3.0/svr4/syscallent.h'`; then
- echo shar: \"'strace-3.0/svr4/syscallent.h'\" unpacked with wrong size!
- fi
- # end of 'strace-3.0/svr4/syscallent.h'
- fi
- if test -f 'strace-3.0/test/sig.c' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'strace-3.0/test/sig.c'\"
- else
- echo shar: Extracting \"'strace-3.0/test/sig.c'\" \(195 characters\)
- sed "s/^X//" >'strace-3.0/test/sig.c' <<'END_OF_FILE'
- X#include <signal.h>
- Xmain()
- X{
- X char buf[1024];
- X void interrupt();
- X
- X signal(SIGINT, interrupt);
- X read(0, buf, 1024);
- X write(2, "qwerty\n", 7);
- X exit(0);
- X}
- X
- Xinterrupt()
- X{
- X write(2, "xyzzy\n", 6);
- X}
- END_OF_FILE
- if test 195 -ne `wc -c <'strace-3.0/test/sig.c'`; then
- echo shar: \"'strace-3.0/test/sig.c'\" unpacked with wrong size!
- fi
- # end of 'strace-3.0/test/sig.c'
- fi
- echo shar: End of archive 5 \(of 10\).
- cp /dev/null ark5isdone
- MISSING=""
- for I in 1 2 3 4 5 6 7 8 9 10 ; do
- if test ! -f ark${I}isdone ; then
- MISSING="${MISSING} ${I}"
- fi
- done
- if test "${MISSING}" = "" ; then
- echo You have unpacked all 10 archives.
- rm -f ark[1-9]isdone ark[1-9][0-9]isdone
- else
- echo You still must unpack the following archives:
- echo " " ${MISSING}
- fi
- exit 0
- exit 0 # Just in case...
-