/uspace/trunk/libc/include/sys/time.h |
---|
33,8 → 33,8 |
#define DST_NONE 0 |
typedef sysarg_t time_t; |
typedef sysarg_t suseconds_t; |
typedef long time_t; |
typedef long suseconds_t; |
struct timeval { |
time_t tv_sec; /* seconds */ |
/uspace/trunk/libc/generic/async.c |
---|
286,6 → 286,9 |
assert(PS_connection); |
if (usecs < 0) /* TODO: let it get through the ipc_call once */ |
return 0; |
futex_down(&async_futex); |
if (usecs) { |
655,6 → 658,10 |
amsg_t *msg = (amsg_t *) amsgid; |
connection_t *conn; |
/* TODO: Let it go through the event read at least once */ |
if (timeout < 0) |
return ETIMEOUT; |
futex_down(&async_futex); |
if (msg->done) { |
futex_up(&async_futex); |