This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Re: [PATCH] Include errno.h in sysdep.h for INLINE_SYSCALL using __set_errno
I've also now committed a corresponding MIPS patch after verifying this is
also needed.
Index: ChangeLog.mips
===================================================================
RCS file: /cvs/glibc/ports/ChangeLog.mips,v
retrieving revision 1.75
diff -u -r1.75 ChangeLog.mips
--- ChangeLog.mips 15 Mar 2009 16:54:26 -0000 1.75
+++ ChangeLog.mips 17 Mar 2009 15:48:47 -0000
@@ -1,3 +1,9 @@
+2009-03-17 Joseph Myers <joseph@codesourcery.com>
+
+ * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Include errno.h.
+ * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
+ * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
+
2009-03-15 Joseph Myers <joseph@codesourcery.com>
* sysdeps/mips/bits/link.h: Uglify function parameter names.
Index: sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
===================================================================
RCS file: /cvs/glibc/ports/sysdeps/unix/sysv/linux/mips/mips32/sysdep.h,v
retrieving revision 1.7
diff -u -r1.7 sysdep.h
--- sysdeps/unix/sysv/linux/mips/mips32/sysdep.h 1 Oct 2008 13:28:13 -0000 1.7
+++ sysdeps/unix/sysv/linux/mips/mips32/sysdep.h 17 Mar 2009 15:48:47 -0000
@@ -1,4 +1,5 @@
-/* Copyright (C) 2000, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2002, 2003, 2004, 2005,
+ 2009 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -24,6 +25,11 @@
#include <tls.h>
+/* In order to get __set_errno() definition in INLINE_SYSCALL. */
+#ifndef __ASSEMBLER__
+#include <errno.h>
+#endif
+
/* For Linux we can use the system call table in the header file
/usr/include/asm/unistd.h
of the kernel. But these symbols do not follow the SYS_* syntax
Index: sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
===================================================================
RCS file: /cvs/glibc/ports/sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h,v
retrieving revision 1.9
diff -u -r1.9 sysdep.h
--- sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h 12 Sep 2007 12:57:41 -0000 1.9
+++ sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h 17 Mar 2009 15:48:47 -0000
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000, 2002, 2003, 2004, 2005, 2006
+/* Copyright (C) 2000, 2002, 2003, 2004, 2005, 2006, 2009
Free Software Foundation, Inc.
This file is part of the GNU C Library.
@@ -25,6 +25,11 @@
#include <tls.h>
+/* In order to get __set_errno() definition in INLINE_SYSCALL. */
+#ifndef __ASSEMBLER__
+#include <errno.h>
+#endif
+
/* For Linux we can use the system call table in the header file
/usr/include/asm/unistd.h
of the kernel. But these symbols do not follow the SYS_* syntax
Index: sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
===================================================================
RCS file: /cvs/glibc/ports/sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h,v
retrieving revision 1.8
diff -u -r1.8 sysdep.h
--- sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h 12 Sep 2007 12:57:41 -0000 1.8
+++ sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h 17 Mar 2009 15:48:47 -0000
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000, 2002, 2003, 2004, 2005, 2006
+/* Copyright (C) 2000, 2002, 2003, 2004, 2005, 2006, 2009
Free Software Foundation, Inc.
This file is part of the GNU C Library.
@@ -25,6 +25,11 @@
#include <tls.h>
+/* In order to get __set_errno() definition in INLINE_SYSCALL. */
+#ifndef __ASSEMBLER__
+#include <errno.h>
+#endif
+
/* For Linux we can use the system call table in the header file
/usr/include/asm/unistd.h
of the kernel. But these symbols do not follow the SYS_* syntax
--
Joseph S. Myers
joseph@codesourcery.com