2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
42#ifndef DOXYGEN_SHOULD_SKIP_THIS
44#include "core/system/unistd.h"
52 int open(
const char* pathname,
int flags) {
54 return ::open(pathname, flags);
57 ssize_t
read(
int fd,
void* buf, std::size_t count) {
59 return ::read(fd, buf, count);
62 ssize_t
write(
int fd,
const void* buf, std::size_t count) {
64 return ::write(fd, buf, count);
72 int pipe2(
int pipefd[2],
int flags) {
74 return ::pipe2(pipefd, flags);
77 int flock(
int lockFd,
int operation) {
79 return ::flock(lockFd, operation);
ssize_t read(int fd, void *buf, std::size_t count)
int flock(int lockFd, int operation)
ssize_t write(int fd, const void *buf, std::size_t count)
int pipe2(int pipefd[2], int flags)
int open(const char *pathname, int flags)