]> git.eshelyaron.com Git - emacs.git/commit
Make some file I/O operations more robust on Android
authorPo Lu <luangruo@yahoo.com>
Sat, 19 Aug 2023 05:25:42 +0000 (13:25 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 19 Aug 2023 05:25:42 +0000 (13:25 +0800)
commit2effd18c97bf542e43203c95dd88114159162dd5
treee8122ac2aab7a601d22024582fd90f1eb6bc5be4
parentec8f330df6b512242d0c2d18c8d1e9b112916160
Make some file I/O operations more robust on Android

* src/android.h (android_readlinkat): New prototype.
* src/androidvfs.c (struct android_vops): New function pointer
`readlink'.
(unix_vfs_ops, android_unix_readlink, afs_vfs_ops)
(android_afs_readlink, content_vfs_ops, android_content_mkdir)
(android_content_chmod, authority_vfs_ops)
(android_authority_readlink, saf_root_vfs_ops)
(android_saf_root_readlink, saf_tree_vfs_ops)
(android_saf_tree_readlink, saf_file_vfs_ops, saf_new_vfs_ops)
(android_saf_new_readlink, root_vfs_ops): Implement new
`readlink' vops for each vnode type.
(android_readlinkat): New function.

* src/fileio.c (Fcopy_file): Be more flexible about SELinux
errors under Android.
(emacs_readlinkat): Use `android_readlink' when built as
libemacs.so.
src/android.h
src/androidvfs.c
src/fileio.c