summaryrefslogtreecommitdiff
path: root/libc/include/reent.h
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2011-02-05 04:35:27 +0100
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2011-02-05 04:35:27 +0100
commit61ba39a23786a7ae9694705af1d146c00a319144 (patch)
treef9ad51bee751f7e878ac3e7ad4d45f993605c37d /libc/include/reent.h
parente2d292afdb43cd7d9391128563384e1edd53c52e (diff)
Getting rid of newlib, starting to implement a libc. Highly experimental, highly untested.
Diffstat (limited to 'libc/include/reent.h')
-rw-r--r--libc/include/reent.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/libc/include/reent.h b/libc/include/reent.h
new file mode 100644
index 0000000..c3633ee
--- /dev/null
+++ b/libc/include/reent.h
@@ -0,0 +1,16 @@
+#ifndef __RENT_H__
+#define __RENT_H__
+
+#include <errno.h>
+
+struct _reent {
+ enum errno_t _errno;
+};
+
+static inline void _REENT_INIT_PTR(struct _reent * reent) {
+ reent->_errno = ENOERROR;
+}
+
+extern struct _reent * _impure_ptr;
+
+#endif