resolv: Remove internal_function attribute

This commit is contained in:
Florian Weimer 2017-08-31 16:07:52 +02:00
parent fc3d94979e
commit 59bd52b087
7 changed files with 21 additions and 25 deletions

View File

@ -1,3 +1,16 @@
2017-08-31 Florian Weimer <fweimer@redhat.com>
* resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
(__gai_enqueue_request): Remove internal_function.
* resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
(__gai_remove_request, __gai_notify, __gai_notify_only)
(__gai_sigqueue): Likewise.
* resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
* resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
* resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
* sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
Likewise.
2017-08-31 Florian Weimer <fweimer@redhat.com> 2017-08-31 Florian Weimer <fweimer@redhat.com>
* dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function. * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.

View File

@ -152,7 +152,6 @@ get_elem (void)
struct requestlist * struct requestlist *
internal_function
__gai_find_request (const struct gaicb *gaicbp) __gai_find_request (const struct gaicb *gaicbp)
{ {
struct requestlist *runp; struct requestlist *runp;
@ -169,7 +168,6 @@ __gai_find_request (const struct gaicb *gaicbp)
int int
internal_function
__gai_remove_request (struct gaicb *gaicbp) __gai_remove_request (struct gaicb *gaicbp)
{ {
struct requestlist *runp; struct requestlist *runp;
@ -212,7 +210,6 @@ static void *handle_requests (void *arg);
/* The main function of the async I/O handling. It enqueues requests /* The main function of the async I/O handling. It enqueues requests
and if necessary starts and handles threads. */ and if necessary starts and handles threads. */
struct requestlist * struct requestlist *
internal_function
__gai_enqueue_request (struct gaicb *gaicbp) __gai_enqueue_request (struct gaicb *gaicbp)
{ {
struct requestlist *newp; struct requestlist *newp;

View File

@ -75,27 +75,21 @@ extern pthread_mutex_t __gai_requests_mutex;
/* Enqueue request. */ /* Enqueue request. */
extern struct requestlist *__gai_enqueue_request (struct gaicb *gaicbp) extern struct requestlist *__gai_enqueue_request (struct gaicb *gaicbp);
internal_function;
/* Find request on wait list. */ /* Find request on wait list. */
extern struct requestlist *__gai_find_request (const struct gaicb *gaicbp) extern struct requestlist *__gai_find_request (const struct gaicb *gaicbp);
internal_function;
/* Remove request from waitlist. */ /* Remove request from waitlist. */
extern int __gai_remove_request (struct gaicb *gaicbp) extern int __gai_remove_request (struct gaicb *gaicbp);
internal_function;
/* Notify initiator of request and tell this everybody listening. */ /* Notify initiator of request and tell this everybody listening. */
extern void __gai_notify (struct requestlist *req) extern void __gai_notify (struct requestlist *req);
internal_function;
/* Notify initiator of request. */ /* Notify initiator of request. */
extern int __gai_notify_only (struct sigevent *sigev, pid_t caller_pid) extern int __gai_notify_only (struct sigevent *sigev, pid_t caller_pid);
internal_function;
/* Send the signal. */ /* Send the signal. */
extern int __gai_sigqueue (int sig, const union sigval val, pid_t caller_pid) extern int __gai_sigqueue (int sig, const union sigval val, pid_t caller_pid);
internal_function;
#endif /* gai_misc.h */ #endif /* gai_misc.h */

View File

@ -42,7 +42,6 @@ notify_func_wrapper (void *arg)
int int
internal_function
__gai_notify_only (struct sigevent *sigev, pid_t caller_pid) __gai_notify_only (struct sigevent *sigev, pid_t caller_pid)
{ {
int result = 0; int result = 0;
@ -94,7 +93,6 @@ __gai_notify_only (struct sigevent *sigev, pid_t caller_pid)
void void
internal_function
__gai_notify (struct requestlist *req) __gai_notify (struct requestlist *req)
{ {
struct waitlist *waitlist; struct waitlist *waitlist;

View File

@ -22,7 +22,6 @@
#include <gai_misc.h> #include <gai_misc.h>
int int
internal_function
__gai_sigqueue (int sig, const union sigval val, pid_t caller_pid) __gai_sigqueue (int sig, const union sigval val, pid_t caller_pid)
{ {
__set_errno (ENOSYS); __set_errno (ENOSYS);

View File

@ -38,10 +38,8 @@
* sizeof(int) < 4. sizeof(int) > 4 is fine; all the world's not a VAX. * sizeof(int) < 4. sizeof(int) > 4 is fine; all the world's not a VAX.
*/ */
static const char *inet_ntop4 (const u_char *src, char *dst, socklen_t size) static const char *inet_ntop4 (const u_char *src, char *dst, socklen_t size);
internal_function; static const char *inet_ntop6 (const u_char *src, char *dst, socklen_t size);
static const char *inet_ntop6 (const u_char *src, char *dst, socklen_t size)
internal_function;
/* char * /* char *
* inet_ntop(af, src, dst, size) * inet_ntop(af, src, dst, size)
@ -79,7 +77,6 @@ libc_hidden_def (inet_ntop)
* Paul Vixie, 1996. * Paul Vixie, 1996.
*/ */
static const char * static const char *
internal_function
inet_ntop4 (const u_char *src, char *dst, socklen_t size) inet_ntop4 (const u_char *src, char *dst, socklen_t size)
{ {
static const char fmt[] = "%u.%u.%u.%u"; static const char fmt[] = "%u.%u.%u.%u";
@ -99,7 +96,6 @@ inet_ntop4 (const u_char *src, char *dst, socklen_t size)
* Paul Vixie, 1996. * Paul Vixie, 1996.
*/ */
static const char * static const char *
internal_function
inet_ntop6 (const u_char *src, char *dst, socklen_t size) inet_ntop6 (const u_char *src, char *dst, socklen_t size)
{ {
/* /*

View File

@ -30,7 +30,6 @@
/* Return any pending signal or wait for one for the given time. */ /* Return any pending signal or wait for one for the given time. */
int int
internal_function
__gai_sigqueue (int sig, const union sigval val, pid_t caller_pid) __gai_sigqueue (int sig, const union sigval val, pid_t caller_pid)
{ {
siginfo_t info; siginfo_t info;