]> git.eshelyaron.com Git - emacs.git/commit
List special directories when reading root directory on Android
authorPo Lu <luangruo@yahoo.com>
Sun, 31 Mar 2024 07:33:40 +0000 (15:33 +0800)
committerEshel Yaron <me@eshelyaron.com>
Sun, 31 Mar 2024 18:06:50 +0000 (20:06 +0200)
commit1f19876ce58ad76402f805fbf8178f9548148f03
tree380fde44be51aedc734c62a800b8839b62d87f97
parenteef9c36df1a1d4ea909479dc1db13aac5b335c99
List special directories when reading root directory on Android

* src/androidvfs.c (root_vfs_ops): Substitute
android_root_opendir for android_root_opendir.
(struct android_root_vdir): New structure.
(root_fd, root_fd_references): New variables.
(android_root_readdir, android_root_closedir, android_root_dirfd)
(android_root_opendir): New functions.
(android_fstatat_1): Test provided fd against root_fd, and if
they match, prefix FILENAME with the name of the root directory.

* lisp/ls-lisp.el (ls-lisp-insert-directory): If d-f-a-a signals
an error while retrieving attributes, compile the alist of
directory contents by hand.

(cherry picked from commit 7f377407b4b7d6ac9994ed983d7516bc42139885)
lisp/ls-lisp.el
src/androidvfs.c