Lines Matching defs:res
74 Guard *res;
82 while ((res = znalloc(&MallocPool, bytes, alignment)) == NULL) {
96 res->ga_Magic = GAMAGIC;
98 res->ga_Bytes = bytes;
100 *((signed char *)res + bytes - 1) = -2;
103 return ((char *)res + MALLOCALIGN);
112 Guard *res = (void *)((char *)ptr - MALLOCALIGN);
117 if (res->ga_Magic == GAFREE) {
122 if (res->ga_Magic != GAMAGIC)
125 res->ga_Magic = GAFREE;
128 if (*((signed char *)res + res->ga_Bytes - 1) == -1) {
133 if (*((signed char *)res + res->ga_Bytes - 1) != -2)
135 ptr, res->ga_Bytes - MALLOCALIGN, file, line);
136 *((signed char *)res + res->ga_Bytes - 1) = -1;
139 bytes = res->ga_Bytes;
140 zfree(&MallocPool, res, bytes);
152 void *res;
154 if ((res = Malloc(bytes, file, line)) != NULL) {
155 bzero(res, bytes);
161 return (res);
173 void *res;
176 if ((res = Malloc(size, file, line)) != NULL) {
182 bcopy(ptr, res, old);
184 bcopy(ptr, res, size);
199 return (res);
205 void *res;
207 if ((res = Realloc(ptr, size, file, line)) == NULL)
209 return (res);