--- smsdaemon/util.h 2008/06/16 07:39:56 86 +++ smsdaemon/util.h 2008/12/07 00:59:05 132 @@ -35,12 +35,23 @@ int uTimeDiff(const timeval& then, const timeval& now); int mTimeDiff(const timeval& then, const timeval& now); - int my_system(const char* cmd); + timeval GetTimeOfDay(); + + int my_system(const char* cmd, std::string* response = 0); + + std::string readfile(std::string filename); inline void Sleep(unsigned int msec) { - for (unsigned int i=0; i