get linux system status by C language