mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-25 10:01:02 +01:00
sys/malloc.h: move sys/proc.h MALLOC_DECLAREs here
This avoids the need to explicitly include sys/malloc.h before sys/proc.h. Suggested by: kib Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44766
This commit is contained in:
parent
2a8c50592f
commit
101c80fe46
@ -157,6 +157,9 @@ struct malloc_type_header {
|
|||||||
|
|
||||||
MALLOC_DECLARE(M_CACHE);
|
MALLOC_DECLARE(M_CACHE);
|
||||||
MALLOC_DECLARE(M_DEVBUF);
|
MALLOC_DECLARE(M_DEVBUF);
|
||||||
|
MALLOC_DECLARE(M_PARGS);
|
||||||
|
MALLOC_DECLARE(M_SESSION);
|
||||||
|
MALLOC_DECLARE(M_SUBPROC);
|
||||||
MALLOC_DECLARE(M_TEMP);
|
MALLOC_DECLARE(M_TEMP);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -938,12 +938,6 @@ struct proc {
|
|||||||
#define SINGLE_BOUNDARY 2
|
#define SINGLE_BOUNDARY 2
|
||||||
#define SINGLE_ALLPROC 3
|
#define SINGLE_ALLPROC 3
|
||||||
|
|
||||||
#ifdef MALLOC_DECLARE
|
|
||||||
MALLOC_DECLARE(M_PARGS);
|
|
||||||
MALLOC_DECLARE(M_SESSION);
|
|
||||||
MALLOC_DECLARE(M_SUBPROC);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define FOREACH_PROC_IN_SYSTEM(p) \
|
#define FOREACH_PROC_IN_SYSTEM(p) \
|
||||||
LIST_FOREACH((p), &allproc, p_list)
|
LIST_FOREACH((p), &allproc, p_list)
|
||||||
#define FOREACH_THREAD_IN_PROC(p, td) \
|
#define FOREACH_THREAD_IN_PROC(p, td) \
|
||||||
|
Loading…
Reference in New Issue
Block a user