version 1.1.1.2, 2012/10/09 09:36:45
|
version 1.1.1.3, 2013/07/22 01:17:36
|
Line 13
|
Line 13
|
* any later version. |
* any later version. |
* |
* |
* You should have received a copy of the GNU General Public License |
* You should have received a copy of the GNU General Public License |
* (for example COPYING); if not, write to the Free | * (for example COPYING); If not, see <http://www.gnu.org/licenses/>. |
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
* |
* |
* This code was originally developed as a Senior Thesis by Michael Cornwell |
* This code was originally developed as a Senior Thesis by Michael Cornwell |
* at the Concurrent Systems Laboratory (now part of the Storage Systems |
* at the Concurrent Systems Laboratory (now part of the Storage Systems |
Line 95 void syserror(const char *message);
|
Line 94 void syserror(const char *message);
|
|
|
// Function for processing -r option in smartctl and smartd |
// Function for processing -r option in smartctl and smartd |
int split_report_arg(char *s, int *i); |
int split_report_arg(char *s, int *i); |
// Function for processing -c option in smartctl and smartd |
|
int split_report_arg2(char *s, int *i); |
|
|
|
// Function for processing -t selective... option in smartctl |
// Function for processing -t selective... option in smartctl |
int split_selective_arg(char *s, uint64_t *start, uint64_t *stop, int *mode); |
int split_selective_arg(char *s, uint64_t *start, uint64_t *stop, int *mode); |
Line 182 bool nonempty(const void * data, int size);
|
Line 179 bool nonempty(const void * data, int size);
|
|
|
// needed to fix glibc bug |
// needed to fix glibc bug |
void FixGlibcTimeZoneBug(); |
void FixGlibcTimeZoneBug(); |
|
|
// convert time in msec to a text string |
|
void MsecToText(unsigned int msec, char *txt); |
|
|
|
// Format integer with thousands separator |
// Format integer with thousands separator |
const char * format_with_thousands_sep(char * str, int strsize, uint64_t val, |
const char * format_with_thousands_sep(char * str, int strsize, uint64_t val, |