summaryrefslogtreecommitdiff
path: root/stream.c
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2006-12-13 16:59:44 +0000
committerDmitry V. Levin <ldv@altlinux.org>2006-12-13 16:59:44 +0000
commitb9fe011cdfb0a3014e68a6e82007b6c2703a340b (patch)
treeda41db3ae096ef0da92b22affda41f5e4a287117 /stream.c
parent35a55785ea8ff44d214af52085e3a5ea624730aa (diff)
downloadstrace-b9fe011cdfb0a3014e68a6e82007b6c2703a340b.tar.gz
strace-b9fe011cdfb0a3014e68a6e82007b6c2703a340b.tar.bz2
strace-b9fe011cdfb0a3014e68a6e82007b6c2703a340b.tar.xz
2006-12-10 Dmitry V. Levin <ldv@altlinux.org>
Make several global variables static. #ifdef definitions of rarely unused functions. * defs.h (rflag, tflag, outfname): Remove. * strace.c (iflag, interactive, pflag_seen, rflag, tflag, outfname, username): Make static. * desc.c (sys_getdtablesize): Define only for ALPHA || FREEBSD || SUNOS4. * file.c (sys_fchroot): Define only for SUNOS4 || SVR4. (sys_mkfifo): Define only for FREEBSD. * mem.c (sys_sbrk): Define only for FREEBSD || SUNOS4. (sys_getpagesize): Define only for ALPHA || FREEBSD || IA64 || SUNOS4 || SVR4. * net.c (sys_so_socket): Define only for SVR4. * process.c (sys_gethostid): Define only for FREEBSD || SUNOS4 || SVR4. (sys_gethostname): Define only for ALPHA || FREEBSD || SUNOS4 || SVR4. (sys_setpgrp): Define only for ALPHA || SUNOS4 || SVR4. (sys_execv): Define only for SPARC || SPARC64 || SUNOS4. * signal.c (sys_sigblock): Define only for FREEBSD || SUNOS4. (sys_sighold, sys_sigwait): Define only for SVR4. (sys_killpg): Define only for FREEBSD || SUNOS4. * stream.c (sys_getmsg): Define only for SPARC || SPARC64 || SUNOS4 || SVR4. * syscall.c (sys_indir): Define only for SUNOS4.
Diffstat (limited to 'stream.c')
-rw-r--r--stream.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/stream.c b/stream.c
index eb72d62..9c24ad6 100644
--- a/stream.c
+++ b/stream.c
@@ -129,6 +129,7 @@ struct tcb *tcp;
return 0;
}
+#if defined(SPARC) || defined(SPARC64) || defined(SUNOS4) || defined(SVR4)
int
sys_getmsg(tcp)
struct tcb *tcp;
@@ -175,6 +176,7 @@ struct tcb *tcp;
}
return RVAL_HEX | RVAL_STR;
}
+#endif /* SPARC || SPARC64 || SUNOS4 || SVR4 */
#if defined SYS_putpmsg || defined SYS_getpmsg
static const struct xlat pmsgflags[] = {