diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2016-01-31 13:30:15 +0100 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2016-01-31 13:30:15 +0100 |
commit | b495e1d862411c731bf9374e2db949dfb3442fd4 (patch) | |
tree | 657afc10753ff66bcbe72fc766c0923ab0f3bf91 /cbits | |
parent | 57d2cb2a613e909829f22be6218e840b2b4602b5 (diff) |
Use `#const` rather than FFI wrapper for PATH_MAX
This has the side-effect of making two more modules `Safe`-inferred
Diffstat (limited to 'cbits')
-rw-r--r-- | cbits/HsUnix.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/cbits/HsUnix.c b/cbits/HsUnix.c index 8e16803..bdd1e80 100644 --- a/cbits/HsUnix.c +++ b/cbits/HsUnix.c @@ -36,18 +36,6 @@ int __hsunix_push_module(int fd, const char *module) #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). - */ -HsInt __hsunix_long_path_size(void) { -#ifdef PATH_MAX - return PATH_MAX; -#else - return 4096; -#endif -} - /* * read an entry from the directory stream; opt for the * re-entrant friendly way of doing this, if available. |