linkat returns EISDIR when target exists

2011-08-05 Thread Simon Josefsson
Hi! I'm porting some software to Debian GNU/Hurd and I think the issues I found are bugs in the Hurd. I haven't reported bugs about the Hurd before, and I'm unsure whether this is an issue with the kernel or libc or some translator, but I'm hoping someone here will know what code to patch. As di

nanosleep modifying second parameter on success

2011-08-05 Thread Simon Josefsson
As reported as 2) in this mail: https://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00027.html it seems the nanosleep function modifies the second parameter on success. This behaviour doesn't seem consistent with the specification at http://pubs.opengroup.org/onlinepubs/9699919799/function

ttyname_r returning EINVAL

2011-08-05 Thread Simon Josefsson
As explained as 4) in this e-mail: https://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00027.html it seems like the ttyname_r function returns EINVAL when the provided buffer is too small. This doesn't seem consistent with the specifcation at: http://pubs.opengroup.org/onlinepubs/969991979

Re: nanosleep modifying second parameter on success

2011-08-05 Thread Samuel Thibault
Simon Josefsson, le Thu 04 Aug 2011 12:10:43 +0200, a écrit : > it seems the nanosleep function modifies the second parameter on > success. > > This behaviour doesn't seem consistent with the specification at > > http://pubs.opengroup.org/onlinepubs/9699919799/functions/nanosleep.html > > It see

[PATCH,HURD] ttyname_r returning EINVAL

2011-08-05 Thread Samuel Thibault
From: Simon Josefsson > As explained as 4) in this e-mail: > > https://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00027.html > > it seems like the ttyname_r function returns EINVAL when the provided > buffer is too small. > > This doesn't seem consistent with the specifcation at: > > htt

Re: linkat returns EISDIR when target exists

2011-08-05 Thread Samuel Thibault
Simon Josefsson, le Thu 04 Aug 2011 12:07:56 +0200, a écrit : > Maybe just a s/EISDIR/EEXIST/ at the appropriate place? IIRC it was looked after at length on bug-hurd last year or two years ago, there was just no conclusion or patch to fix them all. Samuel

Re: linkat returns EISDIR when target exists

2011-08-05 Thread Jérémie Koenig
On Fri, Aug 5, 2011 at 4:26 PM, Samuel Thibault wrote: > Simon Josefsson, le Thu 04 Aug 2011 12:07:56 +0200, a écrit : >> Maybe just a s/EISDIR/EEXIST/ at the appropriate place? > > IIRC it was looked after at length on bug-hurd last year or two years > ago, there was just no conclusion or patch t