some util in c/c++ program on linux