summaryrefslogtreecommitdiff
path: root/test/lisp/emacs-lisp/bytecomp-resources/warn-wide-docstring-defconst.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2022-01-11 08:58:18 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2022-01-11 08:58:39 -0800
commita980795fd0bd2ae5fb0dba27fafbb811bc2ff75d (patch)
tree875f7b4859be26f4f5dd70655b2cba8c777cdcfe /test/lisp/emacs-lisp/bytecomp-resources/warn-wide-docstring-defconst.el
parent68f2d772e51a0f436559bbfe26868eaca23af390 (diff)
downloademacs-a980795fd0bd2ae5fb0dba27fafbb811bc2ff75d.tar.gz
emacs-a980795fd0bd2ae5fb0dba27fafbb811bc2ff75d.tar.bz2
emacs-a980795fd0bd2ae5fb0dba27fafbb811bc2ff75d.zip
Clean up filelock code related to errno
Reduce dependency on Haiku internals, by not assuming that Haiku errno values (which are negative) are neither -1 nor -2. This removes an #ifdef HAIKU while still maintaining portability to Haiku. * src/filelock.c (NEGATIVE_ERRNO, ANOTHER_OWNS_IT, I_OWN_IT): New constants, which should work regardless of whether we are on Haiku or B_USE_POSITIVE_POSIX_ERRORS is defined. (current_lock_owner, lock_if_free, lock_file, unlock_file) (Ffile_locked_p): Use them, without assuming anything about errno value sign.
Diffstat (limited to 'test/lisp/emacs-lisp/bytecomp-resources/warn-wide-docstring-defconst.el')
0 files changed, 0 insertions, 0 deletions