nuttx/libs/libc/unistd
chao an 6ee9ec7656 build: add initial cmake build system
1. Update all CMakeLists.txt to adapt to new layout
2. Fix cmake build break
3. Update all new file license
4. Fully compatible with current compilation environment(use configure.sh or cmake as you choose)

------------------

How to test

From within nuttx/. Configure:

cmake -B build -DBOARD_CONFIG=sim/nsh -GNinja
cmake -B build -DBOARD_CONFIG=sim:nsh -GNinja
cmake -B build -DBOARD_CONFIG=sabre-6quad/smp -GNinja
cmake -B build -DBOARD_CONFIG=lm3s6965-ek/qemu-flat -GNinja

(or full path in custom board) :
cmake -B build -DBOARD_CONFIG=$PWD/boards/sim/sim/sim/configs/nsh -GNinja

This uses ninja generator (install with sudo apt install ninja-build). To build:

$ cmake --build build

menuconfig:

$ cmake --build build -t menuconfig

--------------------------

2. cmake/build: reformat the cmake style by cmake-format

https://github.com/cheshirekow/cmake_format

$ pip install cmakelang

$ for i in `find -name CMakeLists.txt`;do cmake-format $i -o $i;done
$ for i in `find -name *\.cmake`;do cmake-format $i -o $i;done

Co-authored-by: Matias N <matias@protobits.dev>
Signed-off-by: chao an <anchao@xiaomi.com>
2023-07-08 13:50:48 +08:00
..
CMakeLists.txt build: add initial cmake build system 2023-07-08 13:50:48 +08:00
Kconfig boars/spawn_proxy: remove all CONFIG_POSIX_SPAWN_PROXY_STACKSIZE 2023-04-27 17:35:58 +08:00
lib_access.c libc: Add a new argument(size_t fulllen) to lib_getfullpath 2023-05-08 09:57:01 +02:00
lib_alarm.c
lib_chdir.c
lib_daemon.c
lib_execl.c
lib_execle.c
lib_execv.c
lib_fchdir.c
lib_fchownat.c libc: Add a new argument(size_t fulllen) to lib_getfullpath 2023-05-08 09:57:01 +02:00
lib_fstatvfs.c
lib_futimes.c
lib_getcwd.c change strcpy to strlcpy 2023-02-24 12:15:40 +08:00
lib_getegid.c
lib_getentropy.c
lib_geteuid.c
lib_getgid.c
lib_gethostname.c
lib_getopt_common.c
lib_getopt_long.c
lib_getopt_longonly.c
lib_getopt.c
lib_getoptargp.c
lib_getopterrp.c
lib_getoptindp.c
lib_getoptoptp.c
lib_getoptvars.c
lib_getpgrp.c libs/libc/unistd: add getpgrp function 2023-06-26 01:03:36 +08:00
lib_getpriority.c
lib_getrlimit.c libc: unistd: lib_getrlimit: set cur/max value for RLIMIT_NOFILE to "OPEN_MAX". 2023-02-17 18:07:30 +08:00
lib_getrusage.c
lib_getuid.c
lib_linkat.c libc: Add a new argument(size_t fulllen) to lib_getfullpath 2023-05-08 09:57:01 +02:00
lib_lutimes.c
lib_nice.c
lib_pathconf.c
lib_posix_fallocate.c
lib_readlinkat.c libc: Add a new argument(size_t fulllen) to lib_getfullpath 2023-05-08 09:57:01 +02:00
lib_restoredir.c semantic/parser: fix compile warning found by sparse 2023-05-30 23:00:00 +08:00
lib_setegid.c
lib_seteuid.c
lib_setgid.c
lib_sethostname.c
lib_setpriority.c semantic/parser: fix compile warning found by sparse 2023-05-30 23:00:00 +08:00
lib_setregid.c
lib_setreuid.c
lib_setrlimit.c
lib_setuid.c
lib_sleep.c
lib_statvfs.c
lib_swab.c Replace all strncpy with strlcpy 2023-05-08 09:57:01 +02:00
lib_symlinkat.c libc: Add a new argument(size_t fulllen) to lib_getfullpath 2023-05-08 09:57:01 +02:00
lib_sysconf.c sched/clock/clock_getres: add two CPUTIME_ID res support 2023-07-03 23:11:00 +03:00
lib_times.c
lib_truncate.c
lib_unlinkat.c libc: Add a new argument(size_t fulllen) to lib_getfullpath 2023-05-08 09:57:01 +02:00
lib_usleep.c
lib_utime.c
lib_utimes.c libc: Add a new argument(size_t fulllen) to lib_getfullpath 2023-05-08 09:57:01 +02:00
Make.defs libs/libc/unistd: add getpgrp function 2023-06-26 01:03:36 +08:00
unistd.h