#include <lib/hsm.h>
+#include <unistd.h>
#include <string.h>
#include <malloc.h>
#include <getopt.h>
#include <unistd.h>
#include <stdarg.h>
+#include <ctype.h>
#include <lib/hsm.h>
*/
#include <lib/hsm.h>
+#include <string.h>
/*---------------------------------------------------------------------------
#include <lib/hsm.h>
+#include <unistd.h>
#include <getopt.h>
#include <string.h>
+#include <fcntl.h>
+
/*---------------------------------------------------------------------------
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "global.h"
+#include <stdarg.h>
#include <sys/uio.h> /* for struct iovec (readv)*/
#include <sys/mman.h> /* for mmap(2) */
#include <sys/ipc.h> /* for i/o buffer in shared memory */
* Test bulkstat doesn't returned unlinked inodes.
* Mark Goodwin <markgw@sgi.com> Fri Jul 20 09:13:57 EST 2007
*/
+#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <xfs/xfs.h>
#include <unistd.h>
#include <getopt.h>
+#include <string.h>
int
main(int argc, char *argv[])
* This is a modified version of bulkstat_unlink_test.c to reproduce a specific
* problem see pv 969192
*/
+#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <xfs/xfs.h>
#include <unistd.h>
+#include <string.h>
int
main(int argc, char *argv[])
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <xfs/xfs.h>
char **argv;
{
int fd, err, elapsed;
- char *buf, *goodbuf;
+ char *buf = NULL, *goodbuf = NULL;
time_t starttime;
char *filename="testfile";
- int c;
+ int c;
-if(argc != 3)
- { printf("Usage: trunc -f testfilename\n");
- exit(1);
+ if (argc != 3) {
+ printf("Usage: trunc -f testfilename\n");
+ exit(1);
}
-while((c=getopt(argc,argv,"f:"))!=EOF) {
+ while((c=getopt(argc,argv,"f:"))!=EOF) {
switch (c) {
case 'f':
filename = optarg;
+#include <stdlib.h>
+#include <string.h>
#include <sys/types.h>
#include <fcntl.h>
#include <errno.h>
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
#include <sys/stat.h>
+#include <sys/types.h>
+#include <fcntl.h>
#include <xfs/xfs.h>
#include <xfs/jdm.h>