summaryrefslogtreecommitdiff
path: root/innobase/os
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2005-03-09 14:09:06 +0100
committerunknown <serg@serg.mylan>2005-03-09 14:09:06 +0100
commit48577bb59f5ab34bd01fba50cddc6c00ceb65d41 (patch)
tree4625d7f51e27bb495a5f571cfcad95a20d34e4a9 /innobase/os
parent3b214ab3e82a0de322ebdcbb4175613a3916b5b3 (diff)
parentad019543e601a4d60453efce29603a12ead35fe9 (diff)
downloadmariadb-git-48577bb59f5ab34bd01fba50cddc6c00ceb65d41.tar.gz
merged
BitKeeper/etc/ignore: auto-union BitKeeper/etc/logging_ok: auto-union Build-tools/Do-compile: Auto merged client/mysql.cc: Auto merged client/mysqldump.c: Auto merged include/my_sys.h: Auto merged innobase/buf/buf0lru.c: Auto merged innobase/dict/dict0dict.c: Auto merged innobase/include/page0page.ic: Auto merged innobase/include/srv0srv.h: Auto merged innobase/os/os0thread.c: Auto merged innobase/rem/rem0cmp.c: Auto merged innobase/row/row0mysql.c: Auto merged innobase/row/row0sel.c: Auto merged innobase/srv/srv0srv.c: Auto merged innobase/trx/trx0sys.c: Auto merged innobase/trx/trx0trx.c: Auto merged innobase/ut/ut0ut.c: Auto merged myisam/ft_parser.c: Auto merged myisam/mi_create.c: Auto merged mysql-test/Makefile.am: Auto merged mysql-test/mysql-test-run.pl: Auto merged mysql-test/mysql-test-run.sh: Auto merged mysql-test/r/mysqldump.result: Auto merged mysql-test/r/ndb_alter_table.result: Auto merged mysql-test/t/mysqldump.test: Auto merged mysql-test/t/ndb_alter_table.test: Auto merged mysys/hash.c: Auto merged mysys/my_bitmap.c: Auto merged ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp: Auto merged scripts/make_binary_distribution.sh: Auto merged scripts/make_win_src_distribution.sh: Auto merged sql/net_serv.cc: Auto merged sql/sql_select.cc: Auto merged
Diffstat (limited to 'innobase/os')
-rw-r--r--innobase/os/os0file.c22
-rw-r--r--innobase/os/os0sync.c4
-rw-r--r--innobase/os/os0thread.c4
3 files changed, 15 insertions, 15 deletions
diff --git a/innobase/os/os0file.c b/innobase/os/os0file.c
index 969f7aee859..eeba98a8ab2 100644
--- a/innobase/os/os0file.c
+++ b/innobase/os/os0file.c
@@ -2053,8 +2053,8 @@ try_again:
ut_ad(buf);
ut_ad(n > 0);
- low = offset;
- high = offset_high;
+ low = (DWORD) offset;
+ high = (DWORD) offset_high;
/* Protect the seek / read operation with a mutex */
i = ((ulint) file) % OS_FILE_N_SEEK_MUTEXES;
@@ -2072,7 +2072,7 @@ try_again:
os_n_pending_reads++;
- ret = ReadFile(file, buf, n, &len, NULL);
+ ret = ReadFile(file, buf, (DWORD) n, &len, NULL);
os_n_pending_reads--;
@@ -2164,8 +2164,8 @@ try_again:
ut_ad(buf);
ut_ad(n > 0);
- low = offset;
- high = offset_high;
+ low = (DWORD) offset;
+ high = (DWORD) offset_high;
/* Protect the seek / read operation with a mutex */
i = ((ulint) file) % OS_FILE_N_SEEK_MUTEXES;
@@ -2183,7 +2183,7 @@ try_again:
os_n_pending_reads++;
- ret = ReadFile(file, buf, n, &len, NULL);
+ ret = ReadFile(file, buf, (DWORD) n, &len, NULL);
os_n_pending_reads--;
@@ -2258,8 +2258,8 @@ os_file_write(
ut_ad(buf);
ut_ad(n > 0);
retry:
- low = offset;
- high = offset_high;
+ low = (DWORD) offset;
+ high = (DWORD) offset_high;
/* Protect the seek / write operation with a mutex */
i = ((ulint) file) % OS_FILE_N_SEEK_MUTEXES;
@@ -2288,7 +2288,7 @@ retry:
os_n_pending_writes++;
- ret = WriteFile(file, buf, n, &len, NULL);
+ ret = WriteFile(file, buf, (DWORD) n, &len, NULL);
os_n_pending_writes--;
@@ -3279,7 +3279,7 @@ os_aio(
#ifdef WIN_ASYNC_IO
ibool retval;
BOOL ret = TRUE;
- DWORD len = n;
+ DWORD len = (DWORD) n;
void* dummy_mess1;
void* dummy_mess2;
ulint dummy_type;
@@ -4126,7 +4126,7 @@ loop:
if (os_n_file_reads == os_n_file_reads_old) {
avg_bytes_read = 0.0;
} else {
- avg_bytes_read = os_bytes_read_since_printout /
+ avg_bytes_read = (double) os_bytes_read_since_printout /
(os_n_file_reads - os_n_file_reads_old);
}
diff --git a/innobase/os/os0sync.c b/innobase/os/os0sync.c
index c48c44a4c70..18d92af5054 100644
--- a/innobase/os/os0sync.c
+++ b/innobase/os/os0sync.c
@@ -361,7 +361,7 @@ os_event_wait_time(
ut_a(event);
if (time != OS_SYNC_INFINITE_TIME) {
- err = WaitForSingleObject(event->handle, time / 1000);
+ err = WaitForSingleObject(event->handle, (DWORD) time / 1000);
} else {
err = WaitForSingleObject(event->handle, INFINITE);
}
@@ -408,7 +408,7 @@ os_event_wait_multiple(
ut_a(native_event_array);
ut_a(n > 0);
- index = WaitForMultipleObjects(n, native_event_array,
+ index = WaitForMultipleObjects((DWORD) n, native_event_array,
FALSE, /* Wait for any 1 event */
INFINITE); /* Infinite wait time
limit */
diff --git a/innobase/os/os0thread.c b/innobase/os/os0thread.c
index 91061bc8459..847d0ee1cc7 100644
--- a/innobase/os/os0thread.c
+++ b/innobase/os/os0thread.c
@@ -100,7 +100,7 @@ os_thread_create(
{
#ifdef __WIN__
os_thread_t thread;
- ulint win_thread_id;
+ DWORD win_thread_id;
os_mutex_enter(os_sync_mutex);
os_thread_count++;
@@ -253,7 +253,7 @@ os_thread_sleep(
ulint tm) /* in: time in microseconds */
{
#ifdef __WIN__
- Sleep(tm / 1000);
+ Sleep((DWORD) tm / 1000);
#elif defined(__NETWARE__)
delay(tm / 1000);
#else