summaryrefslogtreecommitdiff
path: root/ports/posix/src/stream_stdio.c
diff options
context:
space:
mode:
authorAditya Naik2020-08-03 18:11:57 -0400
committerAditya Naik2020-08-03 18:11:57 -0400
commit5154fdecac5260ea3a2fd6416c1186eb4d609449 (patch)
tree91df6c6955a6fb11706920cd5d922d834c170bc4 /ports/posix/src/stream_stdio.c
parent8e1133fcf30fbb4e1d406c47cb87d592c9742c4f (diff)
Added all functions into threads; cleaup
Diffstat (limited to 'ports/posix/src/stream_stdio.c')
-rw-r--r--ports/posix/src/stream_stdio.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/ports/posix/src/stream_stdio.c b/ports/posix/src/stream_stdio.c
index ed83e7b..e9b6f09 100644
--- a/ports/posix/src/stream_stdio.c
+++ b/ports/posix/src/stream_stdio.c
@@ -1,6 +1,19 @@
#include <stdio.h>
+#include <stdlib.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)
{