cvs commit: src/sys/sys imgact_elf.h kernel.h mman.h proc.h queue.h systm.h

Sepherosa Ziehau sepherosa at gmail.com
Wed Jul 23 18:42:01 PDT 2008


On Thu, Jul 24, 2008 at 1:22 AM, Matthew Dillon
<dillon at crater.dragonflybsd.org> wrote:
> dillon      2008/07/23 10:22:33 PDT
>
> DragonFly src repository
>
>  Modified files:
>    sys/sys              imgact_elf.h kernel.h mman.h proc.h
>                         queue.h systm.h
>  Log:
>  Synchronize some of the machine-independant AMD64 bits.
>
>  Obtained-from: Jordan Gordeev <jgordeev at dir.bg>
>
>  Revision  Changes    Path
>  1.9       +1 -0      src/sys/sys/imgact_elf.h
>  1.31      +2 -0      src/sys/sys/kernel.h
>  1.9       +1 -0      src/sys/sys/mman.h
>  1.121     +1 -0      src/sys/sys/proc.h
>  1.10      +6 -0      src/sys/sys/queue.h
>  1.80      +3 -1      src/sys/sys/systm.h
>
>

> http://www.dragonflybsd.org/cvsweb/src/sys/sys/queue.h.diff?r1=1.9&r2=1.10&f=u

Why would we need this:
+#define	TAILQ_FOREACH_SAFE(var, head, field, tvar)			\
+	for ((var) = TAILQ_FIRST((head));				\
+	    (var) && ((tvar) = TAILQ_NEXT((var), field), 1);		\
+	    (var) = (tvar))

We already have TAILQ_FOREACH_MUTABLE

Best Regards,
sephe

-- 
Live Free or Die





More information about the Commits mailing list