From b495e1d862411c731bf9374e2db949dfb3442fd4 Mon Sep 17 00:00:00 2001 From: Herbert Valerio Riedel Date: Sun, 31 Jan 2016 13:30:15 +0100 Subject: Use `#const` rather than FFI wrapper for PATH_MAX This has the side-effect of making two more modules `Safe`-inferred --- cbits/HsUnix.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'cbits/HsUnix.c') 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. -- cgit v1.2.3