RTEMS CPU Kit with SuperCore  4.11.3
Macros | Functions
stdio-redirect.c File Reference
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <sys/types.h>
#include <unistd.h>
#include <rtems.h>
#include <rtems/error.h>
#include "stdio-redirect.h"
Include dependency graph for stdio-redirect.c:

Macros

#define RTEMS_STDIO_REDIRECT_LOCK_ATTRIBS
 
#define RTEMS_STDIO_REDIRECT_RUNNING   (1 << 0)
 
#define RTEMS_STDIO_REDIRECT_FINISHED   (1 << 1)
 

Functions

rtems_stdio_redirectrtems_stdio_redirect_open (int fd, rtems_task_priority priority, size_t stack_size, ssize_t input_size, ssize_t buffer_size, bool echo, rtems_stdio_redirect_handler handler)
 
void rtems_stdio_redirect_close (rtems_stdio_redirect *sr)
 
ssize_t rtems_stdio_redirect_read (rtems_stdio_redirect *sr, char *buffer, ssize_t length)
 

Macro Definition Documentation

◆ RTEMS_STDIO_REDIRECT_LOCK_ATTRIBS

#define RTEMS_STDIO_REDIRECT_LOCK_ATTRIBS
Value:
RTEMS_INHERIT_PRIORITY | RTEMS_NO_PRIORITY_CEILING | RTEMS_LOCAL)
#define RTEMS_BINARY_SEMAPHORE
This attribute constant indicates that the Classic API Semaphore instance created will be a proper bi...
Definition: attr.h:106
#define RTEMS_PRIORITY
This is the attribute constant which reflects that blocking tasks will be managed using task priority...
Definition: attr.h:70
#define RTEMS_NO_PRIORITY_CEILING
This attribute constant indicates that the Classic API Semaphore instance created will NOT use the Pr...
Definition: attr.h:132
#define RTEMS_LOCAL
This is the attribute constant to indicate local resource.
Definition: attr.h:53