// SPDX-License-Identifier: LGPL-2.1

#ifndef _TOSLIBC_FCNTL_H
#define _TOSLIBC_FCNTL_H

#include <tos/gemdos.h>

#define O_RDONLY	S_READ
#define O_WRONLY	S_WRITE
#define O_RDWR		S_READWRITE

#define O_APPEND	0x8000
#define O_CREAT		0x4000
#define O_TRUNC		0x2000

int open(const char *pathname, int flags, ...);

#endif /* _TOSLIBC_FCNTL_H */
