Changes in uspace/lib/c/generic/async.c [d7978525:45cbcaf4] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/async.c
rd7978525 r45cbcaf4 114 114 #include <stdlib.h> 115 115 #include <macros.h> 116 #include "private/libc.h"117 116 118 117 #define CLIENT_HASH_TABLE_BUCKETS 32 … … 638 637 639 638 if (usecs) { 640 get timeofday(&conn->wdata.to_event.expires, NULL);639 getuptime(&conn->wdata.to_event.expires); 641 640 tv_add(&conn->wdata.to_event.expires, usecs); 642 641 } else … … 967 966 { 968 967 struct timeval tv; 969 get timeofday(&tv, NULL);968 getuptime(&tv); 970 969 971 970 futex_down(&async_futex); … … 1024 1023 1025 1024 struct timeval tv; 1026 get timeofday(&tv, NULL);1025 getuptime(&tv); 1027 1026 1028 1027 if (tv_gteq(&tv, &waiter->to_event.expires)) { … … 1331 1330 timeout = 0; 1332 1331 1333 get timeofday(&msg->wdata.to_event.expires, NULL);1332 getuptime(&msg->wdata.to_event.expires); 1334 1333 tv_add(&msg->wdata.to_event.expires, timeout); 1335 1334 … … 1413 1412 msg->wdata.fid = fibril_get_id(); 1414 1413 1415 get timeofday(&msg->wdata.to_event.expires, NULL);1414 getuptime(&msg->wdata.to_event.expires); 1416 1415 tv_add(&msg->wdata.to_event.expires, timeout); 1417 1416 … … 2167 2166 int async_share_in_finalize(ipc_callid_t callid, void *src, unsigned int flags) 2168 2167 { 2169 return ipc_answer_3(callid, EOK, (sysarg_t) src, (sysarg_t) flags, 2170 (sysarg_t) __entry); 2168 return ipc_share_in_finalize(callid, src, flags); 2171 2169 } 2172 2170 … … 2235 2233 int async_share_out_finalize(ipc_callid_t callid, void **dst) 2236 2234 { 2237 return ipc_ answer_2(callid, EOK, (sysarg_t) __entry, (sysarg_t)dst);2235 return ipc_share_out_finalize(callid, dst); 2238 2236 } 2239 2237 … … 2319 2317 int async_data_read_finalize(ipc_callid_t callid, const void *src, size_t size) 2320 2318 { 2321 return ipc_ answer_2(callid, EOK, (sysarg_t) src, (sysarg_t)size);2319 return ipc_data_read_finalize(callid, src, size); 2322 2320 } 2323 2321 … … 2422 2420 int async_data_write_finalize(ipc_callid_t callid, void *dst, size_t size) 2423 2421 { 2424 return ipc_ answer_2(callid, EOK, (sysarg_t) dst, (sysarg_t)size);2422 return ipc_data_write_finalize(callid, dst, size); 2425 2423 } 2426 2424
Note:
See TracChangeset
for help on using the changeset viewer.