aboutsummaryrefslogtreecommitdiffstats
path: root/src/android.h
diff options
context:
space:
mode:
authorPo Lu2023-06-08 14:04:31 +0800
committerPo Lu2023-06-08 14:04:31 +0800
commitb1bd40dce197d2938426d1ec33cebd3d51ccc8cf (patch)
tree610f3c3b69d878d62584ad6da607c2c5499bd45f /src/android.h
parentf2b2863ff7380e7c3c31662ca7615bd8edb83440 (diff)
downloademacs-b1bd40dce197d2938426d1ec33cebd3d51ccc8cf.tar.gz
emacs-b1bd40dce197d2938426d1ec33cebd3d51ccc8cf.zip
Update Android port
* src/android.c (android_is_special_directory): New function. (android_get_asset_name, android_content_name_p) (android_get_content_name): * src/android.h (android_is_special_directory) (JNI_STACK_ALIGNMENT_PROLOGUE): * src/fileio.c (check_mutable_filename): * src/filelock.c (WTMP_FILE, make_lock_file_name): * src/inotify.c (IN_ONLYDIR, Finotify_add_watch): Factor out checks against asset and content directories to that function.
Diffstat (limited to 'src/android.h')
-rw-r--r--src/android.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/android.h b/src/android.h
index d0440259161..c748d99a09a 100644
--- a/src/android.h
+++ b/src/android.h
@@ -48,6 +48,7 @@ extern int android_select (int, fd_set *, fd_set *, fd_set *,
48 48
49extern int android_open (const char *, int, mode_t); 49extern int android_open (const char *, int, mode_t);
50extern char *android_user_full_name (struct passwd *); 50extern char *android_user_full_name (struct passwd *);
51extern const char *android_is_special_directory (const char *, const char *);
51extern int android_fstat (int, struct stat *); 52extern int android_fstat (int, struct stat *);
52extern int android_fstatat (int, const char *restrict, 53extern int android_fstatat (int, const char *restrict,
53 struct stat *restrict, int); 54 struct stat *restrict, int);
@@ -195,7 +196,13 @@ extern unsigned int event_serial;
195/* Process related functions. */ 196/* Process related functions. */
196extern int android_rewrite_spawn_argv (const char ***); 197extern int android_rewrite_spawn_argv (const char ***);
197 198
198#endif 199#else /* ANDROID_STUBIFY */
200
201/* Define a substitute for use during Emacs compilation. */
202
203#define android_is_special_directory(name, dir) ((const char *) NULL)
204
205#endif /* !ANDROID_STUBIFY */
199 206
200/* JNI functions should not be built when Emacs is stubbed out for the 207/* JNI functions should not be built when Emacs is stubbed out for the
201 build. These should be documented in EmacsNative.java. */ 208 build. These should be documented in EmacsNative.java. */
@@ -227,5 +234,5 @@ extern void *unused_pointer;
227#define JNI_STACK_ALIGNMENT_PROLOGUE ((void) 0) 234#define JNI_STACK_ALIGNMENT_PROLOGUE ((void) 0)
228#endif /* __i386__ */ 235#endif /* __i386__ */
229 236
230#endif 237#endif /* !ANDROID_STUBIFY */
231#endif /* _ANDROID_H_ */ 238#endif /* _ANDROID_H_ */