From: Paul Eggert Date: Sun, 21 May 2017 05:55:17 +0000 (-0700) Subject: Remove DARWIN_OS_CASE_SENSITIVE_FIXME code X-Git-Tag: emacs-26.0.90~521^2~330 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b35293dfd0e9dd95a88ac01051655d0d2d105992;p=emacs.git Remove DARWIN_OS_CASE_SENSITIVE_FIXME code It does not appear to be needed (Bug#24441). * etc/PROBLEMS: Remove DARWIN_OS_CASE_SENSITIVE_FIXME stuff. * src/fileio.c (file_name_case_insensitive_p): Remove DARWIN_OS_CASE_SENSITIVE_FIXME code. --- diff --git a/etc/PROBLEMS b/etc/PROBLEMS index ff88aa367f2..593eb6b745d 100644 --- a/etc/PROBLEMS +++ b/etc/PROBLEMS @@ -2479,16 +2479,6 @@ please call support for your X-server and see if you can get a fix. If you do, please send it to bug-gnu-emacs@gnu.org so we can list it here. -* Runtime problems specific to Mac OS X - -** On Mac OS X, file-name-case-insensitive-p may be unreliable - -The implementation of that function on Mac OS X uses pathconf with the -_PC_CASE_SENSITIVE flag. There have been reports that this use of -pathconf does not work reliably. If you have a problem, please -recompile Emacs with -D DARWIN_OS_CASE_SENSITIVE_FIXME, and file a bug -report saying whether this fixed your problem. - * Build-time problems ** Configuration diff --git a/src/fileio.c b/src/fileio.c index 17659b692ec..c21056ee6f2 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -2271,27 +2271,6 @@ file_name_case_insensitive_p (const char *filename) return res == 0; #endif - /* There have been reports that pathconf with _PC_CASE_SENSITIVE - does not work reliably on Mac OS X. If you have a problem, - please recompile Emacs with -D DARWIN_OS_CASE_SENSITIVE_FIXME=1 or - -D DARWIN_OS_CASE_SENSITIVE_FIXME=2, and file a bug report saying - whether this fixed your problem. */ - -#ifdef DARWIN_OS_CASE_SENSITIVE_FIXME -# ifdef VOL_CAP_FMT_CASE_SENSITIVE - { - struct attrlist alist = {.bitmapcount = ATTR_BIT_MAP_COUNT, - .volattr = ATTR_VOL_INFO | ATTR_VOL_CAPABILITIES}; - struct { uint32_t len; vol_capabilities_attr_t caps; } vcaps - __attribute__ ((aligned (4), packed)); - int i = VOL_CAPABILITIES_FORMAT; - if (getattrlist (filename, &alist, &vcaps, sizeof vcaps, 0) == 0 - && (vcaps.caps.valid[i] & VOL_CAP_FMT_CASE_SENSITIVE)) - return ! (vcaps.caps.capabilities[i] & VOL_CAP_FMT_CASE_SENSITIVE); - } -# endif -#endif - #if defined CYGWIN || defined DOS_NT return true; #else