summaryrefslogtreecommitdiff
path: root/stream.c
diff options
context:
space:
mode:
authorWichert Akkerman <wichert@deephackmode.org>2000-02-19 23:59:03 +0000
committerWichert Akkerman <wichert@deephackmode.org>2000-02-19 23:59:03 +0000
commitfaf722234dc8af97776f94fdda7e100fb60650a2 (patch)
tree251e26e548d2e4c3cb9c6dce4af4a374e7732dcc /stream.c
parent2ee6e45f36566e8735b35ffad40bfcc626a25a98 (diff)
downloadstrace-faf722234dc8af97776f94fdda7e100fb60650a2.tar.gz
strace-faf722234dc8af97776f94fdda7e100fb60650a2.tar.bz2
strace-faf722234dc8af97776f94fdda7e100fb60650a2.tar.xz
test/vfork.c: new file to test vfork traces
test/.cvsignore: new file defs.h: Up maximum number of traced processed to 64 strace.c: Disable some debugging code from davidm implement setarg for more architectures implement change_syscall
Diffstat (limited to 'stream.c')
-rw-r--r--stream.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/stream.c b/stream.c
index 35b3ecc..0cc14a0 100644
--- a/stream.c
+++ b/stream.c
@@ -254,6 +254,8 @@ struct tcb *tcp;
#endif /* HAVE_PUTPMSG */
+#ifdef HAVE_SYS_POLL_H
+
static struct xlat pollflags[] = {
#ifdef POLLIN
{ POLLIN, "POLLIN" },
@@ -284,7 +286,6 @@ struct tcb *tcp;
{
struct pollfd *pollp;
-#ifdef HAVE_SYS_POLL_H
if (exiting(tcp)) {
int i;
int nfds = tcp->u_arg[1];
@@ -336,10 +337,18 @@ struct tcb *tcp;
tprintf("%ld", tcp->u_arg[2]);
free(pollp);
}
-#endif
return 0;
}
+#else /* !HAVE_SYS_POLL_H */
+int
+sys_poll(tcp)
+struct tcb *tcp;
+{
+ return 0;
+}
+#endif
+
#ifndef linux
static struct xlat stream_flush_options[] = {