2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
20#ifndef DOXYGEN_SHOULD_SKIP_THIS
22#include "core/system/unistd.h"
30 int open(
const char* pathname,
int flags) {
32 return ::open(pathname, flags);
35 ssize_t
read(
int fd,
void* buf, std::size_t count) {
37 return ::read(fd, buf, count);
40 ssize_t
write(
int fd,
const void* buf, std::size_t count) {
42 return ::write(fd, buf, count);
50 int pipe2(
int pipefd[2],
int flags) {
52 return ::pipe2(pipefd, flags);
55 int flock(
int lockFd,
int operation) {
57 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)