Lines Matching refs:errno
57 errno = 0; in main()
60 if (errno != 0) { in main()
61 printf("malloc(0) failed: %s. got %p\n", strerror(errno), r); in main()
110 errno = 0; in main()
116 if ((r && q) || errno != ENOMEM) { in main()
117 … printf("2*malloc(PTRDIFF_MAX) should have failed. got %p,%p error %s\n", r, q, strerror(errno)); in main()
123 errno = 0; in main()
126 if (r || errno != ENOMEM) { in main()
127 printf("malloc(SIZE_MAX) should have failed. got %p error %s\n", r, strerror(errno)); in main()
131 errno = 0; in main()
134 if (r || errno != ENOMEM) { in main()
135 printf("calloc(1, SIZE_MAX) should have failed. got %p error %s\n", r, strerror(errno)); in main()
139 errno = 0; in main()
142 if (r || errno != ENOMEM) { in main()
143 …printf("reallocarray(NULL, 1, SIZE_MAX) should have failed. got %p error %s\n", r, strerror(errno)… in main()
148 errno = 0; in main()
151 if (r || errno != ENOMEM) { in main()
152 …E_MAX >> %d, SIZE_MAX >> %d) should have failed. got %p error %s\n", pow, pow, r, strerror(errno)); in main()
158 if (r || errno != ENOMEM) { in main()
159 …E_MAX >> %d, SIZE_MAX >> %d) should have failed. got %p error %s\n", pow, pow, r, strerror(errno)); in main()