On Tue, 5 Jan 2010, Konstantin Belousov wrote:

Log:
 Do not rely on behaviour undefined by ANSI C, use thunks to adapt
 alphasort-like interface to the comparision function required by
 qsort() and qsort_r().

 For opendir() thunk and alphasort(), comment on why we deviated from
 POSIX by using strcmp() instead of strcoll().

 Requested and reviewed by:     bde
 MFC after:     2 weeks

Thanks.

FreeBSD (wollman) fixed the corresponding undefined behaviour (which was
inherited from 4.4BSD) in fts's comparison function in 2002.  fts uses
extra indirections and mostly-wasted space instead of qsort_r().

Bruce
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to