diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-12-24 20:07:27 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-12-24 20:07:27 +0000 |
commit | 9333ed0d5846e90035395de2723e6e7069ac9946 (patch) | |
tree | fa7223687f01062a7ef121cbe0f9c02282cfa826 /sysdeps | |
parent | dcc73a8ddac3311936c9737f8ebbf2f448bc1f8f (diff) | |
download | glibc-9333ed0d5846e90035395de2723e6e7069ac9946.zip glibc-9333ed0d5846e90035395de2723e6e7069ac9946.tar.gz glibc-9333ed0d5846e90035395de2723e6e7069ac9946.tar.bz2 |
* sysdeps/unix/sysv/linux/bits/errno.h: Define EOWNERDEAD and
ENOTRECOVERABLE if not already defined.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/unix/sysv/linux/bits/errno.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/bits/errno.h b/sysdeps/unix/sysv/linux/bits/errno.h index 724daba..4de8cbb 100644 --- a/sysdeps/unix/sysv/linux/bits/errno.h +++ b/sysdeps/unix/sysv/linux/bits/errno.h @@ -1,5 +1,5 @@ /* Error constants. Linux specific version. - Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 1998, 1999, 2005 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,12 +27,17 @@ /* Linux has no ENOTSUP error code. */ # define ENOTSUP EOPNOTSUPP -/* Linux also had no ECANCELED error code. Since it is not used here - we define it to an invalid value. */ +/* Older Linux versions also had no ECANCELED error code. */ # ifndef ECANCELED # define ECANCELED 125 # endif +/* Support for error codes to support robust mutexes was added later, too. */ +# ifndef EOWNERDEAD +# define EOWNERDEAD 130 +# define ENOTRECOVERABLE 131 +# endif + # ifndef __ASSEMBLER__ /* Function to get address of global `errno' variable. */ extern int *__errno_location (void) __THROW __attribute__ ((__const__)); |