Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
errno.c File Reference
#include <ztest.h>
#include <zephyr.h>
#include <errno.h>

Data Structures

struct  result
 

Macros

#define N_THREADS   2
 
#define STACK_SIZE   (384 + CONFIG_TEST_EXTRA_STACKSIZE)
 
#define ERROR_ANY   0xfc
 

Functions

static K_THREAD_STACK_ARRAY_DEFINE (stacks, 2,(384+CONFIG_TEST_EXTRA_STACKSIZE))
 
 K_THREAD_STACK_DEFINE (eno_stack,(384+CONFIG_TEST_EXTRA_STACKSIZE))
 
static void errno_thread (void *_n, void *_my_errno, void *_unused)
 
void test_thread_context (void)
 Verify thread context. More...
 
void thread_entry_user (void *p1, void *p2, void *p3)
 
void test_errno (void)
 Verify errno works well. More...
 

Variables

static struct k_thread threads [2]
 
struct k_thread eno_thread
 
static int errno_values [2+1]
 
struct result result [2]
 
struct k_fifo fifo
 

Macro Definition Documentation

◆ ERROR_ANY

#define ERROR_ANY   0xfc

◆ N_THREADS

#define N_THREADS   2

◆ STACK_SIZE

#define STACK_SIZE   (384 + CONFIG_TEST_EXTRA_STACKSIZE)

Function Documentation

◆ errno_thread()

static void errno_thread ( void _n,
void _my_errno,
void _unused 
)
static

◆ K_THREAD_STACK_ARRAY_DEFINE()

static K_THREAD_STACK_ARRAY_DEFINE ( stacks  ,
,
(384+CONFIG_TEST_EXTRA_STACKSIZE)   
)
static

◆ K_THREAD_STACK_DEFINE()

K_THREAD_STACK_DEFINE ( eno_stack  ,
(384+CONFIG_TEST_EXTRA_STACKSIZE)   
)

◆ thread_entry_user()

void thread_entry_user ( void p1,
void p2,
void p3 
)

Variable Documentation

◆ eno_thread

struct k_thread eno_thread

◆ errno_values

int errno_values[2+1]
static
Initial value:
= {
0xbabef00d,
0xdeadbeef,
0xabad1dea,
}

◆ fifo

struct k_fifo fifo

◆ result

struct result result[2]

◆ threads

struct k_thread threads[2]
static