Re: [PATCH] libpthread: make use of the "pthread" sysdep

2013-01-24 Thread Samuel Thibault
Pino Toscano, le Sun 30 Sep 2012 23:53:46 +0200, a écrit : > The following two patches allow to > a) make use of the "pthread" glibc sysdep, which provides implementation >for some functions using pthreads (e.g. aio stuff) > b) hook the libpthread version inside glibc, so it is properly returne

Re: Fwd: [httpfs][PATCH] Fix compilation and bugs.

2013-01-24 Thread Samuel Thibault
Hello, Cyril Roelandt, le Sun 30 Sep 2012 23:23:10 +0200, a écrit : > I wanted to try httpfs, but the code from the CVS repository failed to > compile on my Debian GNU/Hurd box. So, here are a few patches. Thanks! It seems to be working, indeed. An unfortunate thing is that it does not seem to

Re: [PATCH] Fix dynamic linker startup on the Hurd

2013-01-24 Thread Samuel Thibault
Richard Braun, le Wed 23 Jan 2013 00:32:47 +0100, a écrit : > The fmh function could in some cases mistakenly call vm_map with a null > size. A recent kernel fix made that invalid and return KERN_INVALID_ARGUMENT, > which isn't an expected code here, resulting in the linker not starting. > Avoid ca

Re: [PATCH,HURD][RFC] hurdselect: Step2, code split finished

2013-01-24 Thread Svante Signell
On Thu, 2013-01-24 at 12:10 +0100, Svante Signell wrote: > On Wed, 2013-01-23 at 17:52 +0100, Svante Signell wrote: > > On Wed, 2013-01-23 at 00:52 +0100, Samuel Thibault wrote: > > > Svante Signell, le Tue 22 Jan 2013 20:53:06 +0100, a écrit : Now the restructuring is complete (and without excess

Re: [PATCH,HURD] hurdselect: Step1, code split preparations

2013-01-24 Thread Richard Braun
On Tue, Jan 22, 2013 at 09:15:06PM +0100, Pino Toscano wrote: > Actually, from my reading the poll documentation (unlike the select one) > does not say what to do when nfds=0; on Linux, the timeout seems ignored > and 0 is returned right away, with no delay. On my system (Debian squeeze), poll a

Re: [PATCH,HURD] hurdselect: Step1, code split preparations (version 3)

2013-01-24 Thread Richard Braun
On Thu, Jan 24, 2013 at 12:10:05PM +0100, Svante Signell wrote: > Introduced another helper function: _io_select_request() > The patch does the following: > 1) Create another helper function: _io_select_request() (good enough name?) > 2) Sets got to -1 in case of errors and always return got in bot

Re: [PATCH] [RFC] Fix pthread timeout handling and cancellation issues

2013-01-24 Thread Richard Braun
On Thu, Jan 24, 2013 at 12:14:44AM +0100, Richard Braun wrote: > diff --git a/pthread/pt-cancel.c b/pthread/pt-cancel.c > index d19c557..3698cce 100644 > --- a/pthread/pt-cancel.c > +++ b/pthread/pt-cancel.c > @@ -31,9 +31,31 @@ pthread_cancel (pthread_t t) >if (! p) > return ESRCH; > >

Re: [PATCH,HURD] hurdselect: Step1, code split preparations (version 3)

2013-01-24 Thread Svante Signell
On Wed, 2013-01-23 at 17:52 +0100, Svante Signell wrote: > On Wed, 2013-01-23 at 00:52 +0100, Samuel Thibault wrote: > > Svante Signell, le Tue 22 Jan 2013 20:53:06 +0100, a écrit : > Since there was a lot of concerns about code duplication I introduced a > helper function _wait_for_replies(), spl