Re: [PATCH] 2.5.68 FUTEX support should be optional

From: Christoph Hellwig (hch@infradead.org)
Date: Wed May 14 2003 - 01:35:38 EST


On Tue, May 13, 2003 at 11:32:19PM -0700, Andrew Morton wrote:
> asmlinkage long compat_sys_futex(u32 *uaddr, int op, int val,
> struct compat_timespec *utime)
> {
> +#ifdef CONFIG_FUTEX
> struct timespec t;
> unsigned long timeout = MAX_SCHEDULE_TIMEOUT;
>
> @@ -225,6 +224,9 @@ asmlinkage long compat_sys_futex(u32 *ua
> timeout = timespec_to_jiffies(&t) + 1;
> }
> return do_futex((unsigned long)uaddr, op, val, timeout);
> +#else
> + return -ENOSYS;
> +#endif

Please make compat_sys_futex a cond_syscall, too.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu May 15 2003 - 22:00:50 EST