Re: another manywarnings failure

2012-09-05 Thread Jim Meyering
Eric Blake wrote: > I compiled on FreeBSD 8.2 (gcc 4.2.1), and when I updated to the latest > gnulib, I started to see the following in config.log when running > ./configure CFLAGS=-g: > > configure:53920: checking whether C compiler handles -Wuninitialized > configure:53939: gcc -std=gnu99 -c -g

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

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 c

another manywarnings failure

2012-09-05 Thread Eric Blake
I compiled on FreeBSD 8.2 (gcc 4.2.1), and when I updated to the latest gnulib, I started to see the following in config.log when running ./configure CFLAGS=-g: configure:53920: checking whether C compiler handles -Wuninitialized configure:53939: gcc -std=gnu99 -c -g -Wuninitialized -D_THREAD_SAF

[PATCH] net_if: new module

2012-09-05 Thread Eric Blake
OpenBSD's is not self-contained; this should compile: | #define _POSIX_C_SOURCE 200809L | #include | 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' ... /usr/include/net/if.h:674: error: f

Re: broken OpenBSD [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 doesn't include any interface >> that needs to use struct sockaddr. Which OpenBSD extension function is >> triggering thi

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 6

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) ident

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

RE: poll() emulation in git

2012-09-05 Thread Joachim Schmitz
> From: Joachim Schmitz [mailto:j...@schmitz-digital.de] > Sent: Wednesday, September 05, 2012 2:58 PM > To: 'Paolo Bonzini' > Cc: 'Junio C Hamano'; 'g...@vger.kernel.org'; 'Erik Faye-Lund'; > 'bug-gnulib@gnu.org' > Subject: RE: poll() emulation in git > > > From: Paolo Bonzini [mailto:paolo.bonz

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

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 l

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

Re: poll() emulation in git

2012-09-05 Thread Bastien ROUCARIES
On Wed, Sep 5, 2012 at 1:24 PM, Joachim Schmitz 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 lacking poll() w

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 Ha