This is the mail archive of the libc-help@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: Kernel Version


  Hello,

On Sat, Mar 21, 2009 at 01:28:15AM +0530, Shameem Ahamed wrote:
> Is there any glibc supported system call or library function which returns the kernel  details ( specifically the architecture, whether it is a 32 bit or 64 bit).  I was thinking that sysconf system call supports it. But i checked the man pages, and couldn't find a match.

  use the uname(2) syscall. How to find out the architecture depends on
what do you want to do, the architecture your program is compiled for
and the kernel architecture may be different.

				Petr "Pasky" Baudis


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