/usr/include/cln/io.h is in libcln-dev 1.3.4-1.
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 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | // I/O through <iostream>
#ifndef _CL_IO_H
#define _CL_IO_H
#include "cln/types.h"
#include "cln/modules.h"
// I/O through <iostream>
#ifdef floor
#undef floor
#include <iostream>
#define floor cln_floor
#else
#include <iostream>
#endif
namespace cln {
// compatibility:
typedef std::istream& cl_istream;
typedef std::ostream& cl_ostream;
extern std::ostream* cl_debugout_stream;
#define cl_debugout (*cl_debugout_stream)
// Elementary operations on std::ostream&
inline void fprintchar (std::ostream& stream, char c)
{
stream.put(c);
}
inline void fprint (std::ostream& stream, const char * string)
{
stream << string;
}
extern void fprintdecimal (std::ostream& stream, unsigned long x);
extern void fprintdecimal (std::ostream& stream, long x);
inline void fprintdecimal (std::ostream& stream, unsigned int x)
{
fprintdecimal(stream,(unsigned long)x);
}
inline void fprintdecimal (std::ostream& stream, int x)
{
fprintdecimal(stream,(long)x);
}
extern void fprinthexadecimal (std::ostream& stream, unsigned long x);
extern void fprinthexadecimal (std::ostream& stream, long x);
inline void fprinthexadecimal (std::ostream& stream, unsigned int x)
{
fprinthexadecimal(stream,(unsigned long)x);
}
inline void fprinthexadecimal (std::ostream& stream, int x)
{
fprinthexadecimal(stream,(long)x);
}
struct cl_print_flags;
struct cl_print_number_flags;
struct cl_print_real_flags;
struct cl_print_rational_flags;
struct cl_print_float_flags;
class cl_prin_globals_init_helper
{
static int count;
public:
cl_prin_globals_init_helper();
~cl_prin_globals_init_helper();
};
static cl_prin_globals_init_helper cl_prin_globals_init_helper_instance;
// Define the customary << and >> operators.
#define CL_DEFINE_PRINT_OPERATOR(_class_) \
inline std::ostream& operator<< (std::ostream& stream, const _class_& x) \
{ \
fprint(stream,x); \
return stream; \
}
} // namespace cln
#endif /* _CL_IO_H */
|