version 1.39, 2007/10/05 19:28:23 |
version 1.40, 2008/01/10 10:08:22 |
|
|
fatal("gmtime failed"); |
fatal("gmtime failed"); |
|
|
asctime_r(t, timebuf); |
asctime_r(t, timebuf); |
if (timebuf[strlen(timebuf) - 1] == '\n') |
timebuf[strcspn(timebuf, "\n")] = '\0'; |
timebuf[strlen(timebuf) - 1] = '\0'; |
|
|
|
if (gethostname(thishost, sizeof(thishost)) == -1) |
if (gethostname(thishost, sizeof(thishost)) == -1) |
fatal("gethostname failed"); |
fatal("gethostname failed"); |
|
|
fatal("gmtime failed"); |
fatal("gmtime failed"); |
|
|
asctime_r(t, timebuf); |
asctime_r(t, timebuf); |
if (timebuf[strlen(timebuf) - 1] == '\n') |
timebuf[strcspn(timebuf, "\n")] = '\0'; |
timebuf[strlen(timebuf) - 1] = '\0'; |
|
|
|
if (gethostname(thishost, sizeof(thishost)) == -1) |
if (gethostname(thishost, sizeof(thishost)) == -1) |
fatal("gethostname failed"); |
fatal("gethostname failed"); |
|
|
|
|
memset(timebuf, 0, sizeof(timebuf)); |
memset(timebuf, 0, sizeof(timebuf)); |
ctime_r(&cf->file_ent->ce_mtime, timebuf); |
ctime_r(&cf->file_ent->ce_mtime, timebuf); |
if (timebuf[strlen(timebuf) - 1] == '\n') |
timebuf[strcspn(timebuf, "\n")] = '\0'; |
timebuf[strlen(timebuf) - 1] = '\0'; |
|
|
|
(void)xasprintf(&entry, "/%s/%s/%s/%s/%s", |
(void)xasprintf(&entry, "/%s/%s/%s/%s/%s", |
cf->file_name, rbuf, timebuf, |
cf->file_name, rbuf, timebuf, |