[Linux-ia64] pipe() not setting errno.
Andreas Schwab
schwab@suse.de
Thu Apr 4 05:36:00 GMT 2002
Anders Herbjørnsen <anders.herbjornsen@start.no> writes:
|> Hello,
|>
|> When running out of file descriptors pipe() does return -1 but
|> errno is not set. This is working ok on IA32 systems, but fails
|> on IA64. I've tested this with kernels 2.4.9 and 2.4.18.
It's a bug in glibc, this should fix it:
2002-04-04 Andreas Schwab <schwab@suse.de>
* sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on
error.
--- sysdeps/unix/sysv/linux/ia64/pipe.S.~1.2.~ 2001-07-16 10:45:29.000000000 +0200
+++ sysdeps/unix/sysv/linux/ia64/pipe.S 2002-04-04 14:35:31.000000000 +0200
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1999, 2000, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by David Mosberger <davidm@hpl.hp.com>
@@ -28,7 +28,7 @@
cmp.ne p6,p0=-1,r10
;;
(p6) st4 [r2]=r8,4
- mov ret0=0
+(p6) mov ret0=0
;;
(p6) st4 [r2]=r9
(p6) ret
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE GmbH, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the Libc-alpha
mailing list