Module: wine Branch: refs/heads/master Commit: 3ca608b1b325b82b4e550b45053699b15022b852 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=3ca608b1b325b82b4e550b45...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Jul 26 14:49:13 2006 +0200
ntdll: Renamed the NTDLL_get/from_server_timeout functions since they don't deal only with timeouts.
---
dlls/ntdll/ntdll_misc.h | 4 ++-- dlls/ntdll/process.c | 4 ++-- dlls/ntdll/sync.c | 8 ++++---- dlls/ntdll/time.c | 16 ++++++++-------- 4 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/dlls/ntdll/ntdll_misc.h b/dlls/ntdll/ntdll_misc.h index 3a872ca..0232086 100644 --- a/dlls/ntdll/ntdll_misc.h +++ b/dlls/ntdll/ntdll_misc.h @@ -39,8 +39,8 @@ extern void set_cpu_context( const CONTE extern LPCSTR debugstr_us( const UNICODE_STRING *str ); extern void dump_ObjectAttributes (const OBJECT_ATTRIBUTES *ObjectAttributes);
-extern void NTDLL_get_server_timeout( abs_time_t *when, const LARGE_INTEGER *timeout ); -extern void NTDLL_from_server_timeout( LARGE_INTEGER *timeout, const abs_time_t *when ); +extern void NTDLL_get_server_abstime( abs_time_t *when, const LARGE_INTEGER *timeout ); +extern void NTDLL_from_server_abstime( LARGE_INTEGER *time, const abs_time_t *when ); extern NTSTATUS NTDLL_wait_for_multiple_objects( UINT count, const HANDLE *handles, UINT flags, const LARGE_INTEGER *timeout, HANDLE signal_object );
diff --git a/dlls/ntdll/process.c b/dlls/ntdll/process.c index c187086..02e2b15 100644 --- a/dlls/ntdll/process.c +++ b/dlls/ntdll/process.c @@ -236,8 +236,8 @@ NTSTATUS WINAPI NtQueryInformationProces req->handle = ProcessHandle; if ((ret = wine_server_call( req )) == STATUS_SUCCESS) { - NTDLL_from_server_timeout(&pti.CreateTime, &reply->start_time); - NTDLL_from_server_timeout(&pti.ExitTime, &reply->end_time); + NTDLL_from_server_abstime(&pti.CreateTime, &reply->start_time); + NTDLL_from_server_abstime(&pti.ExitTime, &reply->end_time); } } SERVER_END_REQ; diff --git a/dlls/ntdll/sync.c b/dlls/ntdll/sync.c index 2c52fbc..106b187 100644 --- a/dlls/ntdll/sync.c +++ b/dlls/ntdll/sync.c @@ -484,7 +484,7 @@ NTSTATUS WINAPI NtSetTimer(IN HANDLE han req->expire.sec = 0; req->expire.usec = 0; } - else NTDLL_get_server_timeout( &req->expire, when ); + else NTDLL_get_server_abstime( &req->expire, when );
req->handle = handle; req->period = period; @@ -564,7 +564,7 @@ NTSTATUS WINAPI NtQueryTimer( status = wine_server_call(req);
/* convert server time to absolute NTDLL time */ - NTDLL_from_server_timeout(&basic_info->RemainingTime, &reply->when); + NTDLL_from_server_abstime(&basic_info->RemainingTime, &reply->when); basic_info->TimerState = reply->signaled; } SERVER_END_REQ; @@ -721,7 +721,7 @@ NTSTATUS NTDLL_wait_for_multiple_objects req->flags = flags; req->cookie = &cookie; req->signal = signal_object; - NTDLL_get_server_timeout( &req->timeout, timeout ); + NTDLL_get_server_abstime( &req->timeout, timeout ); wine_server_add_data( req, handles, count * sizeof(HANDLE) ); ret = wine_server_call( req ); } @@ -819,7 +819,7 @@ NTSTATUS WINAPI NtDelayExecution( BOOLEA { abs_time_t when;
- NTDLL_get_server_timeout( &when, timeout ); + NTDLL_get_server_abstime( &when, timeout );
/* Note that we yield after establishing the desired timeout */ NtYieldExecution(); diff --git a/dlls/ntdll/time.c b/dlls/ntdll/time.c index 961ecad..e83da76 100644 --- a/dlls/ntdll/time.c +++ b/dlls/ntdll/time.c @@ -435,11 +435,11 @@ static inline int IsLeapYear(int Year) }
/*********************************************************************** - * NTDLL_get_server_timeout + * NTDLL_get_server_abstime * - * Convert a NTDLL timeout into a timeval struct to send to the server. + * Convert a NTDLL time into an abs_time_t struct to send to the server. */ -void NTDLL_get_server_timeout( abs_time_t *when, const LARGE_INTEGER *timeout ) +void NTDLL_get_server_abstime( abs_time_t *when, const LARGE_INTEGER *timeout ) { UINT remainder;
@@ -484,14 +484,14 @@ void NTDLL_get_server_timeout( abs_time_
/*********************************************************************** - * NTDLL_from_server_timeout + * NTDLL_from_server_abstime * - * Convert a timeval struct from the server into an NTDLL timeout. + * Convert a timeval struct from the server into an NTDLL time. */ -void NTDLL_from_server_timeout( LARGE_INTEGER *timeout, const abs_time_t *when ) +void NTDLL_from_server_abstime( LARGE_INTEGER *time, const abs_time_t *when ) { - timeout->QuadPart = when->sec * (ULONGLONG)TICKSPERSEC + TICKS_1601_TO_1970; - timeout->QuadPart += when->usec * 10; + time->QuadPart = when->sec * (ULONGLONG)TICKSPERSEC + TICKS_1601_TO_1970; + time->QuadPart += when->usec * 10; }