git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Usermode/libc - C++ wrapping in headers, time rework
[tpg/acess2.git]
/
Usermode
/
Libraries
/
libc.so_src
/
include_exp
/
time.h
diff --git
a/Usermode/Libraries/libc.so_src/include_exp/time.h
b/Usermode/Libraries/libc.so_src/include_exp/time.h
index
8480d68
..
4c8d3ea
100644
(file)
--- a/
Usermode/Libraries/libc.so_src/include_exp/time.h
+++ b/
Usermode/Libraries/libc.so_src/include_exp/time.h
@@
-11,6
+11,10
@@
#include <sys/types.h> // time_t
#include <stddef.h> // size_t
#include <sys/types.h> // time_t
#include <stddef.h> // size_t
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct tm
{
int tm_sec; // 0-60
struct tm
{
int tm_sec; // 0-60
@@
-47,16
+51,24
@@
extern time_t time(time_t *t);
//
//! Convert the time structure into a string of form 'Sun Sep 16 01:03:52 1973\n\0'
extern char *asctime(const struct tm *timeptr);
//
//! Convert the time structure into a string of form 'Sun Sep 16 01:03:52 1973\n\0'
extern char *asctime(const struct tm *timeptr);
+extern char *asctime_r(const struct tm *timeptr, char *buf);
//! asctime(localtime(timer))
extern char *ctime(const time_t *timer);
//! asctime(localtime(timer))
extern char *ctime(const time_t *timer);
+extern char *ctime_r(const time_t *timer, struct tm *result);
//! Convert \a timter into UTC
extern struct tm *gmtime(const time_t *timer);
//! Convert \a timter into UTC
extern struct tm *gmtime(const time_t *timer);
+extern struct tm *gmtime_r(const time_t *timer, struct tm *result);
extern struct tm *localtime(const time_t *timer);
extern struct tm *localtime(const time_t *timer);
+extern struct tm *localtime_r(const time_t *timep, struct tm *result);
+
+extern size_t strftime(char*s, size_t maxsize, const char*format, const struct tm*timeptr);
-extern size_t strftime(char*restrict s, size_t maxsize, const char*restrict format, const struct tm*restrict timeptr);
+#ifdef __cplusplus
+};
+#endif
#include <libposix_time.h>
#include <libposix_time.h>
UCC
git Repository :: git.ucc.asn.au