You ought to check over the syscall lists for various architectures.
They're not as unified as you seem to think.
> [If] you are going to have a major syscall on several platforms (I
> imagine Sparc/UltraSparc isn't the only one), you need to have it on
> all.
Not necessarily. Sometimes libc is the right place for that kind of
adaptation:
int
getpagesize()
{
#ifdef i386
return 4096;
#else
return sys_getpagesize();
#endif
}
That said ... I happen to like sysconf() infinitely more than a unique
system call for just one system characteristic.
-- Chip Salzenberg - a.k.a. - <chip@perlsupport.com> "... under cover of afternoon in the biggest car in the county?!" //MST3K- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/