1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-02 08:22:22 +00:00
emacs/exec
Paul Eggert 5315e6e8d7 Avoid stpncpy
It’s not worth the porting hassle, and as the glibc manual says,
“this function is generally a poor choice for processing strings”.
* admin/merge-gnulib (GNULIB_MODULES): Remove stpncpy.
* exec/configure.ac: Do not check for stpncpy.
* exec/exec.c (rpl_stpncpy, stpncpy): Remove this replacement.
(exec_0): Properly clear buffer1.  Use memcpy instead of
stpncpy to add the trailing name.  This code is clearly
still suboptimal but efficiency is not that important here
and I tried to minimize the change.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
2023-08-12 12:57:35 -07:00
..
config-mips.m4.in
config.guess
config.sub
configure.ac Avoid stpncpy 2023-08-12 12:57:35 -07:00
deps.mk
exec1.c
exec.c Avoid stpncpy 2023-08-12 12:57:35 -07:00
exec.h
install-sh
loader-aarch64.s
loader-armeabi.s
loader-mips64el.s ; * exec/loader-mips64el.s (rest_of_exec): Fix typo in comment. 2023-06-27 09:53:04 +08:00
loader-mipsel.s
loader-x86_64.s
loader-x86.s
Makefile.in
mipsel-user.h Merge from origin/emacs-29 2023-08-12 13:42:14 -04:00
mipsfpu.c
mipsfpu.h
README
test.c
trace.c Update Android port 2023-07-20 20:50:50 +08:00

This directory holds the source code to a library used to replace the
`execve' and `execveat' system calls, used by the Android port of
Emacs to start executables without intervention from the system.