//#include <stdio.h> // printfしたければinclude #include <stdlib.h> // strtof #include <string.h> #include <time.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> #include <locale.h> /** * Linuxの起動時間を取得する **/ time_t getLinuxUptime() { int fd; char buf[64]; char *endptr, *saveptr; ssize_t len; time_t get_time = 0; char *savelocale; fd = open("/proc/uptime", O_RDONLY); if (fd < 0){ // printf("