[PATCH] socket: define SOCK_[CLOEXEC,NONBLOCK] on Darwin

2020-07-29 Thread Aleix Conchillo Flaqué
Hi,

I'm not 100% sure this is correct even though I have found it to be the
solution in other patches on other projects.

Hope this helps,

Aleix


0001-socket-define-SOCK_-CLOEXEC-NONBLOCK-on-Darwin.patch
Description: Binary data


Re: Guile extensions path (includes PATCH)

2020-07-29 Thread Aleix Conchillo Flaqué
Any thoughts on this one?

Thanks,

Aleix

On Mon, Jun 29, 2020 at 7:54 PM Aleix Conchillo Flaqué 
wrote:

> Hi,
>
> I was adding guile-ncurses to homebrew-guile and realized there might be
> an issue in the documentation.
>
> According to this:
>
>
> https://www.gnu.org/software/guile/manual/html_node/Modules-and-Extensions.html
>
> the extensions directory is /usr/lib/guile/3.0/ (or
> /usr/local/lib/guile/3.0/m depending on your libdir). This is the
> directory where guile-ncurses installs libguile-ncurses library.
>
> However, I then saw that guile-readline was installed in
> /usr/local/lib/guile/3.0/extensions. I initially thought this was a
> Homebrew specific location. I looked at the Formula but there's nothing
> specific to Homebrew there.
>
> Then, I looked at guile and found this:
>
> http://git.savannah.gnu.org/cgit/guile.git/tree/libguile/Makefile.am#n772
>
> which indicates the extensions path is really /usr/lib/guile/3.0/
> extensions.
>
> I patched guile-ncurses with this and it works fine now on macOS.
>
> In case this is correct, I'm including a patch to fix the manual.
>
> Best,
>
> Aleix
>
>


Re: [PATCH] socket: define SOCK_[CLOEXEC,NONBLOCK] on Darwin

2020-07-29 Thread Aleix Conchillo Flaqué
I believe this needs extra work, since (accept) is not happy now. I'll keep
you updated.

Aleix

On Wed, Jul 29, 2020, 11:06 AM Aleix Conchillo Flaqué 
wrote:

> Hi,
>
> I'm not 100% sure this is correct even though I have found it to be the
> solution in other patches on other projects.
>
> Hope this helps,
>
> Aleix
>
>


[PATCH] accept4: add support for SOCK_NONBLOCK when using accept()

2020-07-29 Thread Aleix Conchillo Flaqué
SOCK_NONBLOCK was not implemented when accept4() is not available (e.g.
macOS).

I'm currently testing all this with the two new web server implementations
provided with Fibers.

Aleix


0001-accept4-add-support-for-SOCK_NONBLOCK-when-using-acc.patch
Description: Binary data