This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PPC64 enable hp-timing


On Tue, 2005-10-25 at 15:59 -0500, Steven Munroe wrote:

> +
> +  fd = open ("/proc/cpuinfo", O_RDONLY);
> +  if (__builtin_expect (fd != -1, 1))
> +    {
> +      /* XXX AFAIK the /proc filesystem can generate "files" only up
> +         to a size of 4096 bytes.  */

I think that assumption isn't true. The seq_file mecanism deals
transparently with that nowadays...

Ben.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]