summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/redirector/stdio-redirect.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-09-17 07:21:35 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-09-17 07:21:35 +0200
commitc040b113daec7e72210681e7ebd157738e58e1ca (patch)
tree32f3c9ae89e8b43614f994665c210e6d2d0b7e0b /cpukit/libmisc/redirector/stdio-redirect.h
parentLibmisc/Makefile.am: Build with networking disabled (diff)
downloadrtems-c040b113daec7e72210681e7ebd157738e58e1ca.tar.bz2
redirector: Rename rtems_stdio_redirect_t
Rename rtems_stdio_redirect_t to rtems_stdio_redirect since the namespace *_t is reserved by POSIX, see also The Open Group Base Specifications Issue 6 IEEE Std 1003.1, 2004 Edition, 2.2.2 The Name Space.
Diffstat (limited to 'cpukit/libmisc/redirector/stdio-redirect.h')
-rw-r--r--cpukit/libmisc/redirector/stdio-redirect.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/cpukit/libmisc/redirector/stdio-redirect.h b/cpukit/libmisc/redirector/stdio-redirect.h
index cf3d0cfcd4..6f1d4cdd98 100644
--- a/cpukit/libmisc/redirector/stdio-redirect.h
+++ b/cpukit/libmisc/redirector/stdio-redirect.h
@@ -75,7 +75,7 @@ typedef struct
bool full; /**< The buffer is full. */
bool echo; /**< Echo the data out the existing path. */
rtems_stdio_redirect_handler handler; /**< Redirected data handler. */
-} rtems_stdio_redirect_t;
+} rtems_stdio_redirect;
/*
* Open a redirector returning the handle to it.
@@ -83,18 +83,18 @@ typedef struct
* @param fd The file descriptor to redirect.
* @param priority The priority of the reader thread.
*/
-rtems_stdio_redirect_t* rtems_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);
+rtems_stdio_redirect* rtems_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);
/*
* Close the redirector.
*/
-void rtems_stdio_redirect_close(rtems_stdio_redirect_t* sr);
+void rtems_stdio_redirect_close(rtems_stdio_redirect* sr);
/*
* Get data from the capture buffer. Data read is removed from the buffer.
@@ -104,9 +104,9 @@ void rtems_stdio_redirect_close(rtems_stdio_redirect_t* sr);
* @param length The size of the buffer.
* @return ssize_t The amount of data written and -1 or an error.
*/
-ssize_t rtems_stdio_redirect_read(rtems_stdio_redirect_t* sr,
- char* buffer,
- ssize_t length);
+ssize_t rtems_stdio_redirect_read(rtems_stdio_redirect* sr,
+ char* buffer,
+ ssize_t length);
#ifdef __cplusplus
}