| 2009 | } |
| 2010 | |
| 2011 | static int |
| 2012 | tcache_destroy_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, |
| 2013 | void *oldp, size_t *oldlenp, void *newp, size_t newlen) { |
| 2014 | int ret; |
| 2015 | unsigned tcache_ind; |
| 2016 | |
| 2017 | WRITEONLY(); |
| 2018 | tcache_ind = UINT_MAX; |
| 2019 | WRITE(tcache_ind, unsigned); |
| 2020 | if (tcache_ind == UINT_MAX) { |
| 2021 | ret = EFAULT; |
| 2022 | goto label_return; |
| 2023 | } |
| 2024 | tcaches_destroy(tsd, tcache_ind); |
| 2025 | |
| 2026 | ret = 0; |
| 2027 | label_return: |
| 2028 | return ret; |
| 2029 | } |
| 2030 | |
| 2031 | /******************************************************************************/ |
| 2032 |
nothing calls this directly
no test coverage detected