2
0

alloc.stdout 1.5 KB

1234567891011121314151617181920212223242526
  1. malloc (size 0): (OK)
  2. malloc: pointer: (not NULL), error value: 0 = Success
  3. malloc (SIZE_MAX): pointer: (nil), error value: 12 = Out of memory
  4. calloc (size 0): (OK)
  5. calloc: pointer: (not NULL), error value: 0 = Success
  6. calloc (overflowing): pointer: (nil), error value: 12 = Out of memory
  7. realloc (size 0): (OK)
  8. realloc: pointer: (not NULL), error value: 0 = Success
  9. realloc (SIZE_MAX): pointer: (nil), error value: 12 = Out of memory
  10. reallocarray: pointer: (not NULL), error value: 0 = Success
  11. reallocarray (SIZE_MAX): pointer: (nil), error value: 12 = Out of memory
  12. memalign (size 0): (OK)
  13. memalign: pointer: (alignment OK), error value: 0 = Success
  14. memalign (SIZE_MAX): pointer: (nil), error value: 12 = Out of memory
  15. memalign (alignment 0): pointer: (nil), error value: 22 = Invalid argument
  16. memalign (alignment 3): pointer: (nil), error value: 22 = Invalid argument
  17. aligned_alloc (size % alignment == 0): pointer: (alignment OK), error value: 0 = Success
  18. aligned_alloc (size % alignment != 0): pointer: (nil), error value: 22 = Invalid argument
  19. valloc (size 0): (OK)
  20. valloc: pointer: (alignment OK), error value: 0 = Success
  21. valloc (SIZE_MAX): pointer: (nil), error value: 12 = Out of memory
  22. posix_memalign: pointer: (alignment OK), error value: 0 = Success
  23. posix_memalign (alignment 0): pointer: (nil), error value: 22 = Invalid argument
  24. posix_memalign (non-power-of-two multiple of sizeof(void *)): pointer: (nil), error value: 22 = Invalid argument
  25. posix_memalign (size 0): (OK)
  26. posix_memalign (SIZE_MAX): pointer: (nil), error value: 12 = Out of memory