summaryrefslogblamecommitdiff
path: root/src/user/lib/fwik/include/IO/Node.h
blob: ed8290f857b5a07f6b97159763abfc4efdbbec7e (plain) (tree)
1
2
3
4
5
6
7
8
9
10







                          

                   







                       
                                             






                                             

                                                                              
      
#ifndef DEF_FWIK_IO_NODE_H
#define DEF_FWIK_IO_NODE_H

#include <tce/syscall.h>
#include <tce/vfs.h>
#include <stdio.h>
#include <cpp.h>

#include <String.h>

class Term;
class Node {
	public:
	FILE fd;
	file_info info;
	bool valid;

	Node(FILE f);
	Node(const char* filename, int mode);
	virtual ~Node() {}

	void close();

	virtual Term* as_term() { return 0; }
};

String path_cat(const String &a, const String &b, bool trailing_slash = true);

#endif