/usr/include/NTL/fileio.h is in libntl-dev 9.9.1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | #ifndef NTL_fileio__H
#define NTL_fileio__H
#include <NTL/tools.h>
#include <NTL/vector.h>
#include <fstream>
#include <string>
NTL_OPEN_NNS
class FileList {
private:
Vec< Vec<char> > data;
FileList(const FileList&); // disable
void operator=(const FileList&); // disable
public:
FileList() { }
void AddFile(const char *name);
void RemoveLast();
~FileList();
};
void OpenWrite(NTL_SNS ofstream& s, const char *name);
// opens file for writing...aborts if fails
void OpenWrite(NTL_SNS ofstream& s, const char *name, FileList& flist);
// opens file for writing and adds name to flist
void OpenRead(NTL_SNS ifstream& s, const char *name);
// opens file for reading
void CloseWrite(NTL_SNS ofstream& s);
// closes s, checks for failure
const char *FileName(const char* stem, long d);
// builds the name from stem-DDDDD, returns pointer to buffer
const NTL_SNS string& UniqueID();
// ideally, a unique ID (across all processes and threads),
// but it may not be perfect (useful for generating unique
// file names and seeding PRG).
NTL_CLOSE_NNS
#endif
|