]> git.eshelyaron.com Git - emacs.git/commit
Intercept calls to `openat' under Android
authorPo Lu <luangruo@yahoo.com>
Sat, 27 Jan 2024 02:36:30 +0000 (10:36 +0800)
committerEshel Yaron <me@eshelyaron.com>
Wed, 31 Jan 2024 20:07:09 +0000 (21:07 +0100)
commit38f38e69de50c0247ccc1abfc1bf65a7ba5d34f2
tree5281127233aa826daea5272f2984e893780be2c4
parent2cdf67ae398ae7964b88a98a19d028ca70c66ae2
Intercept calls to `openat' under Android

* exec/configure.ac (OPEN_SYSCALL, OPENAT_SYSCALL): Define new
macros.

* exec/exec.h (struct exec_tracee): New field `sp'.

* exec/trace.c (handle_openat): New function.
(process_system_call): If handle_openat executes successfully,
save the unmodified stack pointer within the tracee structure to
be restored once the system call completes.

(cherry picked from commit c37b50ad417c6cb340f54ffe218f5d889345451a)
exec/configure.ac
exec/exec.h
exec/trace.c