Commit d6edc756 authored by Nicholas Lowell's avatar Nicholas Lowell Committed by Benjamin Cabé
Browse files

posix: move PTHREAD_STACK_MIN to posix_features



PTHREAD_STACK_MIN is one of the very few posix features
referenced in sysconf that is not defined in posix_features.h
Move it to minimize header dependencies.

Signed-off-by: default avatarNicholas Lowell <Nicholas.Lowell@lexmark.com>
parent 833eaccf
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@

#include <zephyr/autoconf.h>       /* CONFIG_* */
#include <zephyr/sys/util_macro.h> /* COND_CODE_1() */
#include <zephyr/kernel/thread_stack.h> /* K_KERNEL_STACK_LEN() */

/*
 * POSIX Application Environment Profiles (AEP - IEEE Std 1003.13-2003)
@@ -286,6 +287,7 @@ __PICOLIBC_MINOR__ == 8 && __PICOLIBC_PATCHLEVEL__ >= 9)))
#define _POSIX_SIGQUEUE_MAX                 (32)
#define _POSIX_SSIZE_MAX                    (32767)
#define _POSIX_SS_REPL_MAX                  (4)
#define _POSIX_STACK_MIN                    (K_KERNEL_STACK_LEN(0))
#define _POSIX_STREAM_MAX                   (8)
#define _POSIX_SYMLINK_MAX                  (255)
#define _POSIX_SYMLOOP_MAX                  (8)
@@ -343,6 +345,7 @@ __PICOLIBC_MINOR__ == 8 && __PICOLIBC_PATCHLEVEL__ >= 9)))
#define PTHREAD_DESTRUCTOR_ITERATIONS _POSIX_THREAD_DESTRUCTOR_ITERATIONS
#define PTHREAD_KEYS_MAX              _POSIX_THREAD_KEYS_MAX
#define PTHREAD_THREADS_MAX           _POSIX_THREAD_THREADS_MAX
#define PTHREAD_STACK_MIN             _POSIX_STACK_MIN
#define RTSIG_MAX                     _POSIX_RTSIG_MAX
#define SEM_NSEMS_MAX       _POSIX_SEM_NSEMS_MAX
#define SEM_VALUE_MAX       _POSIX_SEM_VALUE_MAX
+0 −3
Original line number Diff line number Diff line
@@ -54,9 +54,6 @@ extern "C" {
/* Passed to pthread_once */
#define PTHREAD_ONCE_INIT {0}

/* The minimum allowable stack size */
#define PTHREAD_STACK_MIN K_KERNEL_STACK_LEN(0)

/**
 * @brief Declare a condition variable as initialized
 *