#
d7ce04c7 |
|
09-Nov-2023 |
Igor Prusov <ivprusov@salutedevices.com> |
linux/time.h: Add Linux time conversion defines Currently there are no defines for time conversion in time.h, which leads to drivers declaring those locally or not using defines at all, so add them from Linux. Signed-off-by: Igor Prusov <ivprusov@salutedevices.com> Reviewed-by: Simon Glass <sjg@chromium.org> |
#
90c52423 |
|
24-Apr-2022 |
Jan Kiszka <jan.kiszka@siemens.com> |
lib/date: Make rtc_mktime and mktime64 Y2038-ready We currently overflow due to wrong types used internally in rtc_mktime, on all platforms, and we return a too small type on 32-bit. One consumer that directly benefits from this is mktime64. Many others may still store the result in a wrong type. While at it, drop the redundant cast of mon in rtc_mktime (obsoleted by 714209832db1). Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> |
#
bd3c3dd7 |
|
12-Nov-2019 |
AKASHI Takahiro <takahiro.akashi@linaro.org> |
linux/time.h: include vsprintf.h Without this commit, time.h possibly causes a build error as asctime_r() uses sprintf(). Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> |
#
18723117 |
|
12-Nov-2019 |
AKASHI Takahiro <takahiro.akashi@linaro.org> |
lib: add mktime64() for linux compatibility This function will be used in lib/crypto/x509_cert_parser.c, which will also be imported from linux code in a later commit. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> |
#
502af618 |
|
06-Oct-2017 |
Marek Behún <kabel@kernel.org> |
linux/time.h: Remove dead code Since rem = ((long) *tim_p) % SECSPERDAY; the second while cycle while (rem >= SECSPERDAY) is dead. Reported-by: Coverity (CID: 167334) Signed-off-by: Marek Behun <marek.behun@nic.cz> |
#
012771d8 |
|
08-Mar-2002 |
Wolfgang Denk <wd@denx.de> |
Initial revision |
#
90c52423 |
|
24-Apr-2022 |
Jan Kiszka <jan.kiszka@siemens.com> |
lib/date: Make rtc_mktime and mktime64 Y2038-ready We currently overflow due to wrong types used internally in rtc_mktime, on all platforms, and we return a too small type on 32-bit. One consumer that directly benefits from this is mktime64. Many others may still store the result in a wrong type. While at it, drop the redundant cast of mon in rtc_mktime (obsoleted by 714209832db1). Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> |
#
bd3c3dd7 |
|
12-Nov-2019 |
AKASHI Takahiro <takahiro.akashi@linaro.org> |
linux/time.h: include vsprintf.h Without this commit, time.h possibly causes a build error as asctime_r() uses sprintf(). Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> |
#
18723117 |
|
12-Nov-2019 |
AKASHI Takahiro <takahiro.akashi@linaro.org> |
lib: add mktime64() for linux compatibility This function will be used in lib/crypto/x509_cert_parser.c, which will also be imported from linux code in a later commit. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> |
#
502af618 |
|
06-Oct-2017 |
Marek Behún <marek.behun@nic.cz> |
linux/time.h: Remove dead code Since rem = ((long) *tim_p) % SECSPERDAY; the second while cycle while (rem >= SECSPERDAY) is dead. Reported-by: Coverity (CID: 167334) Signed-off-by: Marek Behun <marek.behun@nic.cz> |
#
012771d8 |
|
08-Mar-2002 |
Wolfgang Denk <wd@denx.de> |
Initial revision |
#
bd3c3dd7 |
|
12-Nov-2019 |
AKASHI Takahiro <takahiro.akashi@linaro.org> |
linux/time.h: include vsprintf.h Without this commit, time.h possibly causes a build error as asctime_r() uses sprintf(). Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> |
#
18723117 |
|
12-Nov-2019 |
AKASHI Takahiro <takahiro.akashi@linaro.org> |
lib: add mktime64() for linux compatibility This function will be used in lib/crypto/x509_cert_parser.c, which will also be imported from linux code in a later commit. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> |
#
502af618 |
|
06-Oct-2017 |
Marek Behún <marek.behun@nic.cz> |
linux/time.h: Remove dead code Since rem = ((long) *tim_p) % SECSPERDAY; the second while cycle while (rem >= SECSPERDAY) is dead. Reported-by: Coverity (CID: 167334) Signed-off-by: Marek Behun <marek.behun@nic.cz> |
#
012771d8 |
|
08-Mar-2002 |
wdenk <wdenk> |
Initial revision |
#
502af618 |
|
06-Oct-2017 |
Marek Behún <marek.behun@nic.cz> |
linux/time.h: Remove dead code Since rem = ((long) *tim_p) % SECSPERDAY; the second while cycle while (rem >= SECSPERDAY) is dead. Reported-by: Coverity (CID: 167334) Signed-off-by: Marek Behun <marek.behun@nic.cz>
|
#
012771d8 |
|
08-Mar-2002 |
wdenk <wdenk> |
Initial revision
|