aboutsummaryrefslogtreecommitdiffstats
path: root/exec/exec.h
diff options
context:
space:
mode:
authorPo Lu2023-05-02 20:45:57 +0800
committerPo Lu2023-05-02 20:45:57 +0800
commitc47716f95b8fda9438047d2683a415a65c18ecbd (patch)
tree947c45293556f41ce02426889890b3442f2b7b36 /exec/exec.h
parentf4512cca0b996e5343ebe57511f45a29f64c4a8e (diff)
downloademacs-c47716f95b8fda9438047d2683a415a65c18ecbd.tar.gz
emacs-c47716f95b8fda9438047d2683a415a65c18ecbd.zip
Update Android port
* exec/config.h.in (__bool_true_false_are_defined): * exec/configure.ac (REENTRANT): New definition. (READLINKAT_SYSCALL, READLINK_SYSCALL): New defines. Set on all hosts. * exec/exec.c (MIN, MAX): Remove redundant declarations. Move to config.h. (exec_0): Copy name of executable into NAME when !REENTRANT. * exec/exec.h (struct exec_tracee): New struct `exec_file'. * exec/trace.c (remove_tracee, handle_exec, handle_readlinkat) (process_system_call, after_fork): Handle readlinkat system calls.
Diffstat (limited to 'exec/exec.h')
-rw-r--r--exec/exec.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/exec/exec.h b/exec/exec.h
index 0f6a8a893b6..625ad0bb219 100644
--- a/exec/exec.h
+++ b/exec/exec.h
@@ -154,6 +154,11 @@ struct exec_tracee
154 /* Whether or not the tracee is currently waiting for a system call 154 /* Whether or not the tracee is currently waiting for a system call
155 to complete. */ 155 to complete. */
156 bool waiting_for_syscall; 156 bool waiting_for_syscall;
157
158#ifndef REENTRANT
159 /* Name of the executable being run. */
160 char *exec_file;
161#endif /* !REENTRANT */
157}; 162};
158 163
159 164
@@ -184,7 +189,7 @@ extern pid_t exec_waitpid (pid_t, int *, int);
184 189
185/* Defined in exec.c. */ 190/* Defined in exec.c. */
186 191
187extern char *exec_0 (const char *, struct exec_tracee *, 192extern char *exec_0 (char *, struct exec_tracee *,
188 size_t *, USER_REGS_STRUCT *); 193 size_t *, USER_REGS_STRUCT *);
189 194
190 195