/usr/include/gnash/tu_file.h is in gnash-dev 0.8.11~git20160109-1build1.
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 | // tu_file.h -- Ignacio CastaƱo, Thatcher Ulrich 2003
// This source code has been donated to the Public Domain. Do
// whatever you want with it.
// A very generic file class that can be customized with callbacks.
#ifndef TU_FILE_H
#define TU_FILE_H
#include <cstdio>
#include <memory>
#include "dsodefs.h"
namespace gnash {
class IOChannel;
}
namespace gnash {
/// \brief
/// Creates an IOChannel wrapper around a C stream.
//
/// @param fp A C stream
///
/// @param close Whether the C stream should be automatically closed.
DSOEXPORT std::unique_ptr<IOChannel> makeFileChannel(FILE* fp, bool close);
/// \brief
/// Creates an IOChannel by opening the given file in the given mode.
//
/// @param filepath A path to a file in the local filesystem.
///
/// @param mode The mode the file should be opened in, such as "rb" "w+b" (see
/// std::fopen)
///
/// @return An IOChannel or NULL if the file could not be opened.
DSOEXPORT std::unique_ptr<IOChannel> makeFileChannel(const char* filepath, const char* mode);
} // namespace gnash
#endif
// Local Variables:
// mode: C++
// indent-tabs-mode: t
// End:
|