mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 06:32:32 +08:00
Move SEEK_xxx from unistd.h to sys/types.h
so fcntl.h, stdio.h and unistd.h could get these definiton: https://en.cppreference.com/w/c/io/fseek https://pubs.opengroup.org/onlinepubs/7908799/xsh/fcntl.html https://pubs.opengroup.org/onlinepubs/007904975/functions/lseek.html Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
63e6f80fb0
commit
97e994a1f9
@@ -60,6 +60,12 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Values for seeking */
|
||||||
|
|
||||||
|
#define SEEK_SET 0 /* From the start of the file */
|
||||||
|
#define SEEK_CUR 1 /* From the current file offset */
|
||||||
|
#define SEEK_END 2 /* From the end of the file */
|
||||||
|
|
||||||
#ifndef CONFIG_SMP_NCPUS
|
#ifndef CONFIG_SMP_NCPUS
|
||||||
# define CONFIG_SMP_NCPUS 1
|
# define CONFIG_SMP_NCPUS 1
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -33,12 +33,6 @@
|
|||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Values for seeking */
|
|
||||||
|
|
||||||
#define SEEK_SET 0 /* From the start of the file */
|
|
||||||
#define SEEK_CUR 1 /* From the current file offset */
|
|
||||||
#define SEEK_END 2 /* From the end of the file */
|
|
||||||
|
|
||||||
/* Bit values for the second argument to access */
|
/* Bit values for the second argument to access */
|
||||||
|
|
||||||
#define F_OK 0 /* Test existence */
|
#define F_OK 0 /* Test existence */
|
||||||
|
|||||||
Reference in New Issue
Block a user