This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
MIPS definition updates
- From: Daniel Jacobowitz <drow at false dot org>
- To: libc-alpha at sourceware dot org
- Cc: Andreas Jaeger <aj at suse dot de>
- Date: Sun, 29 Jan 2006 11:11:58 -0500
- Subject: MIPS definition updates
Obvious new definitions, in line with other architectures.
--
Daniel Jacobowitz
CodeSourcery
2006-01-29 Daniel Jacobowitz <dan@codesourcery.com>
* sysdeps/unix/sysv/linux/mips/bits/errno.h (ECANCELED,
EOWNERDEAD, ENOTRECOVERABLE): Define.
* sysdeps/unix/sysv/linux/mips/bits/mman.h (MADV_REMOVE): Define.
Index: libc/sysdeps/unix/sysv/linux/mips/bits/errno.h
===================================================================
--- libc.orig/sysdeps/unix/sysv/linux/mips/bits/errno.h 2006-01-29 10:40:24.000000000 -0500
+++ libc/sysdeps/unix/sysv/linux/mips/bits/errno.h 2006-01-29 10:40:56.000000000 -0500
@@ -1,5 +1,6 @@
/* Error constants. MIPS/Linux specific version.
- Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2006
+ 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
@@ -27,6 +28,16 @@
/* Linux has no ENOTSUP error code. */
# define ENOTSUP EOPNOTSUPP
+# ifndef ECANCELED
+# define ECANCELED 158
+# endif
+
+/* Support for error codes to support robust mutexes was added later, too. */
+# ifndef EOWNERDEAD
+# define EOWNERDEAD 165
+# define ENOTRECOVERABLE 166
+# endif
+
# ifndef __ASSEMBLER__
/* Function to get address of global `errno' variable. */
extern int *__errno_location (void) __THROW __attribute__ ((__const__));
Index: libc/sysdeps/unix/sysv/linux/mips/bits/mman.h
===================================================================
--- libc.orig/sysdeps/unix/sysv/linux/mips/bits/mman.h 2006-01-29 10:40:24.000000000 -0500
+++ libc/sysdeps/unix/sysv/linux/mips/bits/mman.h 2006-01-29 10:40:55.000000000 -0500
@@ -1,5 +1,6 @@
/* Definitions for POSIX memory map interface. Linux/MIPS version.
- Copyright (C) 1997, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
+ Copyright (C) 1997, 2000, 2003, 2004, 2005, 2006
+ 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
@@ -84,6 +85,7 @@
#define MADV_SEQUENTIAL 2 /* read-ahead aggressively */
#define MADV_WILLNEED 3 /* pre-fault pages */
#define MADV_DONTNEED 4 /* discard these pages */
+#define MADV_REMOVE 5 /* remove these pages & resources */
#endif
/* Flags for `mremap'. */