version 1.11, 2009/10/10 10:02:48 |
version 1.12, 2009/11/03 20:29:47 |
|
|
s = xmalloc(sizeof *s); |
s = xmalloc(sizeof *s); |
s->references = 0; |
s->references = 0; |
s->flags = 0; |
s->flags = 0; |
s->activity = time(NULL); |
|
|
|
if (gettimeofday(&s->tv, NULL) != 0) |
if (gettimeofday(&s->creation_time, NULL) != 0) |
fatal("gettimeofday failed"); |
fatal("gettimeofday failed"); |
|
memcpy(&s->activity_time, &s->creation_time, sizeof s->activity_time); |
|
|
s->curw = NULL; |
s->curw = NULL; |
TAILQ_INIT(&s->lastw); |
TAILQ_INIT(&s->lastw); |