freebsd-skq/contrib/ntp/sntp/tests/fileHandlingTest.h.in
delphij 51765b7c6f MFV r294491: ntp 4.2.8p6.
Security:	CVE-2015-7973, CVE-2015-7974, CVE-2015-7975
Security:	CVE-2015-7976, CVE-2015-7977, CVE-2015-7978
Security:	CVE-2015-7979, CVE-2015-8138, CVE-2015-8139
Security:	CVE-2015-8140, CVE-2015-8158
With hat:	so
2016-01-22 07:32:39 +00:00

27 lines
582 B
C

#ifndef FILE_HANDLING_TEST_H
#define FILE_HANDLING_TEST_H
#include "config.h"
#include "stdlib.h"
#include "sntptest.h"
#include <string.h>
#include <unistd.h>
enum DirectoryType {
INPUT_DIR = 0,
OUTPUT_DIR = 1
};
#define SRCDIR_DEF "@abs_srcdir@/data/";
extern const char * CreatePath(const char* filename,
enum DirectoryType argument);
extern void DestroyPath(const char* pathname);
extern int GetFileSize(FILE *file);
extern bool CompareFileContent(FILE* expected, FILE* actual);
extern void ClearFile(const char * filename) ;
#endif // FILE_HANDLING_TEST_H