ioctl() just dispatches to the corresponding vmethod of an fd. fcntl() handles fdtable-level operations (so far doesn't handle actually, returning "not implemented" error), and forwards fd-specific operations to ioctl vmethod just the same (i.e. ioctl and fcntl operations share the same namespace, but otherwise disjoint). Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
17 lines
326 B
C
17 lines
326 B
C
/*
|
|
* Copyright (c) 2018 Linaro Limited
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_FCNTL_H_
|
|
#define ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_FCNTL_H_
|
|
|
|
#define O_NONBLOCK 0x4000
|
|
|
|
#define F_DUPFD 0
|
|
#define F_GETFL 3
|
|
#define F_SETFL 4
|
|
|
|
#endif /* ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_SYS_FCNTL_H_ */
|