mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
NSS: Remove internal_function function attribute
This commit is contained in:
13
ChangeLog
13
ChangeLog
@ -1,3 +1,16 @@
|
|||||||
|
2017-08-31 Florian Weimer <fweimer@redhat.com>
|
||||||
|
|
||||||
|
* include/nss.h (__nss_valid_field, __nss_valid_list_field)
|
||||||
|
(__nss_rewrite_field): Remove internal_function.
|
||||||
|
* nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
|
||||||
|
* nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
|
||||||
|
* nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
|
||||||
|
* nss/nsswitch.c (nss_parse_file, nss_getline)
|
||||||
|
(nss_parse_service_list, nss_new_service): Likewise.
|
||||||
|
* nss/rewrite_field.c (__nss_rewrite_field): Likewise.
|
||||||
|
* nss/valid_field.c (__nss_valid_field): Likewise.
|
||||||
|
* nss/valid_list_field.c (__nss_valid_list_field): Likewise.
|
||||||
|
|
||||||
2017-08-31 Florian Weimer <fweimer@redhat.com>
|
2017-08-31 Florian Weimer <fweimer@redhat.com>
|
||||||
|
|
||||||
* malloc/arena.c (__malloc_fork_lock_parent)
|
* malloc/arena.c (__malloc_fork_lock_parent)
|
||||||
|
@ -6,12 +6,10 @@
|
|||||||
#define NSS_INVALID_FIELD_CHARACTERS ":\n"
|
#define NSS_INVALID_FIELD_CHARACTERS ":\n"
|
||||||
extern const char __nss_invalid_field_characters[] attribute_hidden;
|
extern const char __nss_invalid_field_characters[] attribute_hidden;
|
||||||
|
|
||||||
_Bool __nss_valid_field (const char *value)
|
_Bool __nss_valid_field (const char *value) attribute_hidden;
|
||||||
attribute_hidden internal_function;
|
_Bool __nss_valid_list_field (char **list) attribute_hidden;
|
||||||
_Bool __nss_valid_list_field (char **list)
|
|
||||||
attribute_hidden internal_function;
|
|
||||||
const char *__nss_rewrite_field (const char *value, char **to_be_freed)
|
const char *__nss_rewrite_field (const char *value, char **to_be_freed)
|
||||||
attribute_hidden internal_function;
|
attribute_hidden;
|
||||||
|
|
||||||
# endif /* !_ISOMAC */
|
# endif /* !_ISOMAC */
|
||||||
#endif /* _NSS_H */
|
#endif /* _NSS_H */
|
||||||
|
@ -40,8 +40,7 @@ int __nss_not_use_nscd_group;
|
|||||||
|
|
||||||
static int nscd_getgr_r (const char *key, size_t keylen, request_type type,
|
static int nscd_getgr_r (const char *key, size_t keylen, request_type type,
|
||||||
struct group *resultbuf, char *buffer,
|
struct group *resultbuf, char *buffer,
|
||||||
size_t buflen, struct group **result)
|
size_t buflen, struct group **result);
|
||||||
internal_function;
|
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
@ -82,7 +81,6 @@ libc_freeres_fn (gr_map_free)
|
|||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
internal_function
|
|
||||||
nscd_getgr_r (const char *key, size_t keylen, request_type type,
|
nscd_getgr_r (const char *key, size_t keylen, request_type type,
|
||||||
struct group *resultbuf, char *buffer, size_t buflen,
|
struct group *resultbuf, char *buffer, size_t buflen,
|
||||||
struct group **result)
|
struct group **result)
|
||||||
|
@ -32,7 +32,7 @@ int __nss_not_use_nscd_hosts;
|
|||||||
static int nscd_gethst_r (const char *key, size_t keylen, request_type type,
|
static int nscd_gethst_r (const char *key, size_t keylen, request_type type,
|
||||||
struct hostent *resultbuf, char *buffer,
|
struct hostent *resultbuf, char *buffer,
|
||||||
size_t buflen, struct hostent **result,
|
size_t buflen, struct hostent **result,
|
||||||
int *h_errnop) internal_function;
|
int *h_errnop);
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
@ -135,7 +135,6 @@ __nscd_get_nl_timestamp (void)
|
|||||||
int __nss_have_localdomain attribute_hidden;
|
int __nss_have_localdomain attribute_hidden;
|
||||||
|
|
||||||
static int
|
static int
|
||||||
internal_function
|
|
||||||
nscd_gethst_r (const char *key, size_t keylen, request_type type,
|
nscd_gethst_r (const char *key, size_t keylen, request_type type,
|
||||||
struct hostent *resultbuf, char *buffer, size_t buflen,
|
struct hostent *resultbuf, char *buffer, size_t buflen,
|
||||||
struct hostent **result, int *h_errnop)
|
struct hostent **result, int *h_errnop)
|
||||||
|
@ -38,8 +38,7 @@ int __nss_not_use_nscd_passwd;
|
|||||||
|
|
||||||
static int nscd_getpw_r (const char *key, size_t keylen, request_type type,
|
static int nscd_getpw_r (const char *key, size_t keylen, request_type type,
|
||||||
struct passwd *resultbuf, char *buffer,
|
struct passwd *resultbuf, char *buffer,
|
||||||
size_t buflen, struct passwd **result)
|
size_t buflen, struct passwd **result);
|
||||||
internal_function;
|
|
||||||
|
|
||||||
int
|
int
|
||||||
__nscd_getpwnam_r (const char *name, struct passwd *resultbuf, char *buffer,
|
__nscd_getpwnam_r (const char *name, struct passwd *resultbuf, char *buffer,
|
||||||
@ -81,7 +80,6 @@ libc_freeres_fn (pw_map_free)
|
|||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
internal_function
|
|
||||||
nscd_getpw_r (const char *key, size_t keylen, request_type type,
|
nscd_getpw_r (const char *key, size_t keylen, request_type type,
|
||||||
struct passwd *resultbuf, char *buffer, size_t buflen,
|
struct passwd *resultbuf, char *buffer, size_t buflen,
|
||||||
struct passwd **result)
|
struct passwd **result)
|
||||||
|
@ -42,13 +42,12 @@
|
|||||||
#include <sysdep.h>
|
#include <sysdep.h>
|
||||||
|
|
||||||
/* Prototypes for the local functions. */
|
/* Prototypes for the local functions. */
|
||||||
static name_database *nss_parse_file (const char *fname) internal_function;
|
static name_database *nss_parse_file (const char *fname);
|
||||||
static name_database_entry *nss_getline (char *line) internal_function;
|
static name_database_entry *nss_getline (char *line);
|
||||||
static service_user *nss_parse_service_list (const char *line)
|
static service_user *nss_parse_service_list (const char *line);
|
||||||
internal_function;
|
|
||||||
#if !defined DO_STATIC_NSS || defined SHARED
|
#if !defined DO_STATIC_NSS || defined SHARED
|
||||||
static service_library *nss_new_service (name_database *database,
|
static service_library *nss_new_service (name_database *database,
|
||||||
const char *name) internal_function;
|
const char *name);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@ -532,7 +531,6 @@ libc_hidden_def (__nss_lookup_function)
|
|||||||
|
|
||||||
|
|
||||||
static name_database *
|
static name_database *
|
||||||
internal_function
|
|
||||||
nss_parse_file (const char *fname)
|
nss_parse_file (const char *fname)
|
||||||
{
|
{
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
@ -608,7 +606,6 @@ nss_parse_file (const char *fname)
|
|||||||
`( <source> ( "[" "!"? (<status> "=" <action> )+ "]" )? )*'
|
`( <source> ( "[" "!"? (<status> "=" <action> )+ "]" )? )*'
|
||||||
*/
|
*/
|
||||||
static service_user *
|
static service_user *
|
||||||
internal_function
|
|
||||||
nss_parse_service_list (const char *line)
|
nss_parse_service_list (const char *line)
|
||||||
{
|
{
|
||||||
service_user *result = NULL, **nextp = &result;
|
service_user *result = NULL, **nextp = &result;
|
||||||
@ -757,7 +754,6 @@ nss_parse_service_list (const char *line)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static name_database_entry *
|
static name_database_entry *
|
||||||
internal_function
|
|
||||||
nss_getline (char *line)
|
nss_getline (char *line)
|
||||||
{
|
{
|
||||||
const char *name;
|
const char *name;
|
||||||
@ -799,7 +795,6 @@ nss_getline (char *line)
|
|||||||
|
|
||||||
#if !defined DO_STATIC_NSS || defined SHARED
|
#if !defined DO_STATIC_NSS || defined SHARED
|
||||||
static service_library *
|
static service_library *
|
||||||
internal_function
|
|
||||||
nss_new_service (name_database *database, const char *name)
|
nss_new_service (name_database *database, const char *name)
|
||||||
{
|
{
|
||||||
service_library **currentp = &database->library;
|
service_library **currentp = &database->library;
|
||||||
|
@ -24,7 +24,6 @@
|
|||||||
overwritten with a pointer the caller has to free if the function
|
overwritten with a pointer the caller has to free if the function
|
||||||
returns successfully. On failure, return NULL. */
|
returns successfully. On failure, return NULL. */
|
||||||
const char *
|
const char *
|
||||||
internal_function
|
|
||||||
__nss_rewrite_field (const char *value, char **to_be_freed)
|
__nss_rewrite_field (const char *value, char **to_be_freed)
|
||||||
{
|
{
|
||||||
*to_be_freed = NULL;
|
*to_be_freed = NULL;
|
||||||
|
@ -24,7 +24,6 @@ const char __nss_invalid_field_characters[] = NSS_INVALID_FIELD_CHARACTERS;
|
|||||||
does not contain characters not permitted in NSS database
|
does not contain characters not permitted in NSS database
|
||||||
fields. */
|
fields. */
|
||||||
_Bool
|
_Bool
|
||||||
internal_function
|
|
||||||
__nss_valid_field (const char *value)
|
__nss_valid_field (const char *value)
|
||||||
{
|
{
|
||||||
return value == NULL
|
return value == NULL
|
||||||
|
@ -24,7 +24,6 @@ static const char invalid_characters[] = NSS_INVALID_FIELD_CHARACTERS ",";
|
|||||||
/* Check that all list members match the field syntax requirements and
|
/* Check that all list members match the field syntax requirements and
|
||||||
do not contain the character ','. */
|
do not contain the character ','. */
|
||||||
_Bool
|
_Bool
|
||||||
internal_function
|
|
||||||
__nss_valid_list_field (char **list)
|
__nss_valid_list_field (char **list)
|
||||||
{
|
{
|
||||||
if (list == NULL)
|
if (list == NULL)
|
||||||
|
Reference in New Issue
Block a user