Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libplist
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pwn
libplist
Commits
5b0184aa
Commit
5b0184aa
authored
Jan 03, 2017
by
Nikias Bassen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
time64: Remove some unused (and non-thread-safe) functions
parent
035148c8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
28 deletions
+0
-28
time64.c
src/time64.c
+0
-24
time64.h
src/time64.h
+0
-4
No files found.
src/time64.c
View file @
5b0184aa
...
...
@@ -49,11 +49,6 @@ gmtime64_r() is a 64-bit equivalent of gmtime_r().
#include "time64_limits.h"
/* Spec says except for stftime() and the _r() functions, these
all return static memory. Stabbings! */
static
struct
TM
Static_Return_Date
;
static
char
Static_Return_String
[
35
];
static
const
char
days_in_month
[
2
][
12
]
=
{
{
31
,
28
,
31
,
30
,
31
,
30
,
31
,
31
,
30
,
31
,
30
,
31
},
{
31
,
29
,
31
,
30
,
31
,
30
,
31
,
31
,
30
,
31
,
30
,
31
},
...
...
@@ -815,22 +810,3 @@ char *ctime64_r( const Time64_T* time, char* result ) {
return
asctime64_r
(
&
date
,
result
);
}
/* Non-thread safe versions of the above */
struct
TM
*
localtime64
(
const
Time64_T
*
time
)
{
tzset
();
return
localtime64_r
(
time
,
&
Static_Return_Date
);
}
struct
TM
*
gmtime64
(
const
Time64_T
*
time
)
{
return
gmtime64_r
(
time
,
&
Static_Return_Date
);
}
char
*
asctime64
(
const
struct
TM
*
date
)
{
return
asctime64_r
(
date
,
Static_Return_String
);
}
char
*
ctime64
(
const
Time64_T
*
time
)
{
tzset
();
return
asctime64
(
localtime64
(
time
));
}
src/time64.h
View file @
5b0184aa
...
...
@@ -45,13 +45,9 @@ struct TM64 {
/* Declare public functions */
struct
TM
*
gmtime64_r
(
const
Time64_T
*
,
struct
TM
*
);
struct
TM
*
localtime64_r
(
const
Time64_T
*
,
struct
TM
*
);
struct
TM
*
gmtime64
(
const
Time64_T
*
);
struct
TM
*
localtime64
(
const
Time64_T
*
);
char
*
asctime64
(
const
struct
TM
*
);
char
*
asctime64_r
(
const
struct
TM
*
,
char
*
);
char
*
ctime64
(
const
Time64_T
*
);
char
*
ctime64_r
(
const
Time64_T
*
,
char
*
);
Time64_T
timegm64
(
const
struct
TM
*
);
...
...
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