From 03d65262fdcc287ef8b691c7dff2f1a63cdd13c2 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Mon, 27 Jun 2005 13:24:44 +0000 Subject: 2.3.90-1 --- glibc-compat/nss_files/files-network.c | 56 ---------------------------------- 1 file changed, 56 deletions(-) delete mode 100644 glibc-compat/nss_files/files-network.c (limited to 'glibc-compat/nss_files/files-network.c') diff --git a/glibc-compat/nss_files/files-network.c b/glibc-compat/nss_files/files-network.c deleted file mode 100644 index 45ded2fedf..0000000000 --- a/glibc-compat/nss_files/files-network.c +++ /dev/null @@ -1,56 +0,0 @@ -/* Networks file parser in nss_files module. - Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public License as - published by the Free Software Foundation; either version 2 of the - License, or (at your option) any later version. - - The GNU C Library 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 - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public - License along with the GNU C Library; see the file COPYING.LIB. If not, - write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. */ - -#include -#include -#include - -#define ENTNAME netent -#define DATABASE "networks" - -struct netent_data {}; - -#define TRAILING_LIST_MEMBER n_aliases -#define TRAILING_LIST_SEPARATOR_P isspace -#include "files-parse.c" -LINE_PARSER -("#", - { - char *addr; - - STRING_FIELD (result->n_name, isspace, 1); - - STRING_FIELD (addr, isspace, 1); - result->n_net = inet_network (addr); - result->n_addrtype = AF_INET; - - }) - -#include "files-XXX.c" - -DB_LOOKUP (netbyname, ,, - LOOKUP_NAME_CASE (n_name, n_aliases), - const char *name) - -DB_LOOKUP (netbyaddr, ,, - { - if (result->n_addrtype == type && result->n_net == net) - /* Bingo! */ - break; - }, unsigned long int net, int type) -- cgit v1.2.3