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 -- To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org