aboutsummaryrefslogtreecommitdiff
path: root/src
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 /src
parentcfdfd5ea3ce14c6abf7fb22a531f3d99518b5a1b (diff)
downloadmusl-8ef9d46f4d0ff4f0073da6bee7ed0cb5f9035ead.tar.gz
musl-8ef9d46f4d0ff4f0073da6bee7ed0cb5f9035ead.tar.xz
musl-8ef9d46f4d0ff4f0073da6bee7ed0cb5f9035ead.zip
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 (limited to 'src')
-rw-r--r--src/process/fdop.h5
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