diff options
author | Simon Marlow <marlowsd@gmail.com> | 2008-08-21 14:47:54 +0000 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2008-08-21 14:47:54 +0000 |
commit | c1180fec9f1121323b519ea86fd730b29f1b2f6d (patch) | |
tree | 9ce4b4527c5d6428eaa08078077254dc5ab303fd /include | |
parent | 1e118d9a64e928a07f9c7c3a64b4b22e5fca821c (diff) |
move some stuff here from System.Directory, now the dependencies are reversed
Diffstat (limited to 'include')
-rw-r--r-- | include/HsUnix.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/HsUnix.h b/include/HsUnix.h index 4afd51a..5acdb74 100644 --- a/include/HsUnix.h +++ b/include/HsUnix.h @@ -10,6 +10,7 @@ #define HSUNIX_H #include "HsUnixConfig.h" +#include "HsFFI.h" /* ultra-evil... */ #undef PACKAGE_BUGREPORT @@ -200,4 +201,16 @@ INLINE int __hsunix_unsetenv(const char *name) #endif } +/* A size that will contain many path names, but not necessarily all + * (PATH_MAX is not defined on systems with unlimited path length, + * e.g. the Hurd). + */ +INLINE HsInt __hsunix_long_path_size() { +#ifdef PATH_MAX + return PATH_MAX; +#else + return 4096; +#endif +} + #endif |