Christopher Friedt
855b8bc6ca
posix: separate shell utilities and posix api implementation
...
Previously, the POSIX shell utilities were intermixed with the
POSIX API implementation.
The POSIX shell utilities only depend on the public POSIX API,
so it makes sense to keep them in a separate subdirectory.
Signed-off-by: Christopher Friedt <cfriedt@meta.com>
1 year ago
Yong Cong Sin
73da1e80f4
posix: signal: implement `sigprocmask()`
...
Implement `sigprocmask()` by simply redirecting call to the
`pthread_sigmask()` as they are identical.
Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2 years ago
Yong Cong Sin
43123e77c0
posix: signal: extend strsignal buf to cover entire INT range
...
extends the char buffer in the strsignal function to cover the
entire range of `int`
Had to use `-INT_MAX` as the compiler resolves
```
STRINGIFY(INT_MIN)
```
to:
```
(-2147483647 - 1)
```
instead of:
```
-2147483648
```
Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2 years ago
Yong Cong Sin
43c549305b
posix: signal: check RTSIG limit
...
Use build assert to make sure that the realtime signal
constants are configured properly in the Kconfig.
Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2 years ago
Yong Cong Sin
335acf817d
posix: signal: implement strsignal
...
Implementation and ztest for strsignal.
Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2 years ago
Yong Cong Sin
ff4b81e5e5
posix: signal: implement sigismember
...
Implementation and ztest for sigismember.
Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2 years ago
Yong Cong Sin
88cd494430
posix: signal: implement sigdelset
...
Implementation and ztest for sigdelset.
Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2 years ago
Yong Cong Sin
8011449542
posix: signal: implement sigaddset
...
Implementation and ztest for sigaddset.
Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2 years ago
Yong Cong Sin
b9720e27c0
posix: signal: implement sigfillset
...
Implementation and ztest for sigfillset.
Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2 years ago
Yong Cong Sin
6910eb4a9b
posix: signal: implement sigemptyset
...
Implementation and ztest for sigemptyset.
Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2 years ago