From a412425bca4bb90a7c1b35acac6b185158f3cd4f Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Tue, 5 Jul 2022 15:41:41 +0200 Subject: Cleanup: move source date epoch code back to libutil Signed-off-by: David Oberhollenzer --- include/util/util.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/util/util.h b/include/util/util.h index c18a558..6e34a82 100644 --- a/include/util/util.h +++ b/include/util/util.h @@ -62,4 +62,11 @@ SQFS_INTERNAL int canonicalize_name(char *filename); */ SQFS_INTERNAL bool is_filename_sane(const char *name, bool check_os_specific); +/* + If the environment variable SOURCE_DATE_EPOCH is set to a parsable number + that fits into an unsigned 32 bit value, return its value. Otherwise, + default to 0. + */ +SQFS_INTERNAL sqfs_u32 get_source_date_epoch(void); + #endif /* SQFS_UTIL_H */ -- cgit v1.2.3