1From: "Carl Worth" <cworth@cworth.org> 2To: notmuch@notmuchmail.org 3Date: Tue, 17 Nov 2009 12:19:24 -0800 4Subject: [notmuch] preliminary FreeBSD support 5In-Reply-To: <cf0c4d610911171136h1713aa59w9cf9aa31f052ad0a@mail.gmail.com> 6References: <cf0c4d610911171136h1713aa59w9cf9aa31f052ad0a@mail.gmail.com> 7Message-ID: <87lji4lx9v.fsf@yoom.home.cworth.org> 8 9On Tue, 17 Nov 2009 11:36:14 -0800, Alex Botero-Lowry <alex.boterolowry at gmail.com> wrote: 10> I saw the announcement this morning, and was very excited, as I had been 11> hoping sup would be turned into a library, 12> since I like the concept more than the UI (I'd rather an emacs interface). 13 14Hi Alex, 15 16That's great! It's good to hear that there are like-minded people out 17there. I hope that Notmuch will be useful for you. 18 19> I did a preliminary compile which worked out fine, but 20> sysconf(_SC_SC_GETPW_R_SIZE_MAX) returns -1 on 21> FreeBSD, so notmuch_config_open segfaulted. 22> 23> Attached is a patch that supplies a default buffer size of 64 in cases where 24> -1 is returned. 25 26Thanks for the patch. As we discussed in IRC[*], we should probably 27do the correct thing and check for ERANGE and loop as necessary (even if 28sysconf returns a positive value). Example code here: 29 30http://www.opengroup.org/austin/docs/austin_328.txt 31 32-Carl 33 34[*] #notmuch on irc.freenode.net for those who didn't just guess that 35already, (and I'll add that to the website soon). 36 37