Re: [mingw rfc] Add mkdtemp to gdb/gnulib/ [Re: [PATCH v4 14/14] the "compile" command]

Eli Zaretskii
2014-12-15T17:48:21Z

> Date: Mon, 15 Dec 2014 18:12:25 +0100
> From: Jan Kratochvil <jan.kratochvil@redhat.com>
> Cc: Yao Qi <yao@codesourcery.com>, gdb-patches@sourceware.org, Kai Tietz <ktietz@redhat.com>
>
> Does it mean that after upgrading gnulib we can drop the MS-Windows host
> routines (which need to be written yet) again?
>
> IMO a more clean solution would be s/gdb_select/select/g, drop gdb_select from
> mingw-hdep.c and import gnulib select instead which handles what gdb_select is
> there fore, hopefully more transparently. But I haven't tried any of that.

Beware: each such replacement must be carefully studied before
concluding that it is what we want. In particular, Gnulib's 'select'
is a "package deal": when you import it, you get more than what you
asked for. Some potential issues are with blocking/non-blocking
sockets and anonymous pipes.

IOW, it's not an easy decision, at least not with 'select'.