#include <ktrace.h>
#include <assert.h>
-#include <sys/types.h>
-#include <sys/param.h>
-#include <sys/time.h>
-#include <sys/ioctl.h>
-#include <sys/socket.h>
-#include <sys/mman.h>
#include <sys/disk.h>
-#include <sys/file.h>
#include <sys/fcntl.h>
+#include <sys/file.h>
+#include <sys/ioctl.h>
+#include <sys/mman.h>
+#include <sys/param.h>
+#include <sys/socket.h>
+#include <sys/syslimits.h>
+#include <sys/time.h>
+#include <sys/types.h>
#import <mach/clock_types.h>
#import <mach/mach_time.h>
if (pid < 0)
return;
+ if (fd > OPEN_MAX)
+ return;
pfs = pfs_get(pid);
newsize = MAX((fd + CHAR_BIT) / CHAR_BIT, 2 * pfs->setsize);
pfs->set = reallocf(pfs->set, newsize);
- assert(pfs->set);
+ assert(pfs->set != NULL);
bzero(pfs->set + pfs->setsize, newsize - pfs->setsize);
pfs->setsize = newsize;
set_remove();
}
}
+ endwin();
+
printf("latency: ");
if (s) {
printf("%s", s);
/*
* Build the nm command and create a tmp file with the output
*/
- sprintf (tmpstr, "/usr/bin/nm -f -n -s __TEXT __text %s > %s",
+ sprintf (tmpstr, "/usr/bin/nm -n %s -s __TEXT __text > %s",
kernelpath, tmp_nm_file);
system(tmpstr);
BACC1D341377B58A007728F4 /* PBXTargetDependency */,
BACC1D361377B58A007728F4 /* PBXTargetDependency */,
BACC1D3A1377B58A007728F4 /* PBXTargetDependency */,
+ 8E556A4B1D3FF7A40038D48B /* PBXTargetDependency */,
);
name = All_iOS;
productName = All_iOS;
remoteGlobalIDString = 78DE9DDF1B5045DE00FE6DF5;
remoteInfo = wait4path;
};
+ 8E556A4A1D3FF7A40038D48B /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = BA2DE9181372FA9100D1913C /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 8EC3915B1C9733C2001E28E6;
+ remoteInfo = proc_uuid_policy;
+ };
8EC3916D1C973440001E28E6 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = BA2DE9181372FA9100D1913C /* Project object */;
target = 78DE9DDF1B5045DE00FE6DF5 /* wait4path */;
targetProxy = 78DE9DF91B504D1200FE6DF5 /* PBXContainerItemProxy */;
};
+ 8E556A4B1D3FF7A40038D48B /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 8EC3915B1C9733C2001E28E6 /* proc_uuid_policy */;
+ targetProxy = 8E556A4A1D3FF7A40038D48B /* PBXContainerItemProxy */;
+ };
8EC3916E1C973440001E28E6 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 8EC3915B1C9733C2001E28E6 /* proc_uuid_policy */;