getnetgrent.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright 2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* Portions Copyright (c) 1996,1999 by Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
* CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
* SOFTWARE.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
static const char rcsid[] = "$Id: getnetgrent.c,v 1.17 2003/04/29 05:51:14 marka Exp $";
#endif /* LIBC_SCCS and not lint */
/* Imports */
#include "port_before.h"
#if !defined(__BIND_NOSTATIC)
#include <errno.h>
#include <resolv.h>
#include <stdio.h>
#include <irs.h>
#include "port_after.h"
#include "irs_data.h"
/* Forward */
/* Public */
#ifndef SETNETGRENT_ARGS
#define SETNETGRENT_ARGS const char *netgroup
#endif
#ifdef ORIGINAL_ISC_CODE
void
#else
int
#endif
#ifdef ORIGINAL_ISC_CODE
#else
return (0);
#endif
}
#ifdef ORIGINAL_ISC_CODE
void
#else
int
#endif
endnetgrent(void) {
#ifdef ORIGINAL_ISC_CODE
#else
return (0);
#endif
}
#ifndef INNETGR_ARGS
#endif
int
}
#ifdef ORIGINAL_ISC_CODE
int
int ret;
if (ret != 1)
return (ret);
return (ret);
}
#else
int
}
#endif /* ORIGINAL_ISC_CODE */
/* Shared private. */
void
}
void
if (!net_data)
return;
}
int
return (0);
}
int
return (0);
}
/* Private */
static struct net_data *
init(void) {
goto error;
return (NULL);
}
}
return (net_data);
}
#endif /*__BIND_NOSTATIC*/