DragonFly commits List (threaded) for 2008-07
DragonFly BSD
DragonFly commits List (threaded) for 2008-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: "Sepherosa Ziehau" <sepherosa@xxxxxxxxx>
Date: Thu, 24 Jul 2008 09:41:33 +0800

On Thu, Jul 24, 2008 at 1:22 AM, Matthew Dillon
<dillon@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@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]