posix: deprecate POSIX_SYSLOG for XSI_SYSTEM_LOGGING
This change deprecates the CONFIG_POSIX_SYSLOG Kconfig variable for CONFIG_XSI_SYSTEM_LOGGING, which has a direct mapping to the POSIX Option Group XSI_SYSTEM_LOGGING. Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
This commit is contained in:
parent
23f9119176
commit
0711d603f7
6 changed files with 34 additions and 11 deletions
|
@ -102,6 +102,20 @@ This table lists service support status in Zephyr:
|
|||
pthread_getconcurrency(),yes
|
||||
pthread_setconcurrency(),yes
|
||||
|
||||
.. _posix_option_group_xsi_system_logging:
|
||||
|
||||
XSI_SYSTEM_LOGGING
|
||||
==================
|
||||
|
||||
.. csv-table:: XSI_SYSTEM_LOGGING
|
||||
:header: API, Supported
|
||||
:widths: 50,10
|
||||
|
||||
closelog(),yes
|
||||
openlog(),yes
|
||||
setlogmask(),yes
|
||||
syslog(),yes
|
||||
|
||||
.. _posix_option_group_c_lang_jump:
|
||||
|
||||
POSIX_C_LANG_JUMP
|
||||
|
|
|
@ -80,6 +80,7 @@ zephyr_library_sources_ifdef(CONFIG_PTHREAD pthread.c)
|
|||
zephyr_library_sources_ifdef(CONFIG_POSIX_PRIORITY_SCHEDULING sched.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_POSIX_READER_WRITER_LOCKS rwlock.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_POSIX_SEMAPHORES semaphore.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_XSI_SYSTEM_LOGGING syslog.c)
|
||||
|
||||
zephyr_library_sources_ifdef(CONFIG_GETOPT_LONG
|
||||
getopt/getopt_long.c
|
||||
|
|
|
@ -45,7 +45,6 @@ rsource "Kconfig.signal"
|
|||
rsource "Kconfig.spinlock"
|
||||
rsource "Kconfig.stropts"
|
||||
rsource "Kconfig.sync_io"
|
||||
rsource "Kconfig.syslog"
|
||||
rsource "Kconfig.timer"
|
||||
rsource "Kconfig.xsi"
|
||||
|
||||
|
|
|
@ -138,6 +138,15 @@ config POSIX_SYSCONF
|
|||
|
||||
Please use CONFIG_POSIX_SINGLE_PROCESS instead.
|
||||
|
||||
config POSIX_SYSLOG
|
||||
bool "Support for syslog() [DEPRECATED]"
|
||||
select DEPRECATED
|
||||
select XSI_SYSTEM_LOGGING
|
||||
help
|
||||
This option is deprecated.
|
||||
|
||||
Please use CONFIG_XSI_SYSTEM_LOGGING instead.
|
||||
|
||||
config POSIX_UNAME
|
||||
bool "Support for uname [DEPRECATED]"
|
||||
select DEPRECATED
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
# Copyright (c) 2024, Meta
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config POSIX_SYSLOG
|
||||
bool "Support for syslog()"
|
||||
default y if POSIX_API
|
||||
help
|
||||
This option provides support for closelog(), openlog(), syslog(),
|
||||
setlogmask(), and vsyslog().
|
|
@ -13,3 +13,13 @@ config XSI_SINGLE_PROCESS
|
|||
|
||||
For more information, please see
|
||||
https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_subprofiles.html
|
||||
|
||||
config XSI_SYSTEM_LOGGING
|
||||
bool "X/Open system logging"
|
||||
default y if POSIX_API
|
||||
help
|
||||
This option provides support for closelog(), openlog(), syslog(),
|
||||
setlogmask(), and vsyslog().
|
||||
|
||||
For more information, please see
|
||||
https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_subprofiles.html
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue