Re: [robust-futex-1] futex: robust futex support

From: Ulrich Drepper
Date: Sat Jan 14 2006 - 19:01:43 EST


On 1/13/06, David Singleton <dsingleton@xxxxxxxxxx> wrote:
=============================================
> --- linux-2.6.15.orig/include/asm-generic/errno.h
> +++ linux-2.6.15/include/asm-generic/errno.h
> @@ -105,5 +105,6 @@
> /* for robust mutexes */
> #define EOWNERDEAD 130 /* Owner died */
> #define ENOTRECOVERABLE 131 /* State not recoverable */
> +#define ENOTSHARED 132 /* no pshared attribute */

Do not introduce a new error code if at all possible. Adding
userlang-visible error codes means the ABI changes due to the stupid
_sys_errlist variable. Just reuse an error code which cannot be
returned in the futex code so far and which has some kind of
resemblence with what the error means.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/