mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-20 11:21:29 +03:00
* include/libc-symbols.h: Define macros for librt hidden symbols.
* include/time.h: Add librt_hidden_proto definition for clock_gettime. * sysdeps/generic/clock_gettime.c: Add librt_hidden_def. * sysdeps/unix/clock_gettime.c: Likewise.
This commit is contained in:
@@ -1,5 +1,10 @@
|
|||||||
2005-07-12 Ulrich Drepper <drepper@redhat.com>
|
2005-07-12 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* include/libc-symbols.h: Define macros for librt hidden symbols.
|
||||||
|
* include/time.h: Add librt_hidden_proto definition for clock_gettime.
|
||||||
|
* sysdeps/generic/clock_gettime.c: Add librt_hidden_def.
|
||||||
|
* sysdeps/unix/clock_gettime.c: Likewise.
|
||||||
|
|
||||||
* stdlib/bits/stdlib.h: New file.
|
* stdlib/bits/stdlib.h: New file.
|
||||||
* stdlib/stdlib.h: Include <bits/stdlib.h> if fortification is
|
* stdlib/stdlib.h: Include <bits/stdlib.h> if fortification is
|
||||||
requested.
|
requested.
|
||||||
|
@@ -708,6 +708,24 @@ for linking")
|
|||||||
# define libresolv_hidden_data_ver(local, name)
|
# define libresolv_hidden_data_ver(local, name)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined NOT_IN_libc && defined IS_IN_librt
|
||||||
|
# define librt_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
|
||||||
|
# define librt_hidden_def(name) hidden_def (name)
|
||||||
|
# define librt_hidden_weak(name) hidden_weak (name)
|
||||||
|
# define librt_hidden_ver(local, name) hidden_ver (local, name)
|
||||||
|
# define librt_hidden_data_def(name) hidden_data_def (name)
|
||||||
|
# define librt_hidden_data_weak(name) hidden_data_weak (name)
|
||||||
|
# define librt_hidden_data_ver(local, name) hidden_data_ver (local, name)
|
||||||
|
#else
|
||||||
|
# define librt_hidden_proto(name, attrs...)
|
||||||
|
# define librt_hidden_def(name)
|
||||||
|
# define librt_hidden_weak(name)
|
||||||
|
# define librt_hidden_ver(local, name)
|
||||||
|
# define librt_hidden_data_def(name)
|
||||||
|
# define librt_hidden_data_weak(name)
|
||||||
|
# define librt_hidden_data_ver(local, name)
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined NOT_IN_libc && defined IS_IN_libdl
|
#if defined NOT_IN_libc && defined IS_IN_libdl
|
||||||
# define libdl_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
|
# define libdl_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
|
||||||
# define libdl_hidden_def(name) hidden_def (name)
|
# define libdl_hidden_def(name) hidden_def (name)
|
||||||
|
@@ -17,6 +17,8 @@ libc_hidden_proto (localtime)
|
|||||||
libc_hidden_proto (strftime)
|
libc_hidden_proto (strftime)
|
||||||
libc_hidden_proto (strptime)
|
libc_hidden_proto (strptime)
|
||||||
|
|
||||||
|
librt_hidden_proto (clock_gettime)
|
||||||
|
|
||||||
/* Now define the internal interfaces. */
|
/* Now define the internal interfaces. */
|
||||||
struct tm;
|
struct tm;
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1999 Free Software Foundation, Inc.
|
/* Copyright (C) 1999, 2005 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@@ -26,5 +26,6 @@ clock_gettime (clockid_t clock_id, struct timespec *tp)
|
|||||||
__set_errno (ENOSYS);
|
__set_errno (ENOSYS);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
librt_hidden_def (clock_gettime)
|
||||||
stub_warning (clock_gettime)
|
stub_warning (clock_gettime)
|
||||||
#include <stub-tag.h>
|
#include <stub-tag.h>
|
||||||
|
@@ -131,3 +131,4 @@ clock_gettime (clockid_t clock_id, struct timespec *tp)
|
|||||||
|
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
librt_hidden_def (clock_gettime)
|
||||||
|
Reference in New Issue
Block a user