From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailout-webserver.scc.kit.edu (mailout-webmail.scc.kit.edu [129.13.185.232]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id s7B3Tcxi030928 for ; Sun, 10 Aug 2014 23:29:38 -0400 (EDT) Received: from hekate.usta.de (asta-nat.asta.uni-karlsruhe.de [172.22.63.82]) by scc-mailout-02.scc.kit.edu with esmtp (Exim 4.72 #1) id 1XGgIi-0003kz-Tr; Mon, 11 Aug 2014 05:29:36 +0200 Received: from donnerwolke.usta.de ([172.24.96.3]) by hekate.usta.de with esmtp (Exim 4.77) (envelope-from ) id 1XGgIi-0002DM-Rc; Mon, 11 Aug 2014 05:29:36 +0200 Received: from iris.usta.de ([172.24.96.5] helo=usta.de) by donnerwolke.usta.de with esmtp (Exim 4.72) (envelope-from ) id 1XGgIi-0006gG-Lm; Mon, 11 Aug 2014 05:29:36 +0200 Received: from schwarze by usta.de with local (Exim 4.77) (envelope-from ) id 1XGgHy-0002G2-2P; Mon, 11 Aug 2014 05:28:50 +0200 Date: Mon, 11 Aug 2014 05:28:50 +0200 From: Ingo Schwarze To: Paul Onyschuk Cc: discuss@mdocml.bsd.lv Subject: Re: Portability of fts() functions Message-ID: <20140811032849.GJ325@iris.usta.de> References: <20140809123827.6df5072f894ac5795f4228d3@gmail.com> <20140809154928.GD30999@iris.usta.de> <20140810125340.6c5c29fcb9288000b093074b@gmail.com> X-Mailinglist: mdocml-discuss Reply-To: discuss@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140810125340.6c5c29fcb9288000b093074b@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Hi Paul, Paul Onyschuk wrote on Sun, Aug 10, 2014 at 12:53:40PM +0200: > On Sat, 9 Aug 2014 17:49:28 +0200 Ingo Schwarze wrote: >> I guess what is needed is a compat_fts.h/compat_fts.c just like >> for ohash(3). I fear that won't be something that can be done >> in a hurry, though. > This may be helpful in future. Libnbcompat from pkgsrc is providing > portable fts(3) implementation under reasonable conditions (3-clause > BSD license). > > http://cvsweb.netbsd.org/bsdweb.cgi/ \ > pkgsrc/pkgtools/libnbcompat/files/nbcompat/ Thanks for the pointer! While i didn't use the NetBSD implementation itself - it seems to lack some bugfixes that the OpenBSD implementation has - the libnbcompat file was quite helpful for inspiration how to work around the lack of d_namlen and ALIGN/ALIGNBYTES on Linux. Anyway, the mdocml.bsd.lv repo now contains a fallback for fts(3) that works for me on OpenBSD and Linux. It will be contained in the future mandoc 1.13.2 release. Yours, Ingo -- To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv