lkml.org 
[lkml]   [2005]   [May]   [19]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Illegal use of reserved word in system.h
FromArjan van de Ven <>
DateThu, 19 May 2005 14:27:34 +0200
> First off, I think we need a system-call that will return some of
> the information that now comes from headers. PAGE_SIZE comes to
> mind. You need this for mmap() but there doesn't seem to be any
> way to get it. getpagesize() 'C' library just returns something
> it's swiped from kernel headers when the library was compiled.
> There are other things like the following that sometimes need

for getpagesize() I can see the point

> to be known also.
> 
>  	HZ

HZ may not exist. At all; people are trying to remove it. And userspace
has no business knowing about it either.
>  	TASK_SIZE
what for?

>  	SMP
userspace should not care! Any app that looks at this is buggy; remember
the fully preemptable nature of userspace

>  	Number of errno values

why?

>  	Highest ioctl value used

uhh that;s driver dependent.. and what for ?


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

\
 
 \ /
  Last update: 2005-05-19 14:31    [from the cache]
©2003-2008