Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
fcntl.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018 Linaro Limited
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_POSIX_FCNTL_H_
8#define ZEPHYR_POSIX_FCNTL_H_
9
10#ifdef CONFIG_PICOLIBC
11#define O_CREAT 0x0040
12#else
13#define O_CREAT 0x0200
14#endif
15
16#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
17
18#define O_RDONLY 00
19#define O_WRONLY 01
20#define O_RDWR 02
21
22#define O_APPEND 0x0400
23#define O_EXCL 0x0800
24#define O_NONBLOCK 0x4000
25
26#define F_DUPFD 0
27#define F_GETFL 3
28#define F_SETFL 4
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34int open(const char *name, int flags, ...);
35int fcntl(int fildes, int cmd, ...);
36
37#ifdef __cplusplus
38}
39#endif
40
41#endif /* ZEPHYR_POSIX_FCNTL_H_ */
static void cmd(uint32_t command)
Execute a display list command by co-processor engine.
Definition: ft8xx_reference_api.h:153
int open(const char *name, int flags,...)
int fcntl(int fildes, int cmd,...)
flags
Definition: parser.h:96