Blame nis/nis_intern.h

Packit 6c4009
/* Copyright (c) 1997-2018 Free Software Foundation, Inc.
Packit 6c4009
   This file is part of the GNU C Library.
Packit 6c4009
   Contributed by Thorsten Kukuk <kukuk@suse.de>, 1997.
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
#ifndef __NIS_INTERN_H
Packit 6c4009
Packit 6c4009
#define __NIS_INTERN_H
Packit 6c4009
#include <features.h>
Packit 6c4009
Packit 6c4009
/* Configurable parameters for pinging NIS servers:  */
Packit 6c4009
Packit 6c4009
/* Number of retries.  */
Packit 6c4009
#ifndef __NIS_PING_RETRY
Packit 6c4009
# define __NIS_PING_RETRY 2
Packit 6c4009
#endif
Packit 6c4009
/* Initial timeout in seconds.  */
Packit 6c4009
#ifndef __NIS_PING_TIMEOUT_START
Packit 6c4009
# define __NIS_PING_TIMEOUT_START 3
Packit 6c4009
#endif
Packit 6c4009
/* Timeout increment for retries in seconds.  */
Packit 6c4009
#ifndef __NIS_PING_TIMEOUT_INCREMENT
Packit 6c4009
# define __NIS_PING_TIMEOUT_INCREMENT 3
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
Packit 6c4009
__BEGIN_DECLS
Packit 6c4009
Packit 6c4009
struct nis_cb
Packit 6c4009
  {
Packit 6c4009
    nis_server *serv;
Packit 6c4009
    SVCXPRT *xprt;
Packit 6c4009
    int sock;
Packit 6c4009
    int nomore;
Packit 6c4009
    nis_error result;
Packit 6c4009
    int (*callback) (const_nis_name, const nis_object *, const void *);
Packit 6c4009
    const void *userdata;
Packit 6c4009
  };
Packit 6c4009
typedef struct nis_cb nis_cb;
Packit 6c4009
Packit 6c4009
extern unsigned long int inetstr2int (const char *str);
Packit 6c4009
extern long int __nis_findfastest (dir_binding *bind);
Packit 6c4009
extern nis_error __do_niscall2 (const nis_server *serv, u_int serv_len,
Packit 6c4009
				u_long prog, xdrproc_t xargs, caddr_t req,
Packit 6c4009
				xdrproc_t xres, caddr_t resp,
Packit 6c4009
				unsigned int flags, nis_cb *cb);
Packit 6c4009
extern nis_error __do_niscall (const_nis_name name, u_long prog,
Packit 6c4009
			       xdrproc_t xargs, caddr_t req,
Packit 6c4009
			       xdrproc_t xres, caddr_t resp,
Packit 6c4009
			       unsigned int flags, nis_cb *cb);
Packit 6c4009
extern nis_error __do_niscall3 (dir_binding *dbp, u_long prog,
Packit 6c4009
				xdrproc_t xargs, caddr_t req,
Packit 6c4009
				xdrproc_t xres, caddr_t resp,
Packit 6c4009
				unsigned int flags, nis_cb *cb);
Packit 6c4009
libnsl_hidden_proto (__do_niscall3)
Packit 6c4009
Packit 6c4009
extern u_short __pmap_getnisport (struct sockaddr_in *address, u_long program,
Packit 6c4009
				  u_long version, u_int protocol);
Packit 6c4009
Packit 6c4009
/* NIS+ callback */
Packit 6c4009
extern nis_error __nis_do_callback (struct dir_binding *bptr,
Packit 6c4009
				    netobj *cookie, struct nis_cb *cb);
Packit 6c4009
extern struct nis_cb *__nis_create_callback
Packit 6c4009
      (int (*callback)(const_nis_name, const nis_object *, const void *),
Packit 6c4009
       const void *userdata, unsigned int flags);
Packit 6c4009
extern nis_error __nis_destroy_callback (struct nis_cb *cb);
Packit 6c4009
Packit 6c4009
__END_DECLS
Packit 6c4009
Packit 6c4009
#endif