summaryrefslogtreecommitdiff
path: root/libc/malloc_debug/malloc_debug.cpp
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2018-06-01 15:30:54 -0700
committerJosh Gao <jmgao@google.com>2018-07-19 14:28:54 -0700
commitf6e5b582604715729b09db3e36a7aeb8c24b36a4 (patch)
tree1d68c449355f88a0652d3c1e2d6679b54fce1b20 /libc/malloc_debug/malloc_debug.cpp
parentad596bf4fc406c0940d0f76f6b7c4ff22ecee7ac (diff)
Introduce api to track fd ownership in libc.
Add two functions to allow objects that own a file descriptor to enforce that only they can close their file descriptor. Use them in FILE* and DIR*. Bug: http://b/110100358 Test: bionic_unit_tests Test: aosp/master boots without errors Test: treehugger Change-Id: Iecd6e8b26c62217271e0822dc3d2d7888b091a45
Diffstat (limited to 'libc/malloc_debug/malloc_debug.cpp')
0 files changed, 0 insertions, 0 deletions