]> gitweb.factorcode.org Git - factor.git/blob - vm/io.hpp
Merge branch 'emacs' of http://git.hacks-galore.org/jao/factor
[factor.git] / vm / io.hpp
1 namespace factor
2 {
3
4 void init_c_io();
5 void io_error();
6
7 PRIMITIVE(fopen);
8 PRIMITIVE(fgetc);
9 PRIMITIVE(fread);
10 PRIMITIVE(fputc);
11 PRIMITIVE(fwrite);
12 PRIMITIVE(fflush);
13 PRIMITIVE(fseek);
14 PRIMITIVE(fclose);
15
16 /* Platform specific primitives */
17 PRIMITIVE(open_file);
18 PRIMITIVE(existsp);
19 PRIMITIVE(read_dir);
20
21 VM_C_API int err_no();
22 VM_C_API void clear_err_no();
23
24 }