projects
/
musl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfdfd5e
)
use internal malloc for posix_spawn file actions objects
author
Rich Felker
<dalias@aerifal.cx>
Mon, 15 Mar 2021 14:21:29 +0000
(10:21 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Mon, 15 Mar 2021 14:21:29 +0000
(10:21 -0400)
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.
src/process/fdop.h
patch
|
blob
|
history
diff --git
a/src/process/fdop.h
b/src/process/fdop.h
index
5adf144
..
7cf733b
100644
(file)
--- 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