From fed8d9b70d23675323a54d40ed600fe8f73dfaa3 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Fri, 14 Aug 2020 19:52:29 -0400 Subject: add internal state for --- src/unistd/__unistd.c | 7 +++++++ src/unistd/_unistd.h | 18 ++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 src/unistd/__unistd.c create mode 100644 src/unistd/_unistd.h (limited to 'src') diff --git a/src/unistd/__unistd.c b/src/unistd/__unistd.c new file mode 100644 index 00000000..eaed9522 --- /dev/null +++ b/src/unistd/__unistd.c @@ -0,0 +1,7 @@ +#include "_unistd.h" + +struct __unistd __unistd; + +/* +POSIX(1) +*/ diff --git a/src/unistd/_unistd.h b/src/unistd/_unistd.h new file mode 100644 index 00000000..87cdd8f1 --- /dev/null +++ b/src/unistd/_unistd.h @@ -0,0 +1,18 @@ +#ifndef ___UNISTD_H__ +#define ___UNISTD_H__ + +#include +#include +#include + +#ifndef PATH_MAX +#define PATH_MAX _POSIX_PATH_MAX +#endif + +struct __unistd { + char ttyname[PATH_MAX + 1]; +}; + +extern struct __unistd __unistd; + +#endif -- cgit v1.2.1