]> CyberLeo.Net >> Repos - FreeBSD/releng/9.3.git/blob - contrib/ntp/sntp/tests/fileHandlingTest.h.in
Fix BIND remote denial of service vulnerability. [SA-16:08]
[FreeBSD/releng/9.3.git] / contrib / ntp / sntp / tests / fileHandlingTest.h.in
1 #ifndef FILE_HANDLING_TEST_H
2 #define FILE_HANDLING_TEST_H
3
4 #include "config.h"
5 #include "stdlib.h"
6 #include "sntptest.h"
7
8 #include <string.h>
9 #include <unistd.h>
10
11
12 enum DirectoryType {
13         INPUT_DIR = 0,
14         OUTPUT_DIR = 1
15 };
16
17 #define SRCDIR_DEF "@abs_srcdir@/data/";
18
19 extern  const char *    CreatePath(const char* filename,
20                                    enum DirectoryType argument);
21 extern  void            DestroyPath(const char* pathname);
22 extern  int             GetFileSize(FILE *file);
23 extern  bool            CompareFileContent(FILE* expected, FILE* actual);
24 extern  void            ClearFile(const char * filename) ;
25
26 #endif // FILE_HANDLING_TEST_H