summaryrefslogtreecommitdiff
path: root/scope.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-30 20:19:44 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-30 20:19:44 -0700
commite259c7ec60a84280dbf7e2cf041a6fec79f53e1f (patch)
treeb0f908a9f23fa54a6a4a55bef2c731d4992c9362 /scope.h
parentfcb83e31a0dfd85e4ec105dd656ed405e64c387b (diff)
downloadxscope-e259c7ec60a84280dbf7e2cf041a6fec79f53e1f.tar.gz
Make FDinfo dynamically allocated
We still allocate one fdinfo struct for every possible FD up front instead of resizing as needed, but they're much smaller now that we just have a pointer to the 32k buffer instead of including it directly in the fdinfo. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'scope.h')
-rw-r--r--scope.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/scope.h b/scope.h
index 360cdc5..d14cfed 100644
--- a/scope.h
+++ b/scope.h
@@ -117,7 +117,7 @@ struct fdinfo
Boolean writeblocked;
};
-extern struct fdinfo FDinfo[StaticMaxFD];
+extern struct fdinfo *FDinfo;
extern int littleEndian;
extern char HandleSIGUSR1;
extern char Leader[];