2
0

alloc.stdout 1.4 KB

123456789101112131415161718192021222324
  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. memalign (size 0): (OK)
  11. memalign: pointer: (alignment OK), error value: 0 = Success
  12. memalign (SIZE_MAX): pointer: (nil), error value: 12 = Out of memory
  13. memalign (alignment 0): pointer: (nil), error value: 22 = Invalid argument
  14. memalign (alignment 3): pointer: (nil), error value: 22 = Invalid argument
  15. aligned_alloc (size % alignment == 0): pointer: (alignment OK), error value: 0 = Success
  16. aligned_alloc (size % alignment != 0): pointer: (nil), error value: 22 = Invalid argument
  17. valloc (size 0): (OK)
  18. valloc: pointer: (alignment OK), error value: 0 = Success
  19. valloc (SIZE_MAX): pointer: (nil), error value: 12 = Out of memory
  20. posix_memalign: pointer: (alignment OK), error value: 0 = Success
  21. posix_memalign (alignment 0): pointer: (nil), error value: 22 = Invalid argument
  22. posix_memalign (non-power-of-two multiple of sizeof(void *)): pointer: (nil), error value: 22 = Invalid argument
  23. posix_memalign (size 0): (OK)
  24. posix_memalign (SIZE_MAX): pointer: (nil), error value: 12 = Out of memory