lkml.org 
[lkml]   [2012]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC c/r 2/4] [RFC] syscalls, x86: Add __NR_kcmp syscall v7
>> +	case KCMP_SYSVSEM:
>> +#ifdef CONFIG_SYSVIPC
>> + ret = kcmp_ptr((long)task1->sysvsem.undo_list,
>> + (long)task2->sysvsem.undo_list,
>> + KCMP_SYSVSEM);
>> +#else
>> + ret = -EINVAL;
>
> ENOTSUP is better, I think. because of, EINVAL implicitly mean _caller_ is wrong.
> but in this case, it is not bad. only the kernel doesn't have enough feature.
>

Isn't it usually the case for ENOSYS, then ?



\
 
 \ /
  Last update: 2012-01-27 21:37    [from the cache]
©2003-2011 Jasper Spaans