~registry/kmod/master

« back to all changes in this revision

Viewing changes to shared/util.h

  • Committer: Lucas De Marchi
  • Author(s): Emil Velikov
  • Date: 2023-02-22 00:35:42 UTC
  • Revision ID: git-v1:06e6f167c211106212290aa7980880f972d71ba2
shared: annotate local API as static

None of the API is used outside of the compilation unit.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 
39
39
/* path handling functions                                                  */
40
40
/* ************************************************************************ */
41
 
bool path_is_absolute(const char *p) _must_check_ __attribute__((nonnull(1)));
42
41
char *path_make_absolute_cwd(const char *p) _must_check_ __attribute__((nonnull(1)));
43
42
int mkdir_p(const char *path, int len, mode_t mode);
44
43
int mkdir_parents(const char *path, mode_t mode);
51
50
#define MSEC_PER_SEC    1000ULL
52
51
#define NSEC_PER_MSEC   1000000ULL
53
52
 
54
 
unsigned long long ts_usec(const struct timespec *ts);
55
 
unsigned long long ts_msec(const struct timespec *ts);
56
53
unsigned long long now_usec(void);
57
54
unsigned long long now_msec(void);
58
55
int sleep_until_msec(unsigned long long msec);