8 #ifndef secToolFileIO_h
9 #define secToolFileIO_h
15 #include <sys/utsname.h>
17 #include <CoreFoundation/CoreFoundation.h>
19 #define printmsg(format, ...) _printcfmsg(outFile, NULL, format, ##__VA_ARGS__)
20 #define printmsgWithFormatOptions(formatOptions, format, ...) _printcfmsg(outFile, formatOptions, format, ##__VA_ARGS__)
21 #define printerr(format, ...) _printcfmsg(errFile, NULL, format, ##__VA_ARGS__)
26 void _printcfmsg(FILE *ff
, CFDictionaryRef formatOptions
, CFStringRef format
, ...);
28 int SOSLogSetOutputTo(char *dir
, char *filename
);
30 void closeOutput(void);
32 int copyFileToOutputDir(char *dir
, char *toCopy
);
34 #endif /* secToolFileIO_h */