projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add xmalloc(), xcalloc() functions.
[pintos-anon]
/
src
/
threads
/
malloc.h
diff --git
a/src/threads/malloc.h
b/src/threads/malloc.h
index 2f191557817347e1f9c8d5c6bf6aacc710d79b79..4f0d0bf32f370557e0a13a0dfaa1f1f2f50df4cb 100644
(file)
--- a/
src/threads/malloc.h
+++ b/
src/threads/malloc.h
@@
-6,7
+6,9
@@
void malloc_init (void);
void *malloc (size_t) __attribute__ ((malloc));
void malloc_init (void);
void *malloc (size_t) __attribute__ ((malloc));
+void *xmalloc (size_t) __attribute__ ((malloc));
void *calloc (size_t, size_t) __attribute__ ((malloc));
void *calloc (size_t, size_t) __attribute__ ((malloc));
+void *xcalloc (size_t, size_t) __attribute__ ((malloc));
void free (void *);
#endif /* threads/malloc.h */
void free (void *);
#endif /* threads/malloc.h */