}
int
-sys_create_module(tcp)
-struct tcb *tcp;
+sys_create_module(struct tcb *tcp)
{
if (entering(tcp)) {
printpath(tcp, tcp->u_arg[0]);
}
int
-sys_init_module(tcp)
-struct tcb *tcp;
+sys_init_module(struct tcb *tcp)
{
if (entering(tcp)) {
tprintf("%#lx, ", tcp->u_arg[0]);
#if HAVE_SYS_UIO_H
void
-tprint_iov(tcp, len, addr)
-struct tcb * tcp;
-unsigned long len;
-unsigned long addr;
+tprint_iov(struct tcb *tcp, unsigned long len, unsigned long addr)
{
#if defined(LINUX) && SUPPORTED_PERSONALITIES > 1
union {
int nioctlents;
static int
-compare(a, b)
-const void *a;
-const void *b;
+compare(const void *a, const void *b)
{
unsigned long code1 = ((struct ioctlent *) a)->code;
unsigned long code2 = ((struct ioctlent *) b)->code;
}
const struct ioctlent *
-ioctl_lookup(code)
-long code;
+ioctl_lookup(long code)
{
struct ioctlent *iop, ioent;
}
int
-ioctl_decode(tcp, code, arg)
-struct tcb *tcp;
-long code, arg;
+ioctl_decode(struct tcb *tcp, long code, long arg)
{
switch ((code >> 8) & 0xff) {
#ifdef LINUX
{ 0, NULL },
};
-int sys_msgget(tcp)
-struct tcb *tcp;
+int sys_msgget(struct tcb *tcp)
{
if (entering(tcp)) {
if (tcp->u_arg[0])
#endif
static int
-indirect_ipccall(tcp)
-struct tcb *tcp;
+indirect_ipccall(struct tcb *tcp)
{
#ifdef LINUX
#ifdef X86_64
return 0;
}
-int sys_msgctl(tcp)
-struct tcb *tcp;
+int sys_msgctl(struct tcb *tcp)
{
if (entering(tcp)) {
tprintf("%lu, ", tcp->u_arg[0]);
}
#endif
-int sys_semget(tcp)
-struct tcb *tcp;
+int sys_semget(struct tcb *tcp)
{
if (entering(tcp)) {
if (tcp->u_arg[0])
return 0;
}
-int sys_semctl(tcp)
-struct tcb *tcp;
+int sys_semctl(struct tcb *tcp)
{
if (entering(tcp)) {
tprintf("%lu", tcp->u_arg[0]);
return 0;
}
-int sys_shmget(tcp)
-struct tcb *tcp;
+int sys_shmget(struct tcb *tcp)
{
if (entering(tcp)) {
if (tcp->u_arg[0])
return 0;
}
-int sys_shmctl(tcp)
-struct tcb *tcp;
+int sys_shmctl(struct tcb *tcp)
{
if (entering(tcp)) {
tprintf("%lu, ", tcp->u_arg[0]);
return 0;
}
-int sys_shmat(tcp)
-struct tcb *tcp;
+int sys_shmat(struct tcb *tcp)
{
#ifdef LINUX
unsigned long raddr;
return 0;
}
-int sys_shmdt(tcp)
-struct tcb *tcp;
+int sys_shmdt(struct tcb *tcp)
{
if (entering(tcp)) {
if (indirect_ipccall(tcp)) {
#endif
int
-sys_brk(tcp)
-struct tcb *tcp;
+sys_brk(struct tcb *tcp)
{
if (entering(tcp)) {
tprintf("%#lx", tcp->u_arg[0]);
#if defined(FREEBSD) || defined(SUNOS4)
int
-sys_sbrk(tcp)
-struct tcb *tcp;
+sys_sbrk(struct tcb *tcp)
{
if (entering(tcp)) {
tprintf("%lu", tcp->u_arg[0]);
}
#ifdef LINUX
-int sys_old_mmap(tcp)
-struct tcb *tcp;
+int sys_old_mmap(struct tcb *tcp)
{
long u_arg[6];
#endif
int
-sys_mmap(tcp)
-struct tcb *tcp;
+sys_mmap(struct tcb *tcp)
{
long long offset = tcp->u_arg[5];
int
-sys_munmap(tcp)
-struct tcb *tcp;
+sys_munmap(struct tcb *tcp)
{
if (entering(tcp)) {
tprintf("%#lx, %lu",
}
int
-sys_mprotect(tcp)
-struct tcb *tcp;
+sys_mprotect(struct tcb *tcp)
{
if (entering(tcp)) {
tprintf("%#lx, %lu, ",
int
-sys_madvise(tcp)
-struct tcb *tcp;
+sys_madvise(struct tcb *tcp)
{
if (entering(tcp)) {
tprintf("%#lx, %lu, ", tcp->u_arg[0], tcp->u_arg[1]);
};
int
-sys_mlockall(tcp)
-struct tcb *tcp;
+sys_mlockall(struct tcb *tcp)
{
if (entering(tcp)) {
printflags(mlockall_flags, tcp->u_arg[0], "MCL_???");
};
int
-sys_msync(tcp)
-struct tcb *tcp;
+sys_msync(struct tcb *tcp)
{
if (entering(tcp)) {
/* addr */
};
int
-sys_mctl(tcp)
-struct tcb *tcp;
+sys_mctl(struct tcb *tcp)
{
int arg, function;
#endif /* MC_SYNC */
int
-sys_mincore(tcp)
-struct tcb *tcp;
+sys_mincore(struct tcb *tcp)
{
unsigned long i, len;
char *vec = NULL;
#if defined(ALPHA) || defined(FREEBSD) || defined(IA64) || defined(SUNOS4) || defined(SVR4) || defined(SPARC) || defined(SPARC64)
int
-sys_getpagesize(tcp)
-struct tcb *tcp;
+sys_getpagesize(struct tcb *tcp)
{
if (exiting(tcp))
return RVAL_HEX;
}
int
-sys_modify_ldt(tcp)
-struct tcb *tcp;
+sys_modify_ldt(struct tcb *tcp)
{
if (entering(tcp)) {
struct modify_ldt_ldt_s copy;
}
int
-sys_set_thread_area(tcp)
-struct tcb *tcp;
+sys_set_thread_area(struct tcb *tcp)
{
struct modify_ldt_ldt_s copy;
if (entering(tcp)) {
}
int
-sys_get_thread_area(tcp)
-struct tcb *tcp;
+sys_get_thread_area(struct tcb *tcp)
{
struct modify_ldt_ldt_s copy;
if (exiting(tcp)) {
#if defined(LINUX) && defined(M68K)
int
-sys_set_thread_area(tcp)
-struct tcb *tcp;
+sys_set_thread_area(struct tcb *tcp)
{
if (entering(tcp))
tprintf("%#lx", tcp->u_arg[0]);
}
int
-sys_get_thread_area(tcp)
-struct tcb *tcp;
+sys_get_thread_area(struct tcb *tcp)
{
return RVAL_HEX;
}
#if defined(LINUX)
int
-sys_remap_file_pages(tcp)
-struct tcb *tcp;
+sys_remap_file_pages(struct tcb *tcp)
{
if (entering(tcp)) {
tprintf("%#lx, %lu, ", tcp->u_arg[0], tcp->u_arg[1]);
static void
-get_nodes(tcp, ptr, maxnodes, err)
-struct tcb *tcp;
-unsigned long ptr;
-unsigned long maxnodes;
-int err;
+get_nodes(struct tcb *tcp, unsigned long ptr, unsigned long maxnodes, int err)
{
unsigned long nlongs, size, end;
}
int
-sys_mbind(tcp)
-struct tcb *tcp;
+sys_mbind(struct tcb *tcp)
{
if (entering(tcp)) {
tprintf("%#lx, %lu, ", tcp->u_arg[0], tcp->u_arg[1]);
}
int
-sys_set_mempolicy(tcp)
-struct tcb *tcp;
+sys_set_mempolicy(struct tcb *tcp)
{
if (entering(tcp)) {
printxval(policies, tcp->u_arg[0], "MPOL_???");
}
int
-sys_get_mempolicy(tcp)
-struct tcb *tcp;
+sys_get_mempolicy(struct tcb *tcp)
{
if (exiting(tcp)) {
int pol;
}
int
-sys_move_pages(tcp)
-struct tcb *tcp;
+sys_move_pages(struct tcb *tcp)
{
if (entering(tcp)) {
unsigned long npages = tcp->u_arg[1];
#if defined(LINUX) && defined(POWERPC)
int
-sys_subpage_prot(tcp)
-struct tcb *tcp;
+sys_subpage_prot(struct tcb *tcp)
{
if (entering(tcp)) {
unsigned long cur, end, abbrev_end, entries;
}
static void
-printmsghdr(tcp, addr)
-struct tcb *tcp;
-long addr;
+printmsghdr(struct tcb *tcp, long addr)
{
struct msghdr msg;
#ifdef SVR4
int
-sys_so_socket(tcp)
-struct tcb *tcp;
+sys_so_socket(struct tcb *tcp)
{
if (entering(tcp)) {
/* not sure really what these args are... but this
}
int
-sys_so_socketpair(tcp)
-struct tcb *tcp;
+sys_so_socketpair(struct tcb *tcp)
{
if (entering(tcp)) {
/* not sure what this arg is */
#endif /* SVR4 */
int
-sys_bind(tcp)
-struct tcb *tcp;
+sys_bind(struct tcb *tcp)
{
if (entering(tcp)) {
tprintf("%ld, ", tcp->u_arg[0]);
}
int
-sys_connect(tcp)
-struct tcb *tcp;
+sys_connect(struct tcb *tcp)
{
return sys_bind(tcp);
}
int
-sys_listen(tcp)
-struct tcb *tcp;
+sys_listen(struct tcb *tcp)
{
if (entering(tcp)) {
tprintf("%ld, %lu", tcp->u_arg[0], tcp->u_arg[1]);
#endif
int
-sys_send(tcp)
-struct tcb *tcp;
+sys_send(struct tcb *tcp)
{
if (entering(tcp)) {
tprintf("%ld, ", tcp->u_arg[0]);
}
int
-sys_sendto(tcp)
-struct tcb *tcp;
+sys_sendto(struct tcb *tcp)
{
if (entering(tcp)) {
tprintf("%ld, ", tcp->u_arg[0]);
#ifdef HAVE_SENDMSG
int
-sys_sendmsg(tcp)
-struct tcb *tcp;
+sys_sendmsg(struct tcb *tcp)
{
if (entering(tcp)) {
tprintf("%ld, ", tcp->u_arg[0]);
#endif /* HAVE_SENDMSG */
int
-sys_recv(tcp)
-struct tcb *tcp;
+sys_recv(struct tcb *tcp)
{
if (entering(tcp)) {
tprintf("%ld, ", tcp->u_arg[0]);
}
int
-sys_recvfrom(tcp)
-struct tcb *tcp;
+sys_recvfrom(struct tcb *tcp)
{
int fromlen;
#ifdef HAVE_SENDMSG
int
-sys_recvmsg(tcp)
-struct tcb *tcp;
+sys_recvmsg(struct tcb *tcp)
{
if (entering(tcp)) {
tprintf("%ld, ", tcp->u_arg[0]);
};
int
-sys_shutdown(tcp)
-struct tcb *tcp;
+sys_shutdown(struct tcb *tcp)
{
if (entering(tcp)) {
tprintf("%ld, ", tcp->u_arg[0]);
}
int
-sys_getsockname(tcp)
-struct tcb *tcp;
+sys_getsockname(struct tcb *tcp)
{
return sys_accept(tcp);
}
int
-sys_getpeername(tcp)
-struct tcb *tcp;
+sys_getpeername(struct tcb *tcp)
{
return sys_accept(tcp);
}
}
#if defined(ICMP_FILTER)
-static void printicmpfilter(tcp, addr)
-struct tcb *tcp;
-long addr;
+static void printicmpfilter(struct tcb *tcp, long addr)
{
struct icmp_filter filter;
#endif /* ICMP_FILTER */
static int
-printsockopt (tcp, level, name, addr, len)
-struct tcb *tcp;
-int level;
-int name;
-long addr;
-int len;
+printsockopt(struct tcb *tcp, int level, int name, long addr, int len)
{
printxval(socketlayers, level, "SOL_??");
tprintf (", ");
#ifdef HAVE_STRUCT_OPTHDR
void
-print_sock_optmgmt (tcp, addr, len)
-struct tcb *tcp;
-long addr;
-int len;
+print_sock_optmgmt(struct tcb *tcp, long addr, int len)
{
int c = 0;
struct opthdr hdr;
#endif
int
-sys_setsockopt(tcp)
-struct tcb *tcp;
+sys_setsockopt(struct tcb *tcp)
{
if (entering(tcp)) {
tprintf("%ld, ", tcp->u_arg[0]);
int
-netlib_call(tcp, func)
-struct tcb *tcp;
-int (*func) ();
+netlib_call(struct tcb *tcp, int (*func)())
{
if (entering(tcp)) {
int i;
}
int
-sys_xsocket(tcp)
-struct tcb *tcp;
+sys_xsocket(struct tcb *tcp)
{
return netlib_call (tcp, sys_socket);
}
int
-sys_xsocketpair(tcp)
-struct tcb *tcp;
+sys_xsocketpair(struct tcb *tcp)
{
return netlib_call (tcp, sys_socketpair);
}
int
-sys_xbind(tcp)
-struct tcb *tcp;
+sys_xbind(struct tcb *tcp)
{
return netlib_call (tcp, sys_bind);
}
int
-sys_xconnect(tcp)
-struct tcb *tcp;
+sys_xconnect(struct tcb *tcp)
{
return netlib_call (tcp, sys_connect);
}
int
-sys_xlisten(tcp)
-struct tcb *tcp;
+sys_xlisten(struct tcb *tcp)
{
return netlib_call (tcp, sys_listen);
}
int
-sys_xaccept(tcp)
-struct tcb *tcp;
+sys_xaccept(struct tcb *tcp)
{
return netlib_call (tcp, sys_accept);
}
int
-sys_xsendmsg(tcp)
-struct tcb *tcp;
+sys_xsendmsg(struct tcb *tcp)
{
return netlib_call (tcp, sys_sendmsg);
}
int
-sys_xrecvmsg(tcp)
-struct tcb *tcp;
+sys_xrecvmsg(struct tcb *tcp)
{
return netlib_call (tcp, sys_recvmsg);
}
int
-sys_xgetsockaddr(tcp)
-struct tcb *tcp;
+sys_xgetsockaddr(struct tcb *tcp)
{
if (entering(tcp)) {
printxval (sock_version, tcp->u_arg[0], "__NETLIB_???");
}
int
-sys_xgetsockopt(tcp)
-struct tcb *tcp;
+sys_xgetsockopt(struct tcb *tcp)
{
return netlib_call (tcp, sys_getsockopt);
}
int
-sys_xsetsockopt(tcp)
-struct tcb *tcp;
+sys_xsetsockopt(struct tcb *tcp)
{
return netlib_call (tcp, sys_setsockopt);
}
int
-sys_xshutdown(tcp)
-struct tcb *tcp;
+sys_xshutdown(struct tcb *tcp)
{
return netlib_call (tcp, sys_shutdown);
}
};
int
-proc_ioctl(tcp, code, arg)
-struct tcb *tcp;
-int code, arg;
+proc_ioctl(struct tcb *tcp, int code, int arg)
{
int val;
prstatus_t status;
};
int
-proc_ioctl(tcp, code, arg)
-struct tcb *tcp;
-int code, arg;
+proc_ioctl(struct tcb *tcp, int code, int arg)
{
int val;
struct procfs_status status;
static const char *
-unalignctl_string (unsigned int ctl)
+unalignctl_string(unsigned int ctl)
{
static char buf[16];
int
-sys_prctl(tcp)
-struct tcb *tcp;
+sys_prctl(struct tcb *tcp)
{
int i;
#if defined(FREEBSD) || defined(SUNOS4) || defined(SVR4)
int
-sys_gethostid(tcp)
-struct tcb *tcp;
+sys_gethostid(struct tcb *tcp)
{
if (exiting(tcp))
return RVAL_HEX;
#endif /* FREEBSD || SUNOS4 || SVR4 */
int
-sys_sethostname(tcp)
-struct tcb *tcp;
+sys_sethostname(struct tcb *tcp)
{
if (entering(tcp)) {
printpathn(tcp, tcp->u_arg[0], tcp->u_arg[1]);
#if defined(ALPHA) || defined(FREEBSD) || defined(SUNOS4) || defined(SVR4)
int
-sys_gethostname(tcp)
-struct tcb *tcp;
+sys_gethostname(struct tcb *tcp)
{
if (exiting(tcp)) {
if (syserror(tcp))
#endif /* ALPHA || FREEBSD || SUNOS4 || SVR4 */
int
-sys_setdomainname(tcp)
-struct tcb *tcp;
+sys_setdomainname(struct tcb *tcp)
{
if (entering(tcp)) {
printpathn(tcp, tcp->u_arg[0], tcp->u_arg[1]);
#if !defined(LINUX)
int
-sys_getdomainname(tcp)
-struct tcb *tcp;
+sys_getdomainname(struct tcb *tcp)
{
if (exiting(tcp)) {
if (syserror(tcp))
#endif /* !LINUX */
int
-sys_exit(tcp)
-struct tcb *tcp;
+sys_exit(struct tcb *tcp)
{
if (exiting(tcp)) {
fprintf(stderr, "_exit returned!\n");
#if UNIXWARE > 2
int
-sys_rfork(tcp)
-struct tcb *tcp;
+sys_rfork(struct tcb *tcp)
{
if (entering(tcp)) {
tprintf ("%ld", tcp->u_arg[0]);
#endif
int
-internal_fork(tcp)
-struct tcb *tcp;
+internal_fork(struct tcb *tcp)
{
struct tcb *tcpchild;
# endif
int
-sys_clone(tcp)
-struct tcb *tcp;
+sys_clone(struct tcb *tcp)
{
if (exiting(tcp)) {
const char *sep = "|";
#endif /* LINUX */
int
-sys_fork(tcp)
-struct tcb *tcp;
+sys_fork(struct tcb *tcp)
{
if (exiting(tcp))
return RVAL_UDECIMAL;
#else /* !LINUX */
int
-internal_fork(tcp)
-struct tcb *tcp;
+internal_fork(struct tcb *tcp)
{
struct tcb *tcpchild;
int pid;
#if defined(SUNOS4) || defined(LINUX) || defined(FREEBSD)
int
-sys_vfork(tcp)
-struct tcb *tcp;
+sys_vfork(struct tcb *tcp)
{
if (exiting(tcp))
return RVAL_UDECIMAL;
static char idstr[16];
int
-sys_getpid(tcp)
-struct tcb *tcp;
+sys_getpid(struct tcb *tcp)
{
if (exiting(tcp)) {
sprintf(idstr, "ppid %lu", getrval2(tcp));
}
int
-sys_getuid(tcp)
-struct tcb *tcp;
+sys_getuid(struct tcb *tcp)
{
if (exiting(tcp)) {
sprintf(idstr, "euid %lu", getrval2(tcp));
}
int
-sys_getgid(tcp)
-struct tcb *tcp;
+sys_getgid(struct tcb *tcp)
{
if (exiting(tcp)) {
sprintf(idstr, "egid %lu", getrval2(tcp));
}
int
-sys_setuid(tcp)
-struct tcb *tcp;
+sys_setuid(struct tcb *tcp)
{
if (entering(tcp)) {
tprintf("%u", (uid_t) tcp->u_arg[0]);
}
int
-sys_setgid(tcp)
-struct tcb *tcp;
+sys_setgid(struct tcb *tcp)
{
if (entering(tcp)) {
tprintf("%u", (gid_t) tcp->u_arg[0]);
}
int
-sys_getresgid(tcp)
-struct tcb *tcp;
+sys_getresgid(struct tcb *tcp)
{
if (exiting(tcp)) {
__kernel_gid_t gid;
#endif /* LINUX */
int
-sys_setreuid(tcp)
-struct tcb *tcp;
+sys_setreuid(struct tcb *tcp)
{
if (entering(tcp)) {
printuid("", tcp->u_arg[0]);
}
int
-sys_setregid(tcp)
-struct tcb *tcp;
+sys_setregid(struct tcb *tcp)
{
if (entering(tcp)) {
printuid("", tcp->u_arg[0]);
#if defined(LINUX) || defined(FREEBSD)
int
-sys_setresuid(tcp)
- struct tcb *tcp;
+sys_setresuid(struct tcb *tcp)
{
if (entering(tcp)) {
printuid("", tcp->u_arg[0]);
return 0;
}
int
-sys_setresgid(tcp)
- struct tcb *tcp;
+sys_setresgid(struct tcb *tcp)
{
if (entering(tcp)) {
printuid("", tcp->u_arg[0]);
#endif /* LINUX || FREEBSD */
int
-sys_setgroups(tcp)
-struct tcb *tcp;
+sys_setgroups(struct tcb *tcp)
{
if (entering(tcp)) {
unsigned long len, size, start, cur, end, abbrev_end;
}
int
-sys_getgroups(tcp)
-struct tcb *tcp;
+sys_getgroups(struct tcb *tcp)
{
unsigned long len;
#ifdef LINUX
int
-sys_setgroups32(tcp)
-struct tcb *tcp;
+sys_setgroups32(struct tcb *tcp)
{
if (entering(tcp)) {
unsigned long len, size, start, cur, end, abbrev_end;
}
int
-sys_getgroups32(tcp)
-struct tcb *tcp;
+sys_getgroups32(struct tcb *tcp)
{
unsigned long len;
#if defined(ALPHA) || defined(SUNOS4) || defined(SVR4)
int
-sys_setpgrp(tcp)
-struct tcb *tcp;
+sys_setpgrp(struct tcb *tcp)
{
if (entering(tcp)) {
#ifndef SVR4
#endif /* ALPHA || SUNOS4 || SVR4 */
int
-sys_getpgrp(tcp)
-struct tcb *tcp;
+sys_getpgrp(struct tcb *tcp)
{
if (entering(tcp)) {
#ifndef SVR4
}
int
-sys_getsid(tcp)
-struct tcb *tcp;
+sys_getsid(struct tcb *tcp)
{
if (entering(tcp)) {
tprintf("%lu", tcp->u_arg[0]);
}
int
-sys_setsid(tcp)
-struct tcb *tcp;
+sys_setsid(struct tcb *tcp)
{
return 0;
}
int
-sys_getpgid(tcp)
-struct tcb *tcp;
+sys_getpgid(struct tcb *tcp)
{
if (entering(tcp)) {
tprintf("%lu", tcp->u_arg[0]);
}
int
-sys_setpgid(tcp)
-struct tcb *tcp;
+sys_setpgid(struct tcb *tcp)
{
if (entering(tcp)) {
tprintf("%lu, %lu", tcp->u_arg[0], tcp->u_arg[1]);
int
-sys_procpriv(tcp)
-struct tcb *tcp;
+sys_procpriv(struct tcb *tcp)
{
if (entering(tcp)) {
printxval(procpriv_cmds, tcp->u_arg[0], "???PRV");
#if UNIXWARE > 2
-int sys_rexecve(tcp)
-struct tcb *tcp;
+int sys_rexecve(struct tcb *tcp)
{
if (entering (tcp)) {
sys_execve (tcp);
#endif
static int
-printstatus(status)
-int status;
+printstatus(int status)
{
int exited = 0;
}
int
-internal_wait(tcp, flagarg)
-struct tcb *tcp;
-int flagarg;
+internal_wait(struct tcb *tcp, int flagarg)
{
int got_kids;
#ifdef SVR4
int
-sys_wait(tcp)
-struct tcb *tcp;
+sys_wait(struct tcb *tcp)
{
if (exiting(tcp)) {
/* The library wrapper stuffs this into the user variable. */
#ifdef FREEBSD
int
-sys_wait(tcp)
-struct tcb *tcp;
+sys_wait(struct tcb *tcp)
{
int status;
#endif
int
-sys_waitpid(tcp)
-struct tcb *tcp;
+sys_waitpid(struct tcb *tcp)
{
return printwaitn(tcp, 3, 0);
}
int
-sys_wait4(tcp)
-struct tcb *tcp;
+sys_wait4(struct tcb *tcp)
{
return printwaitn(tcp, 4, 0);
}
#ifdef ALPHA
int
-sys_osf_wait4(tcp)
-struct tcb *tcp;
+sys_osf_wait4(struct tcb *tcp)
{
return printwaitn(tcp, 4, 1);
}
#endif /* SVR4 or LINUX */
int
-sys_alarm(tcp)
-struct tcb *tcp;
+sys_alarm(struct tcb *tcp)
{
if (entering(tcp))
tprintf("%lu", tcp->u_arg[0]);
}
int
-sys_uname(tcp)
-struct tcb *tcp;
+sys_uname(struct tcb *tcp)
{
struct utsname uname;
#endif
static int
-copy_sigset_len(tcp, addr, s, len)
-struct tcb *tcp;
-long addr;
-sigset_t *s;
-int len;
+copy_sigset_len(struct tcb *tcp, long addr, sigset_t *s, int len)
{
if (len > sizeof(*s))
len = sizeof(*s);
* else return 0. This routine will never be called with SIGKILL.
*/
int
-sigishandled(tcp, sig)
-struct tcb *tcp;
-int sig;
+sigishandled(struct tcb *tcp, int sig)
{
#ifdef LINUX
int sfd;
#if defined(SUNOS4) || defined(FREEBSD)
int
-sys_sigvec(tcp)
-struct tcb *tcp;
+sys_sigvec(struct tcb *tcp)
{
struct sigvec sv;
long addr;
}
int
-sys_sigpause(tcp)
-struct tcb *tcp;
+sys_sigpause(struct tcb *tcp)
{
if (entering(tcp)) { /* WTA: UD had a bug here: he forgot the braces */
sigset_t sigm;
}
int
-sys_sigstack(tcp)
-struct tcb *tcp;
+sys_sigstack(struct tcb *tcp)
{
struct sigstack ss;
long addr;
}
int
-sys_sigcleanup(tcp)
-struct tcb *tcp;
+sys_sigcleanup(struct tcb *tcp)
{
return 0;
}
#ifndef SVR4
int
-sys_sigsetmask(tcp)
-struct tcb *tcp;
+sys_sigsetmask(struct tcb *tcp)
{
if (entering(tcp)) {
sigset_t sigm;
#if defined(SUNOS4) || defined(FREEBSD)
int
-sys_sigblock(tcp)
-struct tcb *tcp;
+sys_sigblock(struct tcb *tcp)
{
return sys_sigsetmask(tcp);
}
#endif
int
-sys_sigaction(tcp)
-struct tcb *tcp;
+sys_sigaction(struct tcb *tcp)
{
long addr;
#ifdef LINUX
}
int
-sys_signal(tcp)
-struct tcb *tcp;
+sys_signal(struct tcb *tcp)
{
if (entering(tcp)) {
printsignal(tcp->u_arg[0]);
#ifdef SVR4
int
-sys_sighold(tcp)
-struct tcb *tcp;
+sys_sighold(struct tcb *tcp)
{
if (entering(tcp)) {
printsignal(tcp->u_arg[0]);
}
int
-sys_siggetmask(tcp)
-struct tcb *tcp;
+sys_siggetmask(struct tcb *tcp)
{
if (exiting(tcp)) {
sigset_t sigm;
#if defined(SVR4) || defined(FREEBSD)
int
-sys_sigsuspend(tcp)
-struct tcb *tcp;
+sys_sigsuspend(struct tcb *tcp)
{
sigset_t sigset;
#ifdef SVR4
static void
-printcontext(tcp, ucp)
-struct tcb *tcp;
-ucontext_t *ucp;
+printcontext(struct tcb *tcp, ucontext_t *ucp)
{
tprintf("{");
if (!abbrev(tcp)) {
}
int
-sys_getcontext(tcp)
-struct tcb *tcp;
+sys_getcontext(struct tcb *tcp)
{
ucontext_t uc;
}
int
-sys_setcontext(tcp)
-struct tcb *tcp;
+sys_setcontext(struct tcb *tcp)
{
ucontext_t uc;
#if defined(LINUX) || defined(FREEBSD)
static int
-print_stack_t(tcp, addr)
-struct tcb *tcp;
-unsigned long addr;
+print_stack_t(struct tcb *tcp, unsigned long addr)
{
stack_t ss;
if (umove(tcp, addr, &ss) < 0)
}
int
-sys_sigaltstack(tcp)
- struct tcb *tcp;
+sys_sigaltstack(struct tcb *tcp)
{
if (entering(tcp)) {
if (tcp->u_arg[0] == 0)
#ifdef HAVE_SIGACTION
int
-sys_sigprocmask(tcp)
-struct tcb *tcp;
+sys_sigprocmask(struct tcb *tcp)
{
#ifdef ALPHA
if (entering(tcp)) {
#endif /* HAVE_SIGACTION */
int
-sys_kill(tcp)
-struct tcb *tcp;
+sys_kill(struct tcb *tcp)
{
if (entering(tcp)) {
/*
#if defined(FREEBSD) || defined(SUNOS4)
int
-sys_killpg(tcp)
-struct tcb *tcp;
+sys_killpg(struct tcb *tcp)
{
return sys_kill(tcp);
}
#ifdef LINUX
int
-sys_tgkill(tcp)
- struct tcb *tcp;
+sys_tgkill(struct tcb *tcp)
{
if (entering(tcp)) {
tprintf("%ld, %ld, %s",
#endif
int
-sys_sigpending(tcp)
-struct tcb *tcp;
+sys_sigpending(struct tcb *tcp)
{
sigset_t sigset;
}
#ifdef SVR4
-int sys_sigwait(tcp)
-struct tcb *tcp;
+int sys_sigwait(struct tcb *tcp)
{
sigset_t sigset;
#ifdef LINUX
- int
-sys_rt_sigprocmask(tcp)
- struct tcb *tcp;
+int
+sys_rt_sigprocmask(struct tcb *tcp)
{
sigset_t sigset;
static void
-print_addr(tcp, addr, ifr)
-struct tcb *tcp;
-long addr;
-struct ifreq *ifr;
+print_addr(struct tcb *tcp, long addr, struct ifreq *ifr)
{
if (ifr->ifr_addr.sa_family == AF_INET) {
struct sockaddr_in *sinp;
}
static void
-startup_child (char **argv)
+startup_child(char **argv)
{
struct stat statbuf;
const char *filename;
}
static struct tcb *
-pfd2tcb(pfd)
-int pfd;
+pfd2tcb(int pfd)
{
int i;
#endif /* USE_PROCFS */
void
-droptcb(tcp)
-struct tcb *tcp;
+droptcb(struct tcb *tcp)
{
if (tcp->pid == 0)
return;
#ifndef USE_PROCFS
static int
-resume(tcp)
-struct tcb *tcp;
+resume(struct tcb *tcp)
{
if (tcp == NULL)
return -1;
}
static int
-resume_from_tcp (struct tcb *tcp)
+resume_from_tcp(struct tcb *tcp)
{
int error = 0;
int resumed = 0;
would SIGSTOP it and wait for its SIGSTOP notification forever. */
static int
-detach(tcp, sig)
-struct tcb *tcp;
-int sig;
+detach(struct tcb *tcp, int sig)
{
int error = 0;
#ifdef LINUX
#endif /* USE_PROCFS */
static void
-cleanup()
+cleanup(void)
{
int i;
struct tcb *tcp;
}
static void
-interrupt(sig)
-int sig;
+interrupt(int sig)
{
interrupted = 1;
}
#endif /* HAVE_DECL_SYS_ERRLIST */
const char *
-strerror(err_no)
-int err_no;
+strerror(int err_no)
{
static char buf[64];
#endif
const char *
-strsignal(sig)
-int sig;
+strsignal(int sig)
{
static char buf[64];
#ifdef USE_PROCFS
static void
-rebuild_pollv()
+rebuild_pollv(void)
{
int i, j;
#ifndef HAVE_POLLABLE_PROCFS
static void
-proc_poll_open()
+proc_poll_open(void)
{
int i;
}
static int
-proc_poll(pollv, nfds, timeout)
-struct pollfd *pollv;
-int nfds;
-int timeout;
+proc_poll(struct pollfd *pollv, int nfds, int timeout)
{
int i;
int n;
}
static void
-wakeup_handler(sig)
-int sig;
+wakeup_handler(int sig)
{
}
static void
-proc_poller(pfd)
-int pfd;
+proc_poller(int pfd)
{
struct proc_pollfd pollinfo;
struct sigaction sa;
}
static int
-trace()
+trace(void)
{
#ifdef POLL_HACK
struct tcb *in_syscall = NULL;
}
void
-printleader(tcp)
-struct tcb *tcp;
+printleader(struct tcb *tcp)
{
if (tcp_last) {
if (tcp_last->ptrace_errno) {
}
void
-tabto(col)
-int col;
+tabto(int col)
{
if (curcol < col)
tprintf("%*s", col - curcol, "");
static void
-printstrbuf(tcp, sbp, getting)
-struct tcb *tcp;
-struct strbuf *sbp;
-int getting;
+printstrbuf(struct tcb *tcp, struct strbuf *sbp, int getting)
{
if (sbp->maxlen == -1 && getting)
tprintf("{maxlen=-1}");
}
static void
-printstrbufarg(tcp, arg, getting)
-struct tcb *tcp;
-int arg;
-int getting;
+printstrbufarg(struct tcb *tcp, int arg, int getting)
{
struct strbuf buf;
}
int
-sys_putmsg(tcp)
-struct tcb *tcp;
+sys_putmsg(struct tcb *tcp)
{
int i;
#if defined(SPARC) || defined(SPARC64) || defined(SUNOS4) || defined(SVR4)
int
-sys_getmsg(tcp)
-struct tcb *tcp;
+sys_getmsg(struct tcb *tcp)
{
int i, flags;
#ifdef SYS_putpmsg
int
-sys_putpmsg(tcp)
-struct tcb *tcp;
+sys_putpmsg(struct tcb *tcp)
{
int i;
#ifdef SYS_getpmsg
int
-sys_getpmsg(tcp)
-struct tcb *tcp;
+sys_getpmsg(struct tcb *tcp)
{
int i, flags;
#else /* !HAVE_SYS_POLL_H */
int
-sys_poll(tcp)
-struct tcb *tcp;
+sys_poll(struct tcb *tcp)
{
return 0;
}
void
-print_xti_optmgmt (tcp, addr, len)
-struct tcb *tcp;
-long addr;
-int len;
+print_xti_optmgmt(struct tcb *tcp, long addr, int len)
{
int c = 0;
struct t_opthdr hdr;
static void
-print_optmgmt (tcp, addr, len)
-struct tcb *tcp;
-long addr;
-int len;
+print_optmgmt(struct tcb *tcp, long addr, int len)
{
/* We don't know how to tell if TLI (socket) or XTI
optmgmt is being used yet, assume TLI. */
static int
-print_transport_message (tcp, expect, addr, len)
-struct tcb *tcp;
-int expect;
-long addr;
-int len;
+print_transport_message(struct tcb *tcp, int expect, long addr, int len)
{
union T_primitives m;
int c = 0;
}
int
-stream_ioctl(tcp, code, arg)
-struct tcb *tcp;
-int code, arg;
+stream_ioctl(struct tcb *tcp, int code, int arg)
{
#ifdef I_LIST
int i;
#if !(defined(LINUX) && ( defined(ALPHA) || defined(MIPS) || defined(__ARM_EABI__) ))
static void
-decode_subcall(tcp, subcall, nsubcalls, style)
-struct tcb *tcp;
-int subcall;
-int nsubcalls;
-enum subcall_style style;
+decode_subcall(struct tcb *tcp, int subcall, int nsubcalls, enum subcall_style style)
{
unsigned long addr, mask;
int i;
}
int
-force_result(tcp, error, rval)
- struct tcb *tcp;
- int error;
- long rval;
+force_result(struct tcb *tcp, int error, long rval)
{
#ifdef LINUX
# if defined(S390) || defined(S390X)
}
int
-printargs(tcp)
-struct tcb *tcp;
+printargs(struct tcb *tcp)
{
if (entering(tcp)) {
int i;
}
long
-getrval2(tcp)
-struct tcb *tcp;
+getrval2(struct tcb *tcp)
{
long val = -1;
* so if you see "indir" this program has gone astray.
*/
int
-sys_indir(tcp)
-struct tcb *tcp;
+sys_indir(struct tcb *tcp)
{
int i, scno, nargs;
};
int
-sys_personality(tcp)
-struct tcb *tcp;
+sys_personality(struct tcb *tcp)
{
if (entering(tcp))
printxval(personality_options, tcp->u_arg[0], "PER_???");
};
int
-sys_reboot(tcp)
-struct tcb *tcp;
+sys_reboot(struct tcb *tcp)
{
if (entering(tcp)) {
printflags(bootflags1, tcp->u_arg[0], "LINUX_REBOOT_MAGIC_???");
};
int
-sys_cacheflush(tcp)
-struct tcb *tcp;
+sys_cacheflush(struct tcb *tcp)
{
if (entering(tcp)) {
/* addr */
/*ARGSUSED*/
int
-sys_sync(tcp)
-struct tcb *tcp;
+sys_sync(struct tcb *tcp)
{
return 0;
}
};
int
-sys_reboot(tcp)
-struct tcb *tcp;
+sys_reboot(struct tcb *tcp)
{
if (entering(tcp)) {
printflags(bootflags, tcp->u_arg[0], "RB_???");
}
int
-sys_sysacct(tcp)
-struct tcb *tcp;
+sys_sysacct(struct tcb *tcp)
{
if (entering(tcp)) {
printstr(tcp, tcp->u_arg[0], -1);
}
int
-sys_swapon(tcp)
-struct tcb *tcp;
+sys_swapon(struct tcb *tcp)
{
if (entering(tcp)) {
printstr(tcp, tcp->u_arg[0], -1);
}
int
-sys_nfs_svc(tcp)
-struct tcb *tcp;
+sys_nfs_svc(struct tcb *tcp)
{
if (entering(tcp)) {
printsock(tcp, tcp->u_arg[0]);
};
int
-sys_mount(tcp)
-struct tcb *tcp;
+sys_mount(struct tcb *tcp)
{
char type[4];
}
int
-sys_unmount(tcp)
-struct tcb *tcp;
+sys_unmount(struct tcb *tcp)
{
if (entering(tcp)) {
printstr(tcp, tcp->u_arg[0], -1);
}
int
-sys_umount(tcp)
-struct tcb *tcp;
+sys_umount(struct tcb *tcp)
{
return sys_unmount(tcp);
}
int
-sys_auditsys(tcp)
-struct tcb *tcp;
+sys_auditsys(struct tcb *tcp)
{
/* XXX - no information available */
return printargs(tcp);
};
int
-sys_exportfs(tcp)
-struct tcb *tcp;
+sys_exportfs(struct tcb *tcp)
{
struct export e;
int i;
};
int
-sys_sysconf(tcp)
-struct tcb *tcp;
+sys_sysconf(struct tcb *tcp)
{
if (entering(tcp)) {
printxval(sysconflimits, tcp->u_arg[0], "_SC_???");
int
-sys_pathconf(tcp)
-struct tcb *tcp;
+sys_pathconf(struct tcb *tcp)
{
if (entering(tcp)) {
printstr(tcp, tcp->u_arg[0], -1);
}
int
-sys_fpathconf(tcp)
-struct tcb *tcp;
+sys_fpathconf(struct tcb *tcp)
{
if (entering(tcp)) {
tprintf("%lu, ", tcp->u_arg[0]);
};
int
-sys_sysconfig(tcp)
-struct tcb *tcp;
+sys_sysconfig(struct tcb *tcp)
{
if (entering(tcp))
printxval(sysconfig_options, tcp->u_arg[0], "_CONFIG_???");
};
int
-sys_sysinfo(tcp)
-struct tcb *tcp;
+sys_sysinfo(struct tcb *tcp)
{
if (entering(tcp)) {
printxval(sysinfo_options, tcp->u_arg[0], "SI_???");
};
int
-sys_syssgi(tcp)
-struct tcb *tcp;
+sys_syssgi(struct tcb *tcp)
{
int i;
};
int
-sys_mount(tcp)
-struct tcb *tcp;
+sys_mount(struct tcb *tcp)
{
if (entering(tcp)) {
printpath(tcp, tcp->u_arg[0]);
};
int
-sys_mount(tcp)
-struct tcb *tcp;
+sys_mount(struct tcb *tcp)
{
if (entering(tcp)) {
char fstyp [FSTYPSZ];
#else /* !UNIXWARE */
int
-sys_mount(tcp)
-struct tcb *tcp;
+sys_mount(struct tcb *tcp)
{
if (entering(tcp)) {
printpath(tcp, tcp->u_arg[0]);
int
-sys_capget(tcp)
-struct tcb *tcp;
+sys_capget(struct tcb *tcp)
{
static cap_user_header_t arg0 = NULL;
static cap_user_data_t arg1 = NULL;
}
int
-sys_capset(tcp)
-struct tcb *tcp;
+sys_capset(struct tcb *tcp)
{
static cap_user_header_t arg0 = NULL;
static cap_user_data_t arg1 = NULL;
#else
-int sys_capget(tcp)
-struct tcb *tcp;
+int sys_capget(struct tcb *tcp)
{
return printargs(tcp);
}
-int sys_capset(tcp)
-struct tcb *tcp;
+int sys_capset(struct tcb *tcp)
{
return printargs(tcp);
}
};
int
-sys_sysctl(tcp)
-struct tcb *tcp;
+sys_sysctl(struct tcb *tcp)
{
struct __sysctl_args info;
int *name;
return 0;
}
#else
-int sys_sysctl(tcp)
-struct tcb *tcp;
+int sys_sysctl(struct tcb *tcp)
{
return printargs(tcp);
}
#ifdef FREEBSD
#include <sys/sysctl.h>
-int sys___sysctl(tcp)
-struct tcb *tcp;
+int sys___sysctl(struct tcb *tcp)
{
int qoid[CTL_MAXNAME+2];
char ctl[1024];
};
int
-sys_getksym(tcp)
-struct tcb *tcp;
+sys_getksym(struct tcb *tcp)
{
if (entering (tcp)) {
printstr(tcp, tcp->u_arg[0], -1);
{ 0, NULL },
};
-int sys_ssisys (tcp)
-struct tcb *tcp;
+int sys_ssisys(struct tcb *tcp)
{
struct ssisys_iovec iov;
cls_nodeinfo_args_t cni;
{ 0, NULL }
};
-int sys_sysmips(tcp)
-struct tcb *tcp;
+int sys_sysmips(struct tcb *tcp)
{
if (entering(tcp)) {
printxval(sysmips_operations, tcp->u_arg[0], "???");
}
int
-sys_time(tcp)
-struct tcb *tcp;
+sys_time(struct tcb *tcp)
{
if (exiting(tcp)) {
#ifndef SVR4
}
int
-sys_stime(tcp)
-struct tcb *tcp;
+sys_stime(struct tcb *tcp)
{
if (exiting(tcp)) {
printnum(tcp, tcp->u_arg[0], "%ld");
}
int
-sys_gettimeofday(tcp)
-struct tcb *tcp;
+sys_gettimeofday(struct tcb *tcp)
{
if (exiting(tcp)) {
if (syserror(tcp)) {
#ifdef ALPHA
int
-sys_osf_gettimeofday(tcp)
-struct tcb *tcp;
+sys_osf_gettimeofday(struct tcb *tcp)
{
if (exiting(tcp)) {
if (syserror(tcp)) {
#endif
int
-sys_settimeofday(tcp)
-struct tcb *tcp;
+sys_settimeofday(struct tcb *tcp)
{
if (entering(tcp)) {
printtv(tcp, tcp->u_arg[0]);
#ifdef ALPHA
int
-sys_osf_settimeofday(tcp)
-struct tcb *tcp;
+sys_osf_settimeofday(struct tcb *tcp)
{
if (entering(tcp)) {
printtv_bitness(tcp, tcp->u_arg[0], BITNESS_32, 0);
#endif
int
-sys_adjtime(tcp)
-struct tcb *tcp;
+sys_adjtime(struct tcb *tcp)
{
if (entering(tcp)) {
printtv(tcp, tcp->u_arg[0]);
printitv_bitness((tcp), (addr), BITNESS_CURRENT)
int
-sys_getitimer(tcp)
-struct tcb *tcp;
+sys_getitimer(struct tcb *tcp)
{
if (entering(tcp)) {
printxval(which, tcp->u_arg[0], "ITIMER_???");
#ifdef ALPHA
int
-sys_osf_getitimer(tcp)
-struct tcb *tcp;
+sys_osf_getitimer(struct tcb *tcp)
{
if (entering(tcp)) {
printxval(which, tcp->u_arg[0], "ITIMER_???");
#endif
int
-sys_setitimer(tcp)
-struct tcb *tcp;
+sys_setitimer(struct tcb *tcp)
{
if (entering(tcp)) {
printxval(which, tcp->u_arg[0], "ITIMER_???");
#ifdef ALPHA
int
-sys_osf_setitimer(tcp)
-struct tcb *tcp;
+sys_osf_setitimer(struct tcb *tcp)
{
if (entering(tcp)) {
printxval(which, tcp->u_arg[0], "ITIMER_???");
};
int
-sys_clock_settime(tcp)
-struct tcb *tcp;
+sys_clock_settime(struct tcb *tcp)
{
if (entering(tcp)) {
printxval(clocknames, tcp->u_arg[0], "CLOCK_???");
}
int
-sys_clock_gettime(tcp)
-struct tcb *tcp;
+sys_clock_gettime(struct tcb *tcp)
{
if (entering(tcp)) {
printxval(clocknames, tcp->u_arg[0], "CLOCK_???");
}
int
-sys_clock_nanosleep(tcp)
-struct tcb *tcp;
+sys_clock_nanosleep(struct tcb *tcp)
{
if (entering(tcp)) {
printxval(clocknames, tcp->u_arg[0], "CLOCK_???");
}
int
-sys_timer_create(tcp)
-struct tcb *tcp;
+sys_timer_create(struct tcb *tcp)
{
if (entering(tcp)) {
printxval(clocknames, tcp->u_arg[0], "CLOCK_???");
}
int
-sys_timer_settime(tcp)
-struct tcb *tcp;
+sys_timer_settime(struct tcb *tcp)
{
if (entering(tcp)) {
tprintf("%#lx, ", tcp->u_arg[0]);
}
int
-sys_timer_gettime(tcp)
-struct tcb *tcp;
+sys_timer_gettime(struct tcb *tcp)
{
if (entering(tcp)) {
tprintf("%#lx, ", tcp->u_arg[0]);
}
static void
-print_rtc(tcp, rt)
-struct tcb *tcp;
-const struct rtc_time *rt;
+print_rtc(struct tcb *tcp, const struct rtc_time *rt)
{
tprintf("{tm_sec=%d, tm_min=%d, tm_hour=%d, "
"tm_mday=%d, tm_mon=%d, tm_year=%d, ",
}
int
-rtc_ioctl(tcp, code, arg)
-struct tcb *tcp;
-long code;
-long arg;
+rtc_ioctl(struct tcb *tcp, long code, long arg)
{
switch (code) {
case RTC_ALM_SET:
};
int
-sys_timerfd(tcp)
-struct tcb *tcp;
+sys_timerfd(struct tcb *tcp)
{
if (entering(tcp)) {
/* It does not matter that the kernel uses itimerspec. */
#endif
int
-tv_nz(a)
-struct timeval *a;
+tv_nz(struct timeval *a)
{
return a->tv_sec || a->tv_usec;
}
int
-tv_cmp(a, b)
-struct timeval *a, *b;
+tv_cmp(struct timeval *a, struct timeval *b)
{
if (a->tv_sec < b->tv_sec
|| (a->tv_sec == b->tv_sec && a->tv_usec < b->tv_usec))
}
double
-tv_float(tv)
-struct timeval *tv;
+tv_float(struct timeval *tv)
{
return tv->tv_sec + tv->tv_usec/1000000.0;
}
void
-tv_add(tv, a, b)
-struct timeval *tv, *a, *b;
+tv_add(struct timeval *tv, struct timeval *a, struct timeval *b)
{
tv->tv_sec = a->tv_sec + b->tv_sec;
tv->tv_usec = a->tv_usec + b->tv_usec;
}
void
-tv_sub(tv, a, b)
-struct timeval *tv, *a, *b;
+tv_sub(struct timeval *tv, struct timeval *a, struct timeval *b)
{
tv->tv_sec = a->tv_sec - b->tv_sec;
tv->tv_usec = a->tv_usec - b->tv_usec;
}
void
-tv_div(tv, a, n)
-struct timeval *tv, *a;
-int n;
+tv_div(struct timeval *tv, struct timeval *a, int n)
{
tv->tv_usec = (a->tv_sec % n * 1000000 + a->tv_usec + n / 2) / n;
tv->tv_sec = a->tv_sec / n + tv->tv_usec / 1000000;
}
void
-tv_mul(tv, a, n)
-struct timeval *tv, *a;
-int n;
+tv_mul(struct timeval *tv, struct timeval *a, int n)
{
tv->tv_usec = a->tv_usec * n;
tv->tv_sec = a->tv_sec * n + tv->tv_usec / 1000000;
* return # of flags printed.
*/
int
-addflags(xlat, flags)
-const struct xlat *xlat;
-int flags;
+addflags(const struct xlat *xlat, int flags)
{
int n;
}
void
-printuid(text, uid)
-const char *text;
-unsigned long uid;
+printuid(const char *text, unsigned long uid)
{
tprintf("%s", text);
tprintf((uid == -1) ? "%ld" : "%lu", uid);
#if HAVE_SYS_UIO_H
void
-dumpiov(tcp, len, addr)
-struct tcb * tcp;
-int len;
-long addr;
+dumpiov(struct tcb *tcp, int len, long addr)
{
#if defined(LINUX) && SUPPORTED_PERSONALITIES > 1
union {
#endif
void
-dumpstr(tcp, addr, len)
-struct tcb *tcp;
-long addr;
-int len;
+dumpstr(struct tcb *tcp, long addr, int len)
{
static int strsize = -1;
static unsigned char *str;
#ifdef SUNOS4
static int
-uload(cmd, pid, addr, len, laddr)
-int cmd;
-int pid;
-long addr;
-int len;
-char *laddr;
+uload(int cmd, int pid, long addr, int len, char *laddr)
{
int peek, poke;
int n, m;
}
int
-tload(pid, addr, len, laddr)
-int pid;
-int addr, len;
-char *laddr;
+tload(int pid, int addr, int len, char *laddr)
{
return uload(PTRACE_WRITETEXT, pid, addr, len, laddr);
}
int
-dload(pid, addr, len, laddr)
-int pid;
-int addr;
-int len;
-char *laddr;
+dload(int pid, int addr, int len, char *laddr)
{
return uload(PTRACE_WRITEDATA, pid, addr, len, laddr);
}
#ifndef USE_PROCFS
int
-upeek(tcp, off, res)
-struct tcb *tcp;
-long off;
-long *res;
+upeek(struct tcb *tcp, long off, long *res)
{
long val;
# ifdef SYS_fork
static int
-get_arg0 (struct tcb *tcp, arg_setup_state *state, long *valp)
+get_arg0(struct tcb *tcp, arg_setup_state *state, long *valp)
{
int ret;
}
static int
-get_arg1 (struct tcb *tcp, arg_setup_state *state, long *valp)
+get_arg1(struct tcb *tcp, arg_setup_state *state, long *valp)
{
int ret;
# endif
static int
-set_arg0 (struct tcb *tcp, arg_setup_state *state, long val)
+set_arg0(struct tcb *tcp, arg_setup_state *state, long val)
{
int req = PTRACE_POKEDATA;
void *ap;
}
static int
-set_arg1 (struct tcb *tcp, arg_setup_state *state, long val)
+set_arg1(struct tcb *tcp, arg_setup_state *state, long val)
{
int req = PTRACE_POKEDATA;
void *ap;
(upeek ((tcp), arg1_offset, (valp)))
static int
-set_arg0 (struct tcb *tcp, void *cookie, long val)
+set_arg0(struct tcb *tcp, void *cookie, long val)
{
return ptrace (PTRACE_POKEUSER, tcp->pid, (char*)arg0_offset, val);
}
static int
-set_arg1 (struct tcb *tcp, void *cookie, long val)
+set_arg1(struct tcb *tcp, void *cookie, long val)
{
return ptrace (PTRACE_POKEUSER, tcp->pid, (char*)arg1_offset, val);
}
}
int
-clearbpt(tcp)
-struct tcb *tcp;
+clearbpt(struct tcb *tcp)
{
arg_setup_state state;
if (arg_setup (tcp, &state) < 0
# else /* !defined LINUX */
int
-setbpt(tcp)
-struct tcb *tcp;
+setbpt(struct tcb *tcp)
{
# ifdef SUNOS4
# ifdef SPARC /* This code is slightly sparc specific */
}
int
-clearbpt(tcp)
-struct tcb *tcp;
+clearbpt(struct tcb *tcp)
{
# ifdef SUNOS4
# ifdef SPARC
#ifdef SUNOS4
static int
-getex(tcp, hdr)
-struct tcb *tcp;
-struct exec *hdr;
+getex(struct tcb *tcp, struct exec *hdr)
{
int n;
}
int
-fixvfork(tcp)
-struct tcb *tcp;
+fixvfork(struct tcb *tcp)
{
int pid = tcp->pid;
/*