diff options
| author | Po Lu | 2023-08-03 14:50:05 +0800 |
|---|---|---|
| committer | Po Lu | 2023-08-03 14:50:05 +0800 |
| commit | 6d44d08e044dd2a74c6ac65cedb32a8f7a4f82de (patch) | |
| tree | 2d698e41931b708c8c47f174c2471d5423d12424 /src/android.h | |
| parent | 91a7e9d83f212e478958c2bafd59057ec816cba0 (diff) | |
| download | emacs-6d44d08e044dd2a74c6ac65cedb32a8f7a4f82de.tar.gz emacs-6d44d08e044dd2a74c6ac65cedb32a8f7a4f82de.zip | |
Isolate fchmodat within the Android VFS layer
* src/android.h: Update prototypes.
* src/androidvfs.c (unix_vfs_ops, android_unix_chmod, afs_vfs_ops)
(android_afs_chmod, content_vfs_ops, android_content_chmod)
(authority_vfs_ops, android_authority_chmod, saf_root_vfs_ops)
(android_saf_root_chmod, saf_tree_vfs_ops, android_saf_tree_chmod)
(saf_file_vfs_ops, saf_new_vfs_ops, android_saf_new_chmod)
(root_vfs_ops): Add `chmod' to the list of functions implemented
by each vnode.
(android_fchmodat): New function.
* src/fileio.c (Fset_file_modes): Use `emacs_fchmodat'.
* src/lisp.h:
* src/sysdep.c (emacs_fchmodat): Delegate to android_fchmodat on
Android.
Diffstat (limited to 'src/android.h')
| -rw-r--r-- | src/android.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/android.h b/src/android.h index 945bd649c18..cecdfab002f 100644 --- a/src/android.h +++ b/src/android.h | |||
| @@ -74,6 +74,7 @@ extern int android_mkdir (const char *, mode_t); | |||
| 74 | extern int android_renameat_noreplace (int, const char *, | 74 | extern int android_renameat_noreplace (int, const char *, |
| 75 | int, const char *); | 75 | int, const char *); |
| 76 | extern int android_rename (const char *, const char *); | 76 | extern int android_rename (const char *, const char *); |
| 77 | extern int android_fchmodat (int, const char *, mode_t, int); | ||
| 77 | 78 | ||
| 78 | 79 | ||
| 79 | 80 | ||