nuttx/libs/libc/unistd
Gregory Nutt 7e1ae24c3c getopt_common(): Correct handling of unsupported long options.
If an unrecognized long option is encountered, we must skip over that argv[] entry or getopt_long() will seriously misbehave.

Affects getopt_long() and getopt_long_only()

Problem found and fix verified with an updated version of the OS test.
2021-04-04 07:15:10 -05:00
..
Kconfig symtabs: improve handling of symbol lookups 2021-03-16 10:18:17 -07:00
lib_access.c sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
lib_alarm.c sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
lib_chdir.c libs: nxstyle fixes 2021-03-03 18:52:53 -08:00
lib_daemon.c libs: Author Gregory Nutt: update licenses to Apache 2021-03-03 18:52:53 -08:00
lib_execl.c libs: Author Gregory Nutt: update licenses to Apache 2021-03-03 18:52:53 -08:00
lib_fstatvfs.c fs/vfs: Implement statvfs and fstatvfs 2020-07-13 20:25:03 +01:00
lib_futimens.c libs/libc/time: add stub for futimes/ns(2) 2020-09-19 03:20:09 -07:00
lib_futimes.c libs/libc/time: add stub for futimes/ns(2) 2020-09-19 03:20:09 -07:00
lib_getcwd.c libs: Author Gregory Nutt: update licenses to Apache 2021-03-03 18:52:53 -08:00
lib_getegid.c misc: : Author Gregory Nutt: update licenses to Apache 2021-03-28 13:34:50 -07:00
lib_geteuid.c libs: Author Gregory Nutt: update licenses to Apache 2021-03-03 18:52:53 -08:00
lib_getgid.c libs: Author Gregory Nutt: update licenses to Apache 2021-03-03 18:52:53 -08:00
lib_gethostname.c libc: Make gethostname as syscall instead of uname 2020-07-30 10:33:08 +09:00
lib_getopt_common.c getopt_common(): Correct handling of unsupported long options. 2021-04-04 07:15:10 -05:00
lib_getopt_long.c Implement getopt_long() and getopt_long_only() 2021-04-01 23:06:23 -05:00
lib_getopt_longonly.c Implement getopt_long() and getopt_long_only() 2021-04-01 23:06:23 -05:00
lib_getopt.c Implement getopt_long() and getopt_long_only() 2021-04-01 23:06:23 -05:00
lib_getoptargp.c Move getopt() variables into TLS 2021-03-31 21:13:01 -05:00
lib_getopterrp.c Move getopt() variables into TLS 2021-03-31 21:13:01 -05:00
lib_getoptindp.c Move getopt() variables into TLS 2021-03-31 21:13:01 -05:00
lib_getoptoptp.c Move getopt() variables into TLS 2021-03-31 21:13:01 -05:00
lib_getoptvars.c Move getopt() variables into TLS 2021-03-31 21:13:01 -05:00
lib_getpriority.c libc/unistd: Fix getpriority not handling invalid input value 2021-03-12 11:04:16 +08:00
lib_getrlimit.c libs/libc/unistd: add dummy getrlimit & setrlimit support 2020-09-15 10:28:21 -03:00
lib_getrusage.c Change all files come from Xiaomi/Pinecone to Apache License 2.0 2020-08-22 17:37:21 -06:00
lib_getuid.c libs: nxstyle fixes 2021-03-03 18:52:53 -08:00
lib_pathconf.c unistd/fpathconf: enhance fpathconf 2021-01-26 03:25:47 -08:00
lib_pipe2.c Move the declaration of nx_mkfifo/nx_pipe to nuttx/fs/fs.h 2021-01-08 11:03:19 +08:00
lib_pipe.c Move the declaration of nx_mkfifo/nx_pipe to nuttx/fs/fs.h 2021-01-08 11:03:19 +08:00
lib_posix_fallocate.c Ensure the kernel component don't call userspace API 2021-03-01 09:23:09 +09:00
lib_restoredir.c libc: Implement ftw and nftw function 2020-08-11 16:44:42 +09:00
lib_setegid.c libs/libc: License Clearance 2021-03-02 03:44:06 -08:00
lib_seteuid.c libs/libc: License Clearance 2021-03-02 03:44:06 -08:00
lib_setgid.c libs/libc: License Clearance 2021-03-02 03:44:06 -08:00
lib_sethostname.c Fix nxstyle issue 2020-05-01 10:43:47 -03:00
lib_setpriority.c unistd/priority: Implement [s/g]etpriority(2) syscall 2020-09-19 01:06:51 -07:00
lib_setregid.c libs/libc: License Clearance 2021-03-02 03:44:06 -08:00
lib_setreuid.c libs/libc: License Clearance 2021-03-02 03:44:06 -08:00
lib_setrlimit.c libs/libc/unistd: add dummy getrlimit & setrlimit support 2020-09-15 10:28:21 -03:00
lib_setuid.c libs/libc: License Clearance 2021-03-02 03:44:06 -08:00
lib_sleep.c sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
lib_statvfs.c fs/vfs: Implement statvfs and fstatvfs 2020-07-13 20:25:03 +01:00
lib_swab.c libs: nxstyle fixes 2021-03-03 18:52:53 -08:00
lib_sysconf.c fs: allocate file/socket dynamically 2021-03-17 06:46:42 -07:00
lib_truncate.c libs: Author Gregory Nutt: update licenses to Apache 2021-03-03 18:52:53 -08:00
lib_usleep.c sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
lib_utimes.c libs/libc/time: Add stub for utimes 2020-08-29 23:21:47 +08:00
Make.defs Implement getopt_long() and getopt_long_only() 2021-04-01 23:06:23 -05:00
unistd.h Implement getopt_long() and getopt_long_only() 2021-04-01 23:06:23 -05:00