]> git.ipfire.org Git - thirdparty/glibc.git/blame - include/nss.h
nss: Export nscd hash function as __nss_hash [BZ #22459]
[thirdparty/glibc.git] / include / nss.h
CommitLineData
676599b3 1#ifndef _NSS_H
a8874ead 2#include <nss/nss.h>
676599b3 3
67f36c79 4#ifndef _ISOMAC
47755784 5
67f36c79
FW
6# include <stddef.h>
7# include <stdint.h>
8
9# define NSS_INVALID_FIELD_CHARACTERS ":\n"
676599b3
FW
10extern const char __nss_invalid_field_characters[] attribute_hidden;
11
75b3047e
FW
12_Bool __nss_valid_field (const char *value) attribute_hidden;
13_Bool __nss_valid_list_field (char **list) attribute_hidden;
676599b3 14const char *__nss_rewrite_field (const char *value, char **to_be_freed)
75b3047e 15 attribute_hidden;
676599b3 16
67f36c79
FW
17/* Compute a hash value for LENGTH bytes starting at KEY. This is the
18 hash function used by the nscd for the cache mapping files. */
19uint32_t __nss_hash (const void *__key, size_t __length);
20libc_hidden_proto (__nss_hash)
21
22#endif /* !_ISOMAC */
676599b3 23#endif /* _NSS_H */