Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Jun 1996 08:41:54 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-sys@freefall.freebsd.org, nate@freefall.freebsd.org
Subject:   Re: cvs commit:  src/sys/i386/conf files.i386
Message-ID:  <199606072241.IAA06611@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>  Modified:    sys/i386/conf  files.i386
>  Log:
>  Added index as a 'standard' file.  It could be added as 'optional' for
>  ibcs2, but I felt it might be useful in other code as well at a later
>  point.

You probably should have used strchr.  index goes with rindex, but
rindex isn't actually used in the [i386] kernel, and Lite2 has almost
completed removing *index from user code.

OTOH, using a non-STDC function has the advantage that the compiler
won't silently replace it by a possibly-inferior builtin.  This
shouldn't be a problem for rindex/strchr since it should be rarely used.

OTOH, using a non-STDC function has the advantage that gcc may replace
it by a superior builtin :-).

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199606072241.IAA06611>