Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Fix Issue 11168: attributes for functions in core.stdc.time. #2372

Merged
merged 1 commit into from
Nov 29, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions src/core/stdc/time.d
Original file line number Diff line number Diff line change
Expand Up @@ -148,21 +148,22 @@ else
}

///
double difftime(time_t time1, time_t time0);
pure double difftime(time_t time1, time_t time0); // MT-Safe
///
time_t mktime(tm* timeptr);
@system time_t mktime(scope tm* timeptr); // @system: MT-Safe env locale
///
time_t time(time_t* timer);
time_t time(scope time_t* timer);

///
char* asctime(in tm* timeptr);
@system char* asctime(const scope tm* timeptr); // @system: MT-Unsafe race:asctime locale
///
char* ctime(in time_t* timer);
@system char* ctime(const scope time_t* timer); // @system: MT-Unsafe race:tmbuf race:asctime env locale
///
tm* gmtime(in time_t* timer);
@system tm* gmtime(const scope time_t* timer); // @system: MT-Unsafe race:tmbuf env locale
///
tm* localtime(in time_t* timer);
@system tm* localtime(const scope time_t* timer); // @system: MT-Unsafe race:tmbuf env locale
///
@system size_t strftime(char* s, size_t maxsize, in char* format, in tm* timeptr);
@system size_t strftime(scope char* s, size_t maxsize, const scope char* format, const scope tm* timeptr); // @system: MT-Safe env locale

version (Windows)
{
Expand All @@ -171,9 +172,9 @@ version (Windows)
///
void _tzset(); // non-standard
///
@system char* _strdate(char* s); // non-standard
@system char* _strdate(return scope char* s); // non-standard
///
@system char* _strtime(char* s); // non-standard
@system char* _strtime(return scope char* s); // non-standard

///
extern __gshared const(char)*[2] tzname; // non-standard
Expand Down