musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2021年03月15日 10:21:29 -0400
committerRich Felker <dalias@aerifal.cx>2021年03月15日 10:21:29 -0400
commit8ef9d46f4d0ff4f0073da6bee7ed0cb5f9035ead (patch)
tree75cc3d0836a56efcf475943b811421366a2db5bd
parentcfdfd5ea3ce14c6abf7fb22a531f3d99518b5a1b (diff)
downloadmusl-8ef9d46f4d0ff4f0073da6bee7ed0cb5f9035ead.tar.gz
use internal malloc for posix_spawn file actions objects
this makes it possible to perform actions on file actions objects with a libc-internal lock held without creating lock order relationships that are silently imposed on an application-provided malloc.
Diffstat
-rw-r--r--src/process/fdop.h 5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/process/fdop.h b/src/process/fdop.h
index 5adf1443..7cf733b2 100644
--- a/src/process/fdop.h
+++ b/src/process/fdop.h
@@ -10,3 +10,8 @@ struct fdop {
mode_t mode;
char path[];
};
+
+#define malloc __libc_malloc
+#define calloc __libc_calloc
+#define realloc undef
+#define free __libc_free
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月05日 06:03:37 +0000

AltStyle によって変換されたページ (->オリジナル) /