summaryrefslogtreecommitdiff
path: root/ports/posix/src/stream_stdio.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/posix/src/stream_stdio.c')
-rw-r--r--ports/posix/src/stream_stdio.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/ports/posix/src/stream_stdio.c b/ports/posix/src/stream_stdio.c
index e9b6f09..d49c46e 100644
--- a/ports/posix/src/stream_stdio.c
+++ b/ports/posix/src/stream_stdio.c
@@ -1,21 +1,11 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include "stream_stdio.h"
#include "stream.h"
#include "main.h"
-int stdio_init(void **vptr, void *sptr)
-{
- /* TODO */
- /* p_stream_t *stream = (p_stream_t*)sptr; */
- /* int num_files = BUS_DEVICE_LIMIT; */
- /* int x; */
- /* char fname_base[] = "devio_", fname[10]; */
-
- return 0;
-}
-
-int stdio_read(uint8_t* buf, size_t count, void **vptr, void *sptr)
+int read_STDIO(uint8_t* buf, size_t count, void **vptr, void *sptr)
{
int x;
for (x = 0; x < count; x++) {
@@ -24,7 +14,7 @@ int stdio_read(uint8_t* buf, size_t count, void **vptr, void *sptr)
return 0;
}
-int stdio_write(uint8_t* buf, size_t count, void **vptr, void *sptr)
+int write_STDIO(uint8_t* buf, size_t count, void **vptr, void *sptr)
{
int x;
for (x = 0; x < count; x++) {