aboutsummaryrefslogtreecommitdiffstats
path: root/tools/audump.c
diff options
context:
space:
mode:
authorChristian Brueffer <brueffer@FreeBSD.org>2016-12-06 14:25:52 +0000
committerChristian Brueffer <brueffer@FreeBSD.org>2016-12-06 14:25:52 +0000
commit47192295e7ee42c5e669dfdb5cb146bc87a63fe5 (patch)
treef9018775a034e965a29358c2c45d379973a6145a /tools/audump.c
parent97aa9e7383bb228ff968ff77101bfa4b68358784 (diff)
downloadsrc-47192295e7ee42c5e669dfdb5cb146bc87a63fe5.tar.gz
src-47192295e7ee42c5e669dfdb5cb146bc87a63fe5.zip
Vendor import of OpenBSM 1.2-alpha5.vendor/openbsm/1.2-ALPHA-5
Notes
Notes: svn path=/vendor/openbsm/dist/; revision=309620 svn path=/vendor/openbsm/1.2-ALPHA-5/; revision=309621; tag=vendor/openbsm/1.2-ALPHA-5
Diffstat (limited to 'tools/audump.c')
-rw-r--r--tools/audump.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/tools/audump.c b/tools/audump.c
index cdb8ed1165a6..6f74b8e03fb4 100644
--- a/tools/audump.c
+++ b/tools/audump.c
@@ -1,7 +1,12 @@
/*-
- * Copyright (c) 2005-2009 Robert N. M. Watson
+ * Copyright (c) 2005-2009, 2016 Robert N. M. Watson
* All rights reserved.
*
+ * Portions of this software were developed by BAE Systems, the University of
+ * Cambridge Computer Laboratory, and Memorial University under DARPA/AFRL
+ * contract FA8650-15-C-7558 ("CADETS"), as part of the DARPA Transparent
+ * Computing (TC) research program.
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -76,7 +81,7 @@ static void
audump_control(void)
{
char string[PATH_MAX], string2[PATH_MAX];
- int ret, val;
+ int ret, val, qsz;
long policy;
time_t age;
size_t size;
@@ -135,6 +140,13 @@ audump_control(void)
printf("filesz:%ldB\n", size);
+ ret = getacqsize(&qsz);
+ if (ret == -2)
+ err(-1, "getacqsize");
+ if (ret != 0)
+ err(-1, "getacqzize: %d", ret);
+
+ printf("qsize:%d\n", qsz);
ret = getachost(string, PATH_MAX);
if (ret == -2)