Blame nss/nss.h

Packit 6c4009
/* Copyright (C) 1996-2018 Free Software Foundation, Inc.
Packit 6c4009
   This file is part of the GNU C Library.
Packit 6c4009
Packit 6c4009
   The GNU C Library is free software; you can redistribute it and/or
Packit 6c4009
   modify it under the terms of the GNU Lesser General Public
Packit 6c4009
   License as published by the Free Software Foundation; either
Packit 6c4009
   version 2.1 of the License, or (at your option) any later version.
Packit 6c4009
Packit 6c4009
   The GNU C Library is distributed in the hope that it will be useful,
Packit 6c4009
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 6c4009
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 6c4009
   Lesser General Public License for more details.
Packit 6c4009
Packit 6c4009
   You should have received a copy of the GNU Lesser General Public
Packit 6c4009
   License along with the GNU C Library; if not, see
Packit 6c4009
   <http://www.gnu.org/licenses/>.  */
Packit 6c4009
Packit 6c4009
/* Define interface to NSS.  This is meant for the interface functions
Packit 6c4009
   and for implementors of new services.  */
Packit 6c4009
Packit 6c4009
#ifndef _NSS_H
Packit 6c4009
#define _NSS_H	1
Packit 6c4009
Packit 6c4009
#include <features.h>
Packit 6c4009
#include <stdint.h>
Packit 6c4009
Packit 6c4009
Packit 6c4009
__BEGIN_DECLS
Packit 6c4009
Packit 6c4009
/* Possible results of lookup using a nss_* function.  */
Packit 6c4009
enum nss_status
Packit 6c4009
{
Packit 6c4009
  NSS_STATUS_TRYAGAIN = -2,
Packit 6c4009
  NSS_STATUS_UNAVAIL,
Packit 6c4009
  NSS_STATUS_NOTFOUND,
Packit 6c4009
  NSS_STATUS_SUCCESS,
Packit 6c4009
  NSS_STATUS_RETURN
Packit 6c4009
};
Packit 6c4009
Packit 6c4009
Packit 6c4009
/* Data structure used for the 'gethostbyname4_r' function.  */
Packit 6c4009
struct gaih_addrtuple
Packit 6c4009
  {
Packit 6c4009
    struct gaih_addrtuple *next;
Packit 6c4009
    char *name;
Packit 6c4009
    int family;
Packit 6c4009
    uint32_t addr[4];
Packit 6c4009
    uint32_t scopeid;
Packit 6c4009
  };
Packit 6c4009
Packit 6c4009
Packit 6c4009
/* Overwrite service selection for database DBNAME using specification
Packit 6c4009
   in STRING.
Packit 6c4009
   This function should only be used by system programs which have to
Packit 6c4009
   work around non-existing services (e.e., while booting).
Packit 6c4009
   Attention: Using this function repeatedly will slowly eat up the
Packit 6c4009
   whole memory since previous selection data cannot be freed.  */
Packit 6c4009
extern int __nss_configure_lookup (const char *__dbname,
Packit 6c4009
				   const char *__string) __THROW;
Packit 6c4009
Packit 6c4009
__END_DECLS
Packit 6c4009
Packit 6c4009
#endif /* nss.h */