Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
cff575fb
Commit
cff575fb
authored
Nov 02, 2010
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 03, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Implemented _(w)access_s.
parent
f8f7b289
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
8 deletions
+39
-8
msvcr100.spec
dlls/msvcr100/msvcr100.spec
+2
-2
msvcr80.spec
dlls/msvcr80/msvcr80.spec
+2
-2
msvcr90.spec
dlls/msvcr90/msvcr90.spec
+2
-2
file.c
dlls/msvcrt/file.c
+31
-0
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+2
-2
No files found.
dlls/msvcr100/msvcr100.spec
View file @
cff575fb
...
...
@@ -490,7 +490,7 @@
@ cdecl _abnormal_termination() msvcrt._abnormal_termination
@ stub _abs64
@ cdecl _access(str long) msvcrt._access
@
stub
_access_s
@
cdecl _access_s(str long) msvcrt.
_access_s
@ extern _acmdln msvcrt._acmdln
@ cdecl _aligned_free(ptr) msvcrt._aligned_free
@ cdecl _aligned_malloc(long long) msvcrt._aligned_malloc
...
...
@@ -1274,7 +1274,7 @@
@ stub _vwprintf_p_l
@ stub _vwprintf_s_l
@ cdecl _waccess(wstr long) msvcrt._waccess
@
stub _
waccess_s
@
cdecl _waccess_s(wstr long) msvcrt.
waccess_s
@ cdecl _wasctime(ptr) msvcrt._wasctime
@ stub _wasctime_s
@ stub _wassert
...
...
dlls/msvcr80/msvcr80.spec
View file @
cff575fb
...
...
@@ -314,7 +314,7 @@
@ cdecl _abnormal_termination() msvcrt._abnormal_termination
@ stub _abs64
@ cdecl _access(str long) msvcrt._access
@
stub
_access_s
@
cdecl _access_s(str long) msvcrt.
_access_s
@ extern _acmdln msvcrt._acmdln
@ stdcall -arch=i386 _adj_fdiv_m16i(long) msvcrt._adj_fdiv_m16i
@ stdcall -arch=i386 _adj_fdiv_m32(long) msvcrt._adj_fdiv_m32
...
...
@@ -1127,7 +1127,7 @@
@ stub _vwprintf_p_l
@ stub _vwprintf_s_l
@ cdecl _waccess(wstr long) msvcrt._waccess
@
stub
_waccess_s
@
cdecl _waccess_s(wstr long) msvcrt.
_waccess_s
@ cdecl _wasctime(ptr) msvcrt._wasctime
@ stub _wasctime_s
@ stub _wassert
...
...
dlls/msvcr90/msvcr90.spec
View file @
cff575fb
...
...
@@ -306,7 +306,7 @@
@ cdecl _abnormal_termination() msvcrt._abnormal_termination
@ stub _abs64
@ cdecl _access(str long) msvcrt._access
@
stub
_access_s
@
cdecl _access_s(str long) msvcrt.
_access_s
@ extern _acmdln msvcrt._acmdln
@ stdcall -arch=i386 _adj_fdiv_m16i(long) msvcrt._adj_fdiv_m16i
@ stdcall -arch=i386 _adj_fdiv_m32(long) msvcrt._adj_fdiv_m32
...
...
@@ -1114,7 +1114,7 @@
@ stub _vwprintf_p_l
@ stub _vwprintf_s_l
@ cdecl _waccess(wstr long) msvcrt._waccess
@
stub
_waccess_s
@
cdecl _waccess_s(wstr long) msvcrt.
_waccess_s
@ cdecl _wasctime(ptr) msvcrt._wasctime
@ stub _wasctime_s
@ stub _wassert
...
...
dlls/msvcrt/file.c
View file @
cff575fb
...
...
@@ -55,6 +55,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(msvcrt);
/* _access() bit flags FIXME: incomplete */
#define MSVCRT_W_OK 0x02
#define MSVCRT_R_OK 0x04
/* values for wxflag in file descriptor */
#define WX_OPEN 0x01
...
...
@@ -507,6 +508,21 @@ int CDECL MSVCRT__access(const char *filename, int mode)
}
/*********************************************************************
* _access_s (MSVCRT.@)
*/
int
CDECL
_access_s
(
const
char
*
filename
,
int
mode
)
{
if
(
!
MSVCRT_CHECK_PMT
(
filename
!=
NULL
)
||
!
MSVCRT_CHECK_PMT
((
mode
&
~
(
MSVCRT_R_OK
|
MSVCRT_W_OK
))
==
0
))
{
*
MSVCRT__errno
()
=
MSVCRT_EINVAL
;
return
-
1
;
}
return
MSVCRT__access
(
filename
,
mode
);
}
/*********************************************************************
* _waccess (MSVCRT.@)
*/
int
CDECL
_waccess
(
const
MSVCRT_wchar_t
*
filename
,
int
mode
)
...
...
@@ -529,6 +545,21 @@ int CDECL _waccess(const MSVCRT_wchar_t *filename, int mode)
}
/*********************************************************************
* _waccess_s (MSVCRT.@)
*/
int
CDECL
_waccess_s
(
const
MSVCRT_wchar_t
*
filename
,
int
mode
)
{
if
(
!
MSVCRT_CHECK_PMT
(
filename
!=
NULL
)
||
!
MSVCRT_CHECK_PMT
((
mode
&
~
(
MSVCRT_R_OK
|
MSVCRT_W_OK
))
==
0
))
{
*
MSVCRT__errno
()
=
MSVCRT_EINVAL
;
return
-
1
;
}
return
_waccess
(
filename
,
mode
);
}
/*********************************************************************
* _chmod (MSVCRT.@)
*/
int
CDECL
MSVCRT__chmod
(
const
char
*
path
,
int
flags
)
...
...
dlls/msvcrt/msvcrt.spec
View file @
cff575fb
...
...
@@ -271,7 +271,7 @@
@ cdecl _abnormal_termination()
# stub _abs64
@ cdecl _access(str long) MSVCRT__access
# stub _access_s
@ cdecl _access_s(str long)
@ extern _acmdln MSVCRT__acmdln
@ stdcall -arch=i386 _adj_fdiv_m16i(long)
@ stdcall -arch=i386 _adj_fdiv_m32(long)
...
...
@@ -1046,7 +1046,7 @@
# stub _vwprintf_p_l
# stub _vwprintf_s_l
@ cdecl _waccess(wstr long)
# stub _waccess_s
@ cdecl _waccess_s(wstr long)
@ cdecl _wasctime(ptr) MSVCRT__wasctime
# stub _wasctime_s
# stub _wassert
...
...
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