1. 15 8月, 2023 1 次提交
  2. 30 5月, 2023 1 次提交
  3. 13 12月, 2022 1 次提交
  4. 30 11月, 2022 1 次提交
  5. 15 11月, 2022 1 次提交
  6. 07 11月, 2022 1 次提交
  7. 13 10月, 2022 1 次提交
  8. 11 10月, 2022 1 次提交
  9. 15 7月, 2022 1 次提交
  10. 06 7月, 2022 1 次提交
  11. 18 1月, 2022 1 次提交
  12. 11 3月, 2021 1 次提交
  13. 09 9月, 2020 1 次提交
  14. 26 8月, 2014 1 次提交
    • R
      add malloc_usable_size function and non-stub malloc.h · 8d998a7b
      Rich Felker 提交于
      this function is needed for some important practical applications of
      ABI compatibility, and may be useful for supporting some non-portable
      software at the source level too.
      
      I was hesitant to add a function which imposes any constraints on
      malloc internals; however, it turns out that any malloc implementation
      which has realloc must already have an efficient way to determine the
      size of existing allocations, so no additional constraint is imposed.
      
      for now, some internal malloc definitions are duplicated in the new
      source file. if/when malloc is refactored to put them in a shared
      internal header file, these could be removed.
      
      since malloc_usable_size is conventionally declared in malloc.h, the
      empty stub version of this file was no longer suitable. it's updated
      to provide the standard allocator functions, nonstandard ones (even if
      stdlib.h would not expose them based on the feature test macros in
      effect), and any malloc-extension functions provided (currently, only
      malloc_usable_size).
      8d998a7b
  15. 12 2月, 2011 1 次提交