[PATCH,HURD] mmap: Use addr parameter even without MAP_FIXED

2011-12-27 Thread Samuel Thibault
Hello, POSIX says that mmap should take the addr parameter as a suggestion in an implementation-defined manner. On GNU/Hurd it's atm not used at all. Some applications (such as firefox) frown on this and just busy-loop. This makes mmap try with anywhere = 0 when addr is non-zero, before trying w

Re: 0-bytes read() blocks for standard fd's while it shouldn't

2011-12-27 Thread Samuel Thibault
Pino Toscano, le Mon 26 Dec 2011 01:25:02 +0100, a écrit : > while debugging, I discovered a problem a bug in read(): when called > with nbyte = 0 for the fd's of stdin/out/err like: > ret = read(0, buf, 0); > it blocks as if it would wait for data, while it should return 0 in > absence of erro