Lines Matching defs:res
78 Guard *res;
86 while ((res = znalloc(&MallocPool, bytes, alignment)) == NULL) {
100 res->ga_Magic = GAMAGIC;
102 res->ga_Bytes = bytes;
104 *((signed char *)res + bytes - 1) = -2;
107 return ((char *)res + MALLOCALIGN);
116 Guard *res = (void *)((char *)ptr - MALLOCALIGN);
121 if (res->ga_Magic == GAFREE) {
126 if (res->ga_Magic != GAMAGIC) {
134 res->ga_Magic = GAFREE;
137 if (*((signed char *)res + res->ga_Bytes - 1) == -1) {
142 if (*((signed char *)res + res->ga_Bytes - 1) != -2)
144 ptr, res->ga_Bytes - MALLOCALIGN, file, line);
145 *((signed char *)res + res->ga_Bytes - 1) = -1;
148 bytes = res->ga_Bytes;
149 zfree(&MallocPool, res, bytes);
161 void *res;
163 if ((res = Malloc(bytes, file, line)) != NULL) {
164 bzero(res, bytes);
170 return (res);
182 void *res;
185 if ((res = Malloc(size, file, line)) != NULL) {
191 bcopy(ptr, res, old);
193 bcopy(ptr, res, size);
208 return (res);
214 void *res;
216 if ((res = Realloc(ptr, size, file, line)) == NULL)
218 return (res);