nss-util.h revision 71d35b6b5563817dfbe757ab9e3b9f018b2db491
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#pragma once
/***
This file is part of systemd.
Copyright 2014 Lennart Poettering
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
systemd is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <grp.h>
#include <netdb.h>
#include <nss.h>
#include <pwd.h>
#include <resolv.h>
#define NSS_GETHOSTBYNAME_PROTOTYPES(module) \
const char *name, \
struct gaih_addrtuple **pat, \
const char *name, \
int af, \
const char *name, \
int af, \
const char *name, \
#define NSS_GETHOSTBYADDR_PROTOTYPES(module) \
int af, \
int af, \
#define NSS_GETHOSTBYNAME_FALLBACKS(module) \
const char *name, \
int af, \
name, \
af, \
host, \
NULL, \
NULL); \
} \
const char *name, \
\
name, \
AF_INET6, \
host, \
NULL, \
NULL); \
if (ret == NSS_STATUS_NOTFOUND) \
name, \
AF_INET, \
host, \
NULL, \
NULL); \
return ret; \
} \
#define NSS_GETHOSTBYADDR_FALLBACKS(module) \
int af, \
af, \
host, \
NULL); \
} \
#define NSS_GETPW_PROTOTYPES(module) \
const char *name, \
enum nss_status _nss_mymachines_getpwuid_r( \
#define NSS_GETGR_PROTOTYPES(module) \
const char *name, \