From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-2.sys.kth.se (smtp-2.sys.kth.se [130.237.32.160]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id p6FAUwHe028358 for ; Fri, 15 Jul 2011 06:30:58 -0400 (EDT) Received: from mailscan-1.sys.kth.se (mailscan-1.sys.kth.se [130.237.32.91]) by smtp-2.sys.kth.se (Postfix) with ESMTP id 84AE414EA16 for ; Fri, 15 Jul 2011 12:30:52 +0200 (CEST) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-2.sys.kth.se ([130.237.32.160]) by mailscan-1.sys.kth.se (mailscan-1.sys.kth.se [130.237.32.91]) (amavisd-new, port 10024) with LMTP id oOsWL8D2DCmZ for ; Fri, 15 Jul 2011 12:30:51 +0200 (CEST) X-KTH-Auth: kristaps [89.158.117.88] X-KTH-mail-from: kristaps@bsd.lv X-KTH-rcpt-to: source@mdocml.bsd.lv Received: from macky.local (89-158-117-88.rev.dartybox.com [89.158.117.88]) by smtp-2.sys.kth.se (Postfix) with ESMTP id 7860214DCAC for ; Fri, 15 Jul 2011 12:30:50 +0200 (CEST) Message-ID: <4E2016DA.1020602@bsd.lv> Date: Fri, 15 Jul 2011 12:30:50 +0200 From: Kristaps Dzonsons User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 To: source@mdocml.bsd.lv Subject: Re: mdocml: First step of making mandocdb a true makewhatis/mandb References: <201107151015.p6FAFOT7026926@krisdoz.my.domain> In-Reply-To: <201107151015.p6FAFOT7026926@krisdoz.my.domain> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > +static int > +ofile_build(const char *dir, struct of **of) > +{ > + DIR *d; > + const char *fn; > + struct of *nof; > + struct dirent *dp; > + > + if (NULL == (d = opendir(dir))) { > + perror(dir); > + return(0); > + } > + > + while (NULL != (dp = readdir(d))) { > + fn = dp->d_name; > + if (DT_DIR == dp->d_type) { > + if (strcmp(".", fn)&& strcmp("..", fn)) > + if ( ! ofile_build(dp->d_name, of)) > + return(0); This of course is wrong and will be fixed in the next few releases as I iron out the bugs... Oops! -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv