Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
6c38471e
Commit
6c38471e
authored
Jun 10, 2005
by
heikki@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
os0sync.c, os0file.c:
Apply Georg Richter's fixes to remove compilation errors on 64-bit Windows
parent
4441b597
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
innobase/os/os0file.c
innobase/os/os0file.c
+9
-9
innobase/os/os0sync.c
innobase/os/os0sync.c
+3
-3
No files found.
innobase/os/os0file.c
View file @
6c38471e
...
...
@@ -605,7 +605,7 @@ os_file_opendir(
lpFindFileData
=
ut_malloc
(
sizeof
(
WIN32_FIND_DATA
));
dir
=
FindFirstFile
(
path
,
lpFindFileData
);
dir
=
FindFirstFile
(
(
LPCTSTR
)
path
,
lpFindFileData
);
ut_free
(
lpFindFileData
);
...
...
@@ -686,15 +686,15 @@ next_file:
ret
=
FindNextFile
(
dir
,
lpFindFileData
);
if
(
ret
)
{
ut_a
(
strlen
(
lpFindFileData
->
cFileName
)
<
OS_FILE_MAX_PATH
);
ut_a
(
strlen
(
(
char
*
)
lpFindFileData
->
cFileName
)
<
OS_FILE_MAX_PATH
);
if
(
strcmp
(
lpFindFileData
->
cFileName
,
"."
)
==
0
||
strcmp
(
lpFindFileData
->
cFileName
,
".."
)
==
0
)
{
if
(
strcmp
(
(
char
*
)
lpFindFileData
->
cFileName
,
"."
)
==
0
||
strcmp
(
(
char
*
)
lpFindFileData
->
cFileName
,
".."
)
==
0
)
{
goto
next_file
;
}
strcpy
(
info
->
name
,
lpFindFileData
->
cFileName
);
strcpy
(
info
->
name
,
(
char
*
)
lpFindFileData
->
cFileName
);
info
->
size
=
(
ib_longlong
)(
lpFindFileData
->
nFileSizeLow
)
+
(((
ib_longlong
)(
lpFindFileData
->
nFileSizeHigh
))
<<
32
);
...
...
@@ -830,7 +830,7 @@ os_file_create_directory(
#ifdef __WIN__
BOOL
rcode
;
rcode
=
CreateDirectory
(
pathname
,
NULL
);
rcode
=
CreateDirectory
(
(
LPCTSTR
)
pathname
,
NULL
);
if
(
!
(
rcode
!=
0
||
(
GetLastError
()
==
ERROR_ALREADY_EXISTS
&&
!
fail_if_exists
)))
{
/* failure */
...
...
@@ -914,7 +914,7 @@ try_again:
ut_error
;
}
file
=
CreateFile
(
name
,
file
=
CreateFile
(
(
LPCTSTR
)
name
,
access
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
,
/* file can be read ansd written also
...
...
@@ -1053,7 +1053,7 @@ os_file_create_simple_no_error_handling(
ut_error
;
}
file
=
CreateFile
(
name
,
file
=
CreateFile
(
(
LPCTSTR
)
name
,
access
,
share_mode
,
NULL
,
/* default security attributes */
...
...
@@ -1200,7 +1200,7 @@ try_again:
ut_error
;
}
file
=
CreateFile
(
name
,
file
=
CreateFile
(
(
LPCTSTR
)
name
,
GENERIC_READ
|
GENERIC_WRITE
,
/* read and write
access */
share_mode
,
/* File can be read also by other
...
...
innobase/os/os0sync.c
View file @
6c38471e
...
...
@@ -121,7 +121,7 @@ os_event_create(
event
->
handle
=
CreateEvent
(
NULL
,
/* No security attributes */
TRUE
,
/* Manual reset */
FALSE
,
/* Initial state nonsignaled */
name
);
(
LPCTSTR
)
name
);
if
(
!
event
->
handle
)
{
fprintf
(
stderr
,
"InnoDB: Could not create a Windows event semaphore; Windows error %lu
\n
"
,
...
...
@@ -177,7 +177,7 @@ os_event_create_auto(
event
->
handle
=
CreateEvent
(
NULL
,
/* No security attributes */
FALSE
,
/* Auto-reset */
FALSE
,
/* Initial state nonsignaled */
name
);
(
LPCTSTR
)
name
);
if
(
!
event
->
handle
)
{
fprintf
(
stderr
,
...
...
@@ -440,7 +440,7 @@ os_mutex_create(
mutex
=
CreateMutex
(
NULL
,
/* No security attributes */
FALSE
,
/* Initial state: no owner */
name
);
(
LPCTSTR
)
name
);
ut_a
(
mutex
);
#else
os_fast_mutex_t
*
mutex
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment