nss-util.h revision b26fa1a2fbcfee7d03b0c8fd15ec3aa64ae70b9f
#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_SIGNALS_BLOCK SIGALRM,SIGVTALRM,SIGPIPE,SIGCHLD,SIGTSTP,SIGIO,SIGHUP,SIGUSR1,SIGUSR2,SIGPROF,SIGURG,SIGWINCH
#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, \