svn commit: r306620 - head/usr.bin/mkimg

Conrad Meyer cem at freebsd.org
Mon Oct 3 17:36:26 UTC 2016


On Sun, Oct 2, 2016 at 6:46 PM, Marcel Moolenaar <marcel at freebsd.org> wrote:
> Author: marcel
> Date: Mon Oct  3 01:46:47 2016
> New Revision: 306620
> URL: https://svnweb.freebsd.org/changeset/base/306620
>
> Log:
>   Replace STAILQ with TAILQ. TAILQs are portable enough that they can
>   be used on both macOS and Linux. STAILQs are not. In particular,
>   STAILQ_LAST does not next on Linux. Since neither STAILQ_FOREACH_SAFE
>   nor TAILQ_FOREACH_SAFE exist on Linux, replace its use with a regular
>   TAILQ_FOREACH. The _SAFE variant was only used for having the next
>   pointer in a local variable.

All of these routines are available in the "libbsd" sys/queue.h.  You
might find other helpful portability/compatibility routines there,
requiring fewer changes to the FreeBSD mkimg.

Best,
Conrad


More information about the svn-src-head mailing list