blob: 6139660073594118486b9aaeacd72d52122dc300 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#pragma once
#include <stddef.h>
#include "sys/types.h"
#include <stdnoreturn.h>
#define STDIN_FILENO 0
#define STDOUT_FILENO 1
#define STDERR_FILENO 2
enum seek_whence
{
SEEK_SET,
SEEK_CUR,
SEEK_END
};
ssize_t read(int fd, void *buf, size_t length);
ssize_t write(int fd, const void *buf, size_t length);
off_t lseek(int fd, off_t position, int whence);
int close(int fd);
noreturn void _exit(int status);
|