\brief Retrieve the modification time of a file. * \param filename The full path to the file. * \return The timestamp of the latest modification to the file. */
| 205 | * \param filename The full path to the file. |
| 206 | * \return The timestamp of the latest modification to the file. */ |
| 207 | static time_t |
| 208 | file_modtime( char* filename ) |
| 209 | { |
| 210 | struct tm* clock; |
| 211 | struct stat attrib; |
| 212 | |
| 213 | stat( filename, &attrib ); |
| 214 | clock = gmtime( &( attrib.st_mtime ) ); |
| 215 | |
| 216 | return mktime( clock ); |
| 217 | } |
| 218 | |
| 219 | |
| 220 | /** \brief Retrieve a serverinfo struct for one a sever definition. |
no test coverage detected