]> git.saurik.com Git - apple/security.git/blob - OSX/sec/SOSCircle/Tool/secToolFileIO.h
Security-57337.40.85.tar.gz
[apple/security.git] / OSX / sec / SOSCircle / Tool / secToolFileIO.h
1 //
2 // secToolFileIO.h
3 // sec
4 //
5 // Created by Richard Murphy on 1/22/16.
6 //
7 //
8
9 #ifndef secToolFileIO_h
10 #define secToolFileIO_h
11
12 #include <stdio.h>
13 #include <stdlib.h>
14 #include <string.h>
15 #include <unistd.h>
16 #include <sys/utsname.h>
17 #include <time.h>
18 #include <CoreFoundation/CoreFoundation.h>
19
20 #define printmsg(format, ...) _printcfmsg(outFile, NULL, format, __VA_ARGS__)
21 #define printmsgWithFormatOptions(formatOptions, format, ...) _printcfmsg(outFile, formatOptions, format, __VA_ARGS__)
22 #define printerr(format, ...) _printcfmsg(errFile, NULL, format, __VA_ARGS__)
23
24 extern FILE *outFile;
25 extern FILE *errFile;
26
27 void _printcfmsg(FILE *ff, CFDictionaryRef formatOptions, CFStringRef format, ...);
28
29 int setOutputTo(char *dir, char *filename);
30
31 void closeOutput(void);
32
33 int copyFileToOutputDir(char *dir, char *toCopy);
34
35 #endif /* secToolFileIO_h */