RE: poll() emulation in git

2012-09-05 Thread Joachim Schmitz
From: Joachim Schmitz [mailto:j...@schmitz-digital.de] Sent: Tuesday, September 04, 2012 1:49 PM To: 'Junio C Hamano' Cc: 'g...@vger.kernel.org'; 'Erik Faye-Lund' Subject: RE: [PATCH v2] Support non-WIN32 system lacking poll() while keeping the WIN32 part intact From: Junio C Hamano

Re: poll() emulation in git

2012-09-05 Thread Bastien ROUCARIES
On Wed, Sep 5, 2012 at 1:24 PM, Joachim Schmitz j...@schmitz-digital.de wrote: From: Joachim Schmitz [mailto:j...@schmitz-digital.de] Sent: Tuesday, September 04, 2012 1:49 PM To: 'Junio C Hamano' Cc: 'g...@vger.kernel.org'; 'Erik Faye-Lund' Subject: RE: [PATCH v2] Support non-WIN32 system

RE: poll() emulation in git

2012-09-05 Thread Joachim Schmitz
From: Bastien ROUCARIES [mailto:roucaries.bast...@gmail.com] Sent: Wednesday, September 05, 2012 1:55 PM To: Joachim Schmitz Cc: Junio C Hamano; Paolo Bonzini; bug-gnulib@gnu.org; g...@vger.kernel.org; Erik Faye-Lund Subject: Re: poll() emulation in git On Wed, Sep 5, 2012 at 1:24 PM,

Re: poll() emulation in git

2012-09-05 Thread Paolo Bonzini
Il 05/09/2012 13:24, Joachim Schmitz ha scritto: However: this poll implementation, while compiling OK, doesn't work properly. Because it uses recv(...,MSG_PEEK), it works on sockets only (returns ENOTSOCK on anything else), while the real poll() works on all kind if file descriptors, at

RE: poll() emulation in git

2012-09-05 Thread Joachim Schmitz
From: Paolo Bonzini [mailto:paolo.bonz...@gmail.com] On Behalf Of Paolo Bonzini Sent: Wednesday, September 05, 2012 2:05 PM To: Joachim Schmitz Cc: 'Junio C Hamano'; g...@vger.kernel.org; 'Erik Faye-Lund'; bug-gnulib@gnu.org Subject: Re: poll() emulation in git Il 05/09/2012 13:24,

Re: poll() emulation in git

2012-09-05 Thread Paolo Bonzini
Il 05/09/2012 15:36, Joachim Schmitz ha scritto: Does your system have a working FIONREAD ioctl for pipes? It does have FIONREAD ioctl. Whether it works properly is to be determined... I'll test if you could show me how? Oh, now I see what you aimed at, but no, that Mac OS X method

readutmp: Non-portable UT_PID use.

2012-09-05 Thread Mats Erik Andersson
Dear all, the module readutmp is broken for the standard use read_utmp(..., READ_UTMP_USER_PROCESS | READ_UTMP_CHECK_PIDS) for all releases of FreeBSD until 8.3, and all OpenBSD ever released. The reason is that those systems do not provide `utmp.ut_pid', thus making the macro UT_PID(u)

Re: readutmp: Non-portable UT_PID use.

2012-09-05 Thread Eric Blake
On 09/05/2012 02:08 PM, Mats Erik Andersson wrote: Dear all, the module readutmp is broken for the standard use read_utmp(..., READ_UTMP_USER_PROCESS | READ_UTMP_CHECK_PIDS) for all releases of FreeBSD until 8.3, and all OpenBSD ever released. Thanks for the report. From

Re: broken OpenBSD net/if.h [was: [libvirt] [PATCH] Include some extra headers needed for OpenBSD.]

2012-09-05 Thread Eric Blake
On 09/04/2012 11:23 AM, Jasper Lievisse Adriaanse wrote: On Tue, Sep 04, 2012 at 11:08:30AM -0600, Eric Blake wrote: [adding gnulib] Ouch. The POSIX definition of net/if.h doesn't include any interface that needs to use struct sockaddr. Which OpenBSD extension function is triggering this

[PATCH] net_if: new module

2012-09-05 Thread Eric Blake
OpenBSD's net/if.h is not self-contained; this should compile: | #define _POSIX_C_SOURCE 200809L | #include net/if.h | struct if_nameindex i; but fails with: In file included from foo.c:2: /usr/include/net/if.h:112: error: expected specifier-qualifier-list before 'u_int' ...

Re: GNU sed version 4.2.1: on OS X, C locale gets aliased to UTF-8

2012-09-05 Thread Max Horn
Hi there, once again, I am begging the gnulib team to consider fixing an issue in the locale code of gnulib which causes errors when using GNU sed on Mac OS X -- i.e. scrips (such as git filter-branches) start failing when one installs GNU sed 4.2.1, due to this bug in gnulib. Moreover, the

Re: readutmp: Non-portable UT_PID use.

2012-09-05 Thread Jim Meyering
Eric Blake wrote: On 09/05/2012 02:08 PM, Mats Erik Andersson wrote: Dear all, the module readutmp is broken for the standard use read_utmp(..., READ_UTMP_USER_PROCESS | READ_UTMP_CHECK_PIDS) for all releases of FreeBSD until 8.3, and all OpenBSD ever released. Thanks for the report.