diff options
author | Jakob Kaivo <jkk@ung.org> | 2020-08-14 19:52:29 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2020-08-14 19:52:29 -0400 |
commit | fed8d9b70d23675323a54d40ed600fe8f73dfaa3 (patch) | |
tree | b89da9e8a9dbde34d82765cd9bc4ac4603ecc64b /src/unistd/_unistd.h | |
parent | 103cddc545885b35ad1240d5fbf1e3c2b2ae7811 (diff) |
add internal state for <unistd.h>
Diffstat (limited to 'src/unistd/_unistd.h')
-rw-r--r-- | src/unistd/_unistd.h | 18 |
1 files changed, 18 insertions, 0 deletions
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 <sys/types.h> +#include <unistd.h> +#include <limits.h> + +#ifndef PATH_MAX +#define PATH_MAX _POSIX_PATH_MAX +#endif + +struct __unistd { + char ttyname[PATH_MAX + 1]; +}; + +extern struct __unistd __unistd; + +#endif |