diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 1998-09-11 06:28:06 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 1998-09-11 06:28:06 +0000 |
commit | b186d367a4c375283650b747ae28ea89f92e8087 (patch) | |
tree | 2ef28fefec09ca9fd47512eb71e564e58e5f52ba /sys | |
parent | e3b5ed70c23d747ecf3078f70cfb4657bc6f5c32 (diff) |
Simple queue access methods used in the new pcmcia framework
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/queue.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/sys/queue.h b/sys/sys/queue.h index b1a477f825a..a2ed085bc47 100644 --- a/sys/sys/queue.h +++ b/sys/sys/queue.h @@ -1,4 +1,4 @@ -/* $OpenBSD: queue.h,v 1.10 1998/07/15 22:11:48 deraadt Exp $ */ +/* $OpenBSD: queue.h,v 1.11 1998/09/11 06:28:05 fgsch Exp $ */ /* $NetBSD: queue.h,v 1.11 1996/05/16 05:17:14 mycroft Exp $ */ /* @@ -175,6 +175,13 @@ struct { \ } while (0) /* + * Simple queue access methods. + */ +#define SIMPLEQ_FIRST(head) ((head)->sqh_first) + +#define SIMPLEQ_NEXT(elm, field) ((elm)->field.sqe_next) + +/* * Tail queue definitions. */ #define TAILQ_HEAD(name, type) \ |