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

From: david singleton
Date: Sat Jan 14 2006 - 19:03:00 EST



On Jan 14, 2006, at 4:02 PM, Ulrich Drepper wrote:

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.

can you suggest some error codes you like to use? I'll use
whatever you suggest.

thanks

David

-
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/