Zephyr Project API
3.5.0
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
31
extern
"C"
{
32
#endif
33
34
int
open
(
const
char
*name,
int
flags
, ...);
35
int
fcntl
(
int
fildes,
int
cmd
, ...);
36
37
#ifdef __cplusplus
38
}
39
#endif
40
41
#endif
/* ZEPHYR_POSIX_FCNTL_H_ */
fcntl
#define fcntl
Definition
socket.h:829
cmd
static void cmd(uint32_t command)
Execute a display list command by co-processor engine.
Definition
ft8xx_reference_api.h:153
open
int open(const char *name, int flags,...)
flags
flags
Definition
parser.h:96
include
zephyr
posix
fcntl.h
Generated on Tue Mar 5 2024 08:42:06 for Zephyr Project API by
1.9.8