diff options
author | Rich Felker <dalias@aerifal.cx> | 2018-09-06 13:45:31 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2018-09-12 14:34:27 -0400 |
commit | cb229f614f937515b78e40701f36c26c7def01b7 (patch) | |
tree | 1ba6a496c06b80397ddf7ec228ded6270d3aae4e /src | |
parent | 6fcd60ddd903df13402704fe6026cb1f8e780fd7 (diff) | |
download | musl-cb229f614f937515b78e40701f36c26c7def01b7.tar.gz musl-cb229f614f937515b78e40701f36c26c7def01b7.tar.bz2 musl-cb229f614f937515b78e40701f36c26c7def01b7.tar.xz musl-cb229f614f937515b78e40701f36c26c7def01b7.zip |
move and deduplicate declarations of __vdsosym to make it checkable
Diffstat (limited to 'src')
-rw-r--r-- | src/internal/syscall.h | 2 | ||||
-rw-r--r-- | src/sched/sched_getcpu.c | 2 | ||||
-rw-r--r-- | src/time/clock_gettime.c | 2 |
3 files changed, 2 insertions, 4 deletions
diff --git a/src/internal/syscall.h b/src/internal/syscall.h index 5737f3a2..730f285a 100644 --- a/src/internal/syscall.h +++ b/src/internal/syscall.h @@ -246,4 +246,6 @@ hidden long __syscall_ret(unsigned long), __syscall(syscall_arg_t, ...), void __procfdname(char [static 15+3*sizeof(int)], unsigned); +void *__vdsosym(const char *, const char *); + #endif diff --git a/src/sched/sched_getcpu.c b/src/sched/sched_getcpu.c index e08cfdf1..4ec5eaf6 100644 --- a/src/sched/sched_getcpu.c +++ b/src/sched/sched_getcpu.c @@ -6,8 +6,6 @@ #ifdef VDSO_GETCPU_SYM -void *__vdsosym(const char *, const char *); - static void *volatile vdso_func; typedef long (*getcpu_f)(unsigned *, unsigned *, void *); diff --git a/src/time/clock_gettime.c b/src/time/clock_gettime.c index 24128804..c24fe173 100644 --- a/src/time/clock_gettime.c +++ b/src/time/clock_gettime.c @@ -7,8 +7,6 @@ #ifdef VDSO_CGT_SYM -void *__vdsosym(const char *, const char *); - static void *volatile vdso_func; static int cgt_init(clockid_t clk, struct timespec *ts) |