suricata
|
Go to the source code of this file.
Macros | |
#define | _Q_ASSERT(a) |
#define | CIRCLEQ_HEAD(name, type) |
#define | CIRCLEQ_HEAD_INITIALIZER(head) { CIRCLEQ_END(&head), CIRCLEQ_END(&head) } |
#define | CIRCLEQ_ENTRY(type) |
#define | CIRCLEQ_FIRST(head) ((head)->cqh_first) |
#define | CIRCLEQ_LAST(head) ((head)->cqh_last) |
#define | CIRCLEQ_NEXT(elm, field) ((elm)->field.cqe_next) |
#define | CIRCLEQ_PREV(elm, field) ((elm)->field.cqe_prev) |
#define | CIRCLEQ_EMPTY(head) (CIRCLEQ_FIRST(head) == CIRCLEQ_END(head)) |
#define | CIRCLEQ_FOREACH(var, head, field) |
#define | CIRCLEQ_FOREACH_SAFE(var, head, field, tvar) |
#define | CIRCLEQ_FOREACH_REVERSE(var, head, field) |
#define | CIRCLEQ_FOREACH_REVERSE_SAFE(var, head, headname, field, tvar) |
#define | CIRCLEQ_INIT(head) |
#define | CIRCLEQ_INSERT_AFTER(head, listelm, elm, field) |
#define | CIRCLEQ_INSERT_BEFORE(head, listelm, elm, field) |
#define | CIRCLEQ_INSERT_HEAD(head, elm, field) |
#define | CIRCLEQ_INSERT_TAIL(head, elm, field) |
#define | CIRCLEQ_REMOVE(head, elm, field) |
#define | CIRCLEQ_REPLACE(head, elm, elm2, field) |
#define | CIRCLEQ_END(head) ((void *)(head)) |
#define | TAILQ_HEAD(name, type) |
#define | TAILQ_HEAD_INITIALIZER(head) { NULL, &(head).tqh_first } |
#define | TAILQ_ENTRY(type) |
#define | TAILQ_EMPTY(head) ((head)->tqh_first == NULL) |
#define | TAILQ_FIRST(head) ((head)->tqh_first) |
#define | TAILQ_FOREACH(var, head, field) |
#define | TAILQ_FOREACH_REVERSE(var, head, headname, field) |
#define | TAILQ_INIT(head) |
#define | TAILQ_INSERT_AFTER(head, listelm, elm, field) |
#define | TAILQ_INSERT_BEFORE(listelm, elm, field) |
#define | TAILQ_INSERT_HEAD(head, elm, field) |
#define | TAILQ_INSERT_TAIL(head, elm, field) |
#define | TAILQ_LAST(head, headname) (*(((struct headname *)((head)->tqh_last))->tqh_last)) |
#define | TAILQ_NEXT(elm, field) ((elm)->field.tqe_next) |
#define | TAILQ_PREV(elm, headname, field) (*(((struct headname *)((elm)->field.tqe_prev))->tqh_last)) |
#define | TAILQ_REMOVE(head, elm, field) |
#define | TAILQ_FOREACH_SAFE(var, head, field, tvar) |
#define _Q_ASSERT | ( | a | ) |
This file started as a copy of sys/queue.h from OpenBSD and then had various changes made over time. Now we include the system sys/queue.h and then add missing behavior. On Windows this means we basically add everything. This allows for Suricata builds that integrate with other libraries that make use of sys/queue.h to use the exact same definitions from queue.h instead the Suricata copy.
#define CIRCLEQ_EMPTY | ( | head | ) | (CIRCLEQ_FIRST(head) == CIRCLEQ_END(head)) |
#define CIRCLEQ_ENTRY | ( | type | ) |
#define CIRCLEQ_FOREACH | ( | var, | |
head, | |||
field | |||
) |
#define CIRCLEQ_FOREACH_REVERSE | ( | var, | |
head, | |||
field | |||
) |
#define CIRCLEQ_FOREACH_REVERSE_SAFE | ( | var, | |
head, | |||
headname, | |||
field, | |||
tvar | |||
) |
#define CIRCLEQ_FOREACH_SAFE | ( | var, | |
head, | |||
field, | |||
tvar | |||
) |
#define CIRCLEQ_HEAD | ( | name, | |
type | |||
) |
#define CIRCLEQ_HEAD_INITIALIZER | ( | head | ) | { CIRCLEQ_END(&head), CIRCLEQ_END(&head) } |
#define CIRCLEQ_INIT | ( | head | ) |
#define CIRCLEQ_INSERT_AFTER | ( | head, | |
listelm, | |||
elm, | |||
field | |||
) |
#define CIRCLEQ_INSERT_BEFORE | ( | head, | |
listelm, | |||
elm, | |||
field | |||
) |
#define CIRCLEQ_INSERT_HEAD | ( | head, | |
elm, | |||
field | |||
) |
#define CIRCLEQ_INSERT_TAIL | ( | head, | |
elm, | |||
field | |||
) |
#define CIRCLEQ_REMOVE | ( | head, | |
elm, | |||
field | |||
) |
#define CIRCLEQ_REPLACE | ( | head, | |
elm, | |||
elm2, | |||
field | |||
) |
#define TAILQ_ENTRY | ( | type | ) |
#define TAILQ_FOREACH | ( | var, | |
head, | |||
field | |||
) |
#define TAILQ_FOREACH_REVERSE | ( | var, | |
head, | |||
headname, | |||
field | |||
) |
#define TAILQ_FOREACH_SAFE | ( | var, | |
head, | |||
field, | |||
tvar | |||
) |
#define TAILQ_HEAD | ( | name, | |
type | |||
) |
#define TAILQ_INIT | ( | head | ) |
#define TAILQ_INSERT_AFTER | ( | head, | |
listelm, | |||
elm, | |||
field | |||
) |
#define TAILQ_INSERT_BEFORE | ( | listelm, | |
elm, | |||
field | |||
) |
#define TAILQ_INSERT_HEAD | ( | head, | |
elm, | |||
field | |||
) |
#define TAILQ_INSERT_TAIL | ( | head, | |
elm, | |||
field | |||
) |
#define TAILQ_PREV | ( | elm, | |
headname, | |||
field | |||
) | (*(((struct headname *)((elm)->field.tqe_prev))->tqh_last)) |
#define TAILQ_REMOVE | ( | head, | |
elm, | |||
field | |||
) |