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
504e68ac
Commit
504e68ac
authored
Nov 20, 2010
by
Eryk Wieliczko
Committed by
Alexandre Julliard
Nov 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Implement _ctime32/64_s.
parent
01ab7df6
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
52 additions
and
8 deletions
+52
-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
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+2
-2
time.c
dlls/msvcrt/time.c
+44
-0
No files found.
dlls/msvcr100/msvcr100.spec
View file @
504e68ac
...
...
@@ -560,9 +560,9 @@
@ varargs _cscanf_s(str) msvcrt._cscanf_s
@ varargs _cscanf_s_l(str ptr) msvcrt._cscanf_s_l
@ cdecl _ctime32(ptr) msvcrt._ctime32
@
stub
_ctime32_s
@
cdecl _ctime32_s(str long ptr) msvcrt.
_ctime32_s
@ cdecl _ctime64(ptr) msvcrt._ctime64
@
stub
_ctime64_s
@
cdecl _ctime64_s(str long ptr) msvcrt.
_ctime64_s
@ cdecl _cwait(ptr long long) msvcrt._cwait
@ varargs _cwprintf(wstr) msvcrt._cwprintf
@ stub _cwprintf_l
...
...
dlls/msvcr80/msvcr80.spec
View file @
504e68ac
...
...
@@ -399,9 +399,9 @@
@ varargs _cscanf_s(str) msvcrt._cscanf_s
@ varargs _cscanf_s_l(str ptr) msvcrt._cscanf_s_l
@ cdecl _ctime32(ptr) msvcrt._ctime32
@
stub
_ctime32_s
@
cdecl _ctime32_s(str ptr long) msvcrt.
_ctime32_s
@ cdecl _ctime64(ptr) msvcrt._ctime64
@
stub
_ctime64_s
@
cdecl _ctime64_s(str ptr long) msvcrt.
_ctime64_s
@ cdecl _cwait(ptr long long) msvcrt._cwait
@ varargs _cwprintf(wstr) msvcrt._cwprintf
@ stub _cwprintf_l
...
...
dlls/msvcr90/msvcr90.spec
View file @
504e68ac
...
...
@@ -391,9 +391,9 @@
@ varargs _cscanf_s(str) msvcrt._cscanf_s
@ varargs _cscanf_s_l(str ptr) msvcrt._cscanf_s_l
@ cdecl _ctime32(ptr) msvcrt._ctime32
@
stub
_ctime32_s
@
cdecl _ctime32_s(str long ptr) msvcrt.
_ctime32_s
@ cdecl _ctime64(ptr) msvcrt._ctime64
@
stub
_ctime64_s
@
cdecl _ctime64_s(str long ptr) msvcrt.
_ctime64_s
@ cdecl _cwait(ptr long long) msvcrt._cwait
@ varargs _cwprintf(wstr) msvcrt._cwprintf
@ stub _cwprintf_l
...
...
dlls/msvcrt/msvcrt.spec
View file @
504e68ac
...
...
@@ -356,9 +356,9 @@
@ varargs _cscanf_s(str)
@ varargs _cscanf_s_l(str ptr)
@ cdecl _ctime32(ptr) MSVCRT__ctime32
# stub
_ctime32_s
@ cdecl _ctime32_s(str long ptr) MSVCRT_
_ctime32_s
@ cdecl _ctime64(ptr) MSVCRT__ctime64
# stub
_ctime64_s
@ cdecl _ctime64_s(str long ptr) MSVCRT_
_ctime64_s
@ extern _ctype MSVCRT__ctype
@ cdecl _cwait(ptr long long)
@ varargs _cwprintf(wstr)
...
...
dlls/msvcrt/time.c
View file @
504e68ac
...
...
@@ -902,6 +902,28 @@ char * CDECL MSVCRT__ctime64(const MSVCRT___time64_t *time)
}
/*********************************************************************
* _ctime64_s (MSVCRT.@)
*/
int
CDECL
MSVCRT__ctime64_s
(
char
*
res
,
MSVCRT_size_t
len
,
const
MSVCRT___time64_t
*
time
)
{
struct
MSVCRT_tm
*
t
;
if
(
!
MSVCRT_CHECK_PMT
(
res
!=
NULL
)
||
!
MSVCRT_CHECK_PMT
(
len
>=
26
)
)
{
*
MSVCRT__errno
()
=
MSVCRT_EINVAL
;
return
MSVCRT_EINVAL
;
}
res
[
0
]
=
'\0'
;
if
(
!
MSVCRT_CHECK_PMT
(
time
!=
NULL
)
||
!
MSVCRT_CHECK_PMT
(
time
>
0
)
)
{
*
MSVCRT__errno
()
=
MSVCRT_EINVAL
;
return
MSVCRT_EINVAL
;
}
t
=
MSVCRT__localtime64
(
time
);
strcpy
(
res
,
MSVCRT_asctime
(
t
)
);
return
0
;
}
/*********************************************************************
* _ctime32 (MSVCRT.@)
*/
char
*
CDECL
MSVCRT__ctime32
(
const
MSVCRT___time32_t
*
time
)
...
...
@@ -913,6 +935,28 @@ char * CDECL MSVCRT__ctime32(const MSVCRT___time32_t *time)
}
/*********************************************************************
* _ctime32_s (MSVCRT.@)
*/
int
CDECL
MSVCRT__ctime32_s
(
char
*
res
,
MSVCRT_size_t
len
,
const
MSVCRT___time32_t
*
time
)
{
struct
MSVCRT_tm
*
t
;
if
(
!
MSVCRT_CHECK_PMT
(
res
!=
NULL
)
||
!
MSVCRT_CHECK_PMT
(
len
>=
26
)
)
{
*
MSVCRT__errno
()
=
MSVCRT_EINVAL
;
return
MSVCRT_EINVAL
;
}
res
[
0
]
=
'\0'
;
if
(
!
MSVCRT_CHECK_PMT
(
time
!=
NULL
)
||
!
MSVCRT_CHECK_PMT
(
time
>
0
)
)
{
*
MSVCRT__errno
()
=
MSVCRT_EINVAL
;
return
MSVCRT_EINVAL
;
}
t
=
MSVCRT__localtime32
(
time
);
strcpy
(
res
,
MSVCRT_asctime
(
t
)
);
return
0
;
}
/*********************************************************************
* ctime (MSVCRT.@)
*/
#ifdef _WIN64
...
...
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