Tim Hardisty
e6a335ded0
Fix Compiler warnings
2025-07-03 10:42:11 +08:00
Tim Hardisty
8c9e126f91
netutils/thttpd-fix-broken-CGI-and-fixup-Kconfig
2025-07-03 10:42:11 +08:00
Huang Qi
ffd256d32b
Remove unused header files across multiple source files
...
Clean up code by removing redundant and unused header file includes that were identified through static analysis.
This improves code readability and reduces unnecessary dependencies.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2025-01-10 21:42:00 +08:00
Alin Jerpelea
83ea91531f
netutils: migrate the license to ASF
...
Xiaomi has submitted the SGA and we can migate the license to ASF
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2024-12-21 13:53:10 +08:00
wanggang26
2de1fdcebd
thttpd:fix Coding Style Check Failed issue
...
error: Mixed case identifier found
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2024-10-16 07:13:50 +08:00
wanggang26
eab2cba4a1
enable SOCK_CLOEXEC explicit
...
leaking here means fork/vfork will duplicate fd without O_CLOEXEC flag
to the child process.
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2024-09-26 16:13:29 +08:00
Alexey Matveev
0fc0cb2888
Thttpd Fix: wrong calc offset
2024-09-09 19:45:03 +08:00
simbit18
dadbea7e3b
fix nxstyle
...
fix Relative file path does not match actual file.
Add missing Apache Foundation copyright header
2024-04-30 00:02:31 +08:00
xuxin19
c230321cae
fix progname do not match issue
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2023-09-11 16:37:05 +08:00
Xiang Xiao
7251645685
Fix some coding style issue
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-08-17 22:51:51 +03:00
Xiang Xiao
054cf3b1cb
Change all sizeof(arr)/sizeof(arr[0]) to nitems
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-08-17 22:51:51 +03:00
Xiang Xiao
dab972b907
Remove the const cast from the initialization of boardioc_symtab_s::symtab
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-07-08 16:01:52 +03:00
chao an
4d79a5cbaf
add initial cmake build system
...
Co-authored-by: Daniel Agar <daniel@agar.ca>
Signed-off-by: chao an <anchao@xiaomi.com>
2023-07-08 13:52:02 +08:00
Xiang Xiao
73701cd7cd
Replace all strncpy with strlcpy
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-05-08 21:35:16 +03:00
Xiang Xiao
7c37421266
Replace all sprintf with snprintf
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-05-08 21:35:16 +03:00
Xiang Xiao
134b8b538f
Replace all strcat with strlcat
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-05-08 21:35:16 +03:00
simbit18
b2f1ab31c7
apps/netutils/thttpd/Make.defs: fix nxstyle
...
Add missing first line header
2023-03-20 14:17:07 +01:00
lilei19
41f60bd669
change strcpy to strlcpy
...
Change-Id: I8b9429a3c225a82842fce136bdb14b8b135066d3
Signed-off-by: lilei19 <lilei19@xiaomi.com>
2023-02-22 23:09:55 +08:00
Nathan Hartman
8e77b79f78
Kconfig: Make indent consistent with TABS
2023-02-10 14:11:48 +08:00
chao an
42d34fcef3
build/Kconfig: fix warnings detected by kconfiglib
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-02-09 19:45:36 +08:00
Gustavo Henrique Nihei
b0da60e498
apps: Use MIN/MAX definitions from "sys/param.h"
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-02-02 00:35:14 +02:00
Xiang Xiao
8fff07b435
Remove the unnecessary "return;" at the end of function
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-27 22:36:40 +01:00
qinwei1
c86509be4c
apps: getpid should return process id not thread id
...
Summary:
following the change in the nuttx kernel, implement the right semantics:
1. getpid should return the main thread id
2. gettid should return the current thread id
Refer:
https://github.com/apache/incubator-nuttx/issues/2499
https://github.com/apache/incubator-nuttx/pull/2518
Nuttx Kernel PR:
https://github.com/apache/incubator-nuttx/pull/7597
update apps code
Testing PASSED with qemu( 32/64 )
Signed-off-by: qinwei1 <qinwei1@xiaomi.com>
2022-11-17 17:58:45 +08:00
yinshengkai
ee4d8b738f
Makefile: replace INCDIR to INCDIR_PREFIX
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-11-10 02:38:58 +08:00
Petro Karashchenko
5862b9d15c
netutils/thttpd: remove MIN and MAX definitions from libhttpd.c
...
This reverts commit e12d48f0d240edbd6934aac373242fe6b9b9aad2.
2022-10-24 01:13:27 +08:00
Petro Karashchenko
e12d48f0d2
Revert "netutils/thttpd: remove MIN and MAX definitions from libhttpd.h"
...
This reverts commit c52f40770e5368980e334048423f5a46fe1f4fef.
2022-10-23 08:29:01 +02:00
Xiang Xiao
ad48457183
Fix nxstyle wanring as much as we can
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-23 11:47:20 +08:00
Xiang Xiao
041cec1af8
Fix thttpd_alloc.h:64:32: error: 'free' called on pointer 'hc' with nonzero offset 286 [-Werror=free-nonheap-object]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-23 11:47:20 +08:00
Petro Karashchenko
c52f40770e
netutils/thttpd: remove MIN and MAX definitions from libhttpd.h
...
add newlines between MIN and MAX definitions for style consistency
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-10-23 11:45:52 +08:00
Xiang Xiao
b659f0fbdf
Remove the unnecessary cast for main_t, NULL and argv
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-18 18:40:23 +02:00
Xiang Xiao
893387b2c5
Fix the minor style issue
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-16 19:07:16 +02:00
Xiang Xiao
4941182cc6
Make.defs: Change "ifeq ($(XXX),y)" to "ifneq ($(XXX),)
...
to support the tristate option correctly and unify the usage
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-16 14:59:08 +02:00
Fotis Panagiotopoulos
1975f7c485
nxstyle fixes.
2022-09-30 14:23:04 +08:00
Fotis Panagiotopoulos
2c0c02fe78
Fixed non-UTF8 characters.
2022-09-30 14:23:04 +08:00
Peter van der Perk
dcd60a2abe
Use thread-safe ntoa functions
...
NXStyle fixes
Apply suggestions from code review
Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
API fixes and NXStyle fixes
Apply suggestions from code review
Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
Use thread-safe ntoa functions
NXStyle fixes
Apply suggestions from code review
Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
API fixes and NXStyle fixes
Apply suggestions from code review
Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-08-04 23:18:06 +08:00
Xiang Xiao
1acca2946e
Update the call site of exec to accommodate the environment variables
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-04-22 10:40:38 +03:00
chao.an
25d7dfe990
fs/epoll: fix compile break about change type of pollevent_t
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-04-07 16:23:47 +08:00
Xiang Xiao
60989b196c
neutils/thttpd: Remove CONFIG_SDCLONE_DISABLE
...
since this option doesn't exist anymore
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-31 19:03:55 +01:00
Xiang Xiao
c7e96dbe32
Fix the nxstyle warning
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-17 07:57:22 +01:00
Petro Karashchenko
9480c0ec12
include: fix double include pre-processor guards
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-16 17:36:21 +08:00
Xiang Xiao
ad3f44bc77
Change match to fnmatch
...
follow the kernel side change
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-02 16:15:57 -03:00
Alin Jerpelea
e78ef68927
netutils: fix relative path CI error
...
error: Path relative to repository other than nuttx must begin with the root directory
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-16 09:03:06 -05:00
Alin Jerpelea
5572819bb1
netutils: nxstyle fixes
...
fixes for errors reported by nxstyle tool
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-11 08:53:57 -05:00
Alin Jerpelea
0a6b1f55ab
netutils: update licenses to Apache
...
Gregory Nutt is has submitted the SGA
Sebastien Lorquet has submitted the ICLA
as a result we can migrate the licenses to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-11 05:05:27 -05:00
Alin Jerpelea
ec339bc49a
Makefiles: Gregory Nutt: update licenses to Apache
...
Gregory Nutt is the copyright holder for those files and he has submitted the
SGA as a result we can migrate the licenses to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-07 21:35:33 -05:00
Xiang Xiao
d6d458c60b
Include assert.h in necessary place
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-06-01 14:11:16 +09:00
Jiuzhu Dong
ff4c3c3fb8
thttpd: add THTTPD_NFILE_DESCRIPTORS limits instead of NFILE_DESCRIPTORS
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-03-16 07:56:45 -07:00
Jiuzhu Dong
681da55d4a
netutils/thttpd: fix compile break
...
change NSOCKET_DESCRIPTORS to NFILE_DESCRIPTORS
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-03-03 02:02:22 -08:00
Jiuzhu Dong
459916f81c
net/socket: delete config CONFIG_NSOCKET_DESCRIPTORS
...
N/A
Change-Id: I50376600292a853652af76e2236bb428d1037313
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-02-24 05:53:14 -08:00
YAMAMOTO Takashi
d1821c9bf0
netutils/thttpd/thttpd.c: Fix syslog formats
2020-11-26 19:28:14 -08:00