Initial import of <linux/rtc.h> related stuff#965
Merged
Frenzie merged 1 commit intokoreader:masterfrom Sep 5, 2019
Merged
Conversation
For future FFI shenanigans ;)
NiLuJe
commented
Sep 5, 2019
| }; | ||
| static const int RTC_WKALM_SET = 1076391951; | ||
| static const int RTC_WKALM_RD = 2150133776; | ||
| typedef long int time_t; |
Member
Author
There was a problem hiding this comment.
This might have been tricky (Y2K38 stuff), but apparently is accurate on Kobo:
echo | arm-kobo-linux-gnueabihf-gcc -E -xc -include 'time.h' - | grep time_t
__extension__ typedef long int __time_t;
typedef __time_t time_t;
__time_t tv_sec;
extern time_t time (time_t *__timer) __attribute__ ((__nothrow__ , __leaf__));
extern double difftime (time_t __time1, time_t __time0)
extern time_t mktime (struct tm *__tp) __attribute__ ((__nothrow__ , __leaf__));
extern struct tm *gmtime (__const time_t *__timer) __attribute__ ((__nothrow__ , __leaf__));
extern struct tm *localtime (__const time_t *__timer) __attribute__ ((__nothrow__ , __leaf__));
extern struct tm *gmtime_r (__const time_t *__restrict __timer,
extern struct tm *localtime_r (__const time_t *__restrict __timer,
extern char *ctime (__const time_t *__timer) __attribute__ ((__nothrow__ , __leaf__));
extern char *ctime_r (__const time_t *__restrict __timer,
extern int stime (__const time_t *__when) __attribute__ ((__nothrow__ , __leaf__));
extern time_t timegm (struct tm *__tp) __attribute__ ((__nothrow__ , __leaf__));
extern time_t timelocal (struct tm *__tp) __attribute__ ((__nothrow__ , __leaf__));
Plus, it didn't blow up at runtime on my H2O :D.
Member
There was a problem hiding this comment.
I'll still pcall it of course. :-p
Member
Author
There was a problem hiding this comment.
Ultimately we use it as a pointer, so it wouldn't matter too much, I think?
Member
|
Best to include a link. ;-) https://gitter.im/koreader/koreader?at=5d7138eac5939027201a53c9 |
Frenzie
approved these changes
Sep 5, 2019
Frenzie
added a commit
to Frenzie/koreader
that referenced
this pull request
Sep 5, 2019
Depends on koreader/koreader-base#963. Also includes Initial import of <linux/rtc.h> related stuff koreader/koreader-base#965
Frenzie
added a commit
to koreader/koreader
that referenced
this pull request
Sep 5, 2019
Depends on koreader/koreader-base#963. Also includes Initial import of <linux/rtc.h> related stuff koreader/koreader-base#965
Frenzie
added a commit
to Frenzie/koreader-base
that referenced
this pull request
Sep 6, 2019
Follow-up to <koreader#965>. Normally Linux RTC should only be in UTC.
Merged
Frenzie
added a commit
that referenced
this pull request
Sep 6, 2019
Follow-up to <#965>. Normally Linux RTC should only be in UTC.
mwoz123
pushed a commit
to mwoz123/koreader
that referenced
this pull request
Mar 29, 2020
Depends on koreader/koreader-base#963. Also includes Initial import of <linux/rtc.h> related stuff koreader/koreader-base#965
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For future FFI shenanigans ;)
(c.f., today's gitter for background).