TOP API GNU
extern char ** environ; // no .h
#include <stdlib.h> char *getenv(const char *NAME); int putenv,(char *__string); int setenv,(const char *__string, const char*__value, int __overwrite); void unsetenv,(const char *__string); // clearenv(); // ???
#include <linux/resource.h> int getrusage(struct task_struct *p, int who, struct rusage __user *ru);
#include/sys/time.h int gettimeofday, (struct timeval *__p, void *__z); #include <time.h> time_t time(time_t *T); struct tm *localtime(time_t *CLOCK); struct tm *localtime_r(time_t *CLOCK, struct tm *RES); struct tm *gmtime(const time_t *CLOCK); struct tm *gmtime_r(const time_t *CLOCK, struct tm *RES); time_t mktime, (struct tm *_timeptr); char *asctime(const struct tm *CLOCK); char *asctime_r(const struct tm *CLOCK, char *BUF); char *ctime(const time_t *CLOCK); char *ctime_r(const time_t *CLOCK, char *BUF); size_t strftime(char *S, size_t MAXSIZE, const char *FORMAT, const struct tm *TIMP);
最新コメント