summaryrefslogtreecommitdiff
path: root/libc/include/reent.h
blob: c3633ee0bd93acb9c74605b12116de297ac7d5ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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