xref: /freebsd/contrib/ntp/sntp/tests/fileHandlingTest.h.in (revision f5f40dd63bc7acbb5312b26ac1ea1103c12352a6)
1*f5f40dd6SCy Schubert/*
2*f5f40dd6SCy Schubert * fileHandlingTest.h[.in]
3*f5f40dd6SCy Schubert *
4*f5f40dd6SCy Schubert * @configure_input@
5*f5f40dd6SCy Schubert */
6*f5f40dd6SCy Schubert
7276da39aSCy Schubert#ifndef FILE_HANDLING_TEST_H
8276da39aSCy Schubert#define FILE_HANDLING_TEST_H
9276da39aSCy Schubert
109034852cSGleb Smirnoff#include "config.h"
11276da39aSCy Schubert#include "stdlib.h"
12276da39aSCy Schubert#include "sntptest.h"
13276da39aSCy Schubert
14276da39aSCy Schubert#include <string.h>
15276da39aSCy Schubert#include <unistd.h>
16276da39aSCy Schubert
17276da39aSCy Schubert
18276da39aSCy Schubertenum DirectoryType {
19276da39aSCy Schubert	INPUT_DIR = 0,
20276da39aSCy Schubert	OUTPUT_DIR = 1
21276da39aSCy Schubert};
22276da39aSCy Schubert
239034852cSGleb Smirnoff#define SRCDIR_DEF "@abs_srcdir@/data/";
24276da39aSCy Schubert
2568ba7e87SXin LIextern	const char * 	CreatePath(const char* filename,
2668ba7e87SXin LI				   enum DirectoryType argument);
2768ba7e87SXin LIextern	void		DestroyPath(const char* pathname);
2868ba7e87SXin LIextern	int		GetFileSize(FILE *file);
2968ba7e87SXin LIextern	bool		CompareFileContent(FILE* expected, FILE* actual);
3068ba7e87SXin LIextern	void		ClearFile(const char * filename) ;
31276da39aSCy Schubert
32*f5f40dd6SCy Schubert#endif	/* FILE_HANDLING_TEST_H */
33