acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
file.h
1//
2// Created by camilo on 2024-05-14 21:42 <3ThomasBorregaardSorensen!!
3//
4#pragma once
5
6
7namespace unistd
8{
9
10
11class file
12{
13public:
14
15 ::i32 m_iFile;
16
17
18 file();
19 file(const file & file);
20 file(::i32 iFile);
21 ~file();
22
23 ::i32 create_tmpfile_cloexec(char_pointer tmpname);
24 ::i32 create_anonymous_file(memsize s);
25 ::i32 set_cloexec_or_close();
26
27 ::i32 close();
28
29 bool is_opened() const {return m_iFile>=0;}
30
31 memsize read(void * p, memsize s);
32 long write(const void * p, memsize s);
33
34};
35
36
37}//namespace unistd
Definition filesystem.h:16