summaryrefslogtreecommitdiff
path: root/api/posix/unistd.h
blob: 74870014033946128c41c3c302130ffa8b10b551 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include <stddef.h>
#include "sys/types.h"

#define STDIN_FILENO 0
#define STDOUT_FILENO 1
#define STDERR_FILENO 2

enum seek_whence
{
	SEEK_SET,
	SEEK_CUR,
	SEEK_END
};

ssize_t write(int fd, const void *buf, size_t length);