summaryrefslogtreecommitdiff
path: root/libc/malloc_hooks/malloc_hooks.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2020-12-04 18:51:42 -0800
committerElliott Hughes <enh@google.com>2020-12-08 22:26:06 -0800
commit439ebbd3492ad3a8b8398fa80b0860baeb50a40e (patch)
tree5bcaa629808b35484cefbcda47d91c1dcbc21171 /libc/malloc_hooks/malloc_hooks.cpp
parent925431a072737d4c1bbf18f3da7ab24a25486870 (diff)
Simplify and improve tempnam() and tmpnam().
They're both obsolescent in POSIX.1-2008, and you really shouldn't be using them, but since we can't actually delete them... This change makes them both obey $TMPDIR if set, and fall back to /data/local/tmp otherwise. That's as good as we've managed for anything else such as tmpfile(3). Also add some tests. Bug: http://b/174682340 Test: treehugger Change-Id: Ieef99dcc2062f84b2b7cbae046787fdfe975e772
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions