From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <02b801c40fad$4ab018b0$cbc47d50@SOMA> From: "boyd, rounin" To: <9fans@cse.psu.edu> References: <393a7f63e7c4973e661988f1009f5d7a@vitanuova.com> <20040321232928.GA1197@ratsnest.hole> Subject: Re: [9fans] ls, rc question -- proposed change to rc/glob.c MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Date: Mon, 22 Mar 2004 02:30:31 +0100 Topicbox-Message-UUID: 3c3bf0e4-eacd-11e9-9e20-41e7f4b1d025 > The hack is in libc/gen/opendir.c. Quoting from there: > /* > * The strategy here is to read all the directory > * entries into a buffer, sort the buffer, and > * remove duplicate entries by setting the inode > * number to zero. > */ > Only bloating the kernel with a sort/uniq filter could be worse than that. pure bsd. i can't see the point in adding more code to handle end cases. large N% of the time it's not a problem, so Leave It Alone: http://www.lyricsdepot.com/living-colour/leave-it-alone.html