1de727caee24df86c3052508aa213f7165168913aElliott Hughes/* 2de727caee24df86c3052508aa213f7165168913aElliott Hughes * Copyright (C) 2008 The Android Open Source Project 3de727caee24df86c3052508aa213f7165168913aElliott Hughes * All rights reserved. 4de727caee24df86c3052508aa213f7165168913aElliott Hughes * 5de727caee24df86c3052508aa213f7165168913aElliott Hughes * Redistribution and use in source and binary forms, with or without 6de727caee24df86c3052508aa213f7165168913aElliott Hughes * modification, are permitted provided that the following conditions 7de727caee24df86c3052508aa213f7165168913aElliott Hughes * are met: 8de727caee24df86c3052508aa213f7165168913aElliott Hughes * * Redistributions of source code must retain the above copyright 9de727caee24df86c3052508aa213f7165168913aElliott Hughes * notice, this list of conditions and the following disclaimer. 10de727caee24df86c3052508aa213f7165168913aElliott Hughes * * Redistributions in binary form must reproduce the above copyright 11de727caee24df86c3052508aa213f7165168913aElliott Hughes * notice, this list of conditions and the following disclaimer in 12de727caee24df86c3052508aa213f7165168913aElliott Hughes * the documentation and/or other materials provided with the 13de727caee24df86c3052508aa213f7165168913aElliott Hughes * distribution. 14de727caee24df86c3052508aa213f7165168913aElliott Hughes * 15de727caee24df86c3052508aa213f7165168913aElliott Hughes * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 16de727caee24df86c3052508aa213f7165168913aElliott Hughes * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 17de727caee24df86c3052508aa213f7165168913aElliott Hughes * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 18de727caee24df86c3052508aa213f7165168913aElliott Hughes * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 19de727caee24df86c3052508aa213f7165168913aElliott Hughes * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 20de727caee24df86c3052508aa213f7165168913aElliott Hughes * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 21de727caee24df86c3052508aa213f7165168913aElliott Hughes * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 22de727caee24df86c3052508aa213f7165168913aElliott Hughes * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 23de727caee24df86c3052508aa213f7165168913aElliott Hughes * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 24de727caee24df86c3052508aa213f7165168913aElliott Hughes * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 25de727caee24df86c3052508aa213f7165168913aElliott Hughes * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26de727caee24df86c3052508aa213f7165168913aElliott Hughes * SUCH DAMAGE. 27de727caee24df86c3052508aa213f7165168913aElliott Hughes */ 28de727caee24df86c3052508aa213f7165168913aElliott Hughes 29de727caee24df86c3052508aa213f7165168913aElliott Hughes#include <netdb.h> 30de727caee24df86c3052508aa213f7165168913aElliott Hughes 315033918092f27179b0c2bbe3babceaed509d4935Elliott Hughes// We don't have an /etc/networks or /etc/protocols, so these are just dummies. 325033918092f27179b0c2bbe3babceaed509d4935Elliott Hughes 335033918092f27179b0c2bbe3babceaed509d4935Elliott Hughesvoid endnetent() { 345033918092f27179b0c2bbe3babceaed509d4935Elliott Hughes} 355033918092f27179b0c2bbe3babceaed509d4935Elliott Hughes 365033918092f27179b0c2bbe3babceaed509d4935Elliott Hughesvoid endprotoent() { 37de727caee24df86c3052508aa213f7165168913aElliott Hughes} 38de727caee24df86c3052508aa213f7165168913aElliott Hughes 396fa26e21bc69e777222148fc0441fb461ba95c6aElliott Hughesnetent* getnetbyaddr(uint32_t /*net*/, int /*type*/) { 405033918092f27179b0c2bbe3babceaed509d4935Elliott Hughes return nullptr; 415033918092f27179b0c2bbe3babceaed509d4935Elliott Hughes} 425033918092f27179b0c2bbe3babceaed509d4935Elliott Hughes 435033918092f27179b0c2bbe3babceaed509d4935Elliott Hughesnetent* getnetbyname(const char* /*name*/) { 445033918092f27179b0c2bbe3babceaed509d4935Elliott Hughes return nullptr; 455033918092f27179b0c2bbe3babceaed509d4935Elliott Hughes} 465033918092f27179b0c2bbe3babceaed509d4935Elliott Hughes 475033918092f27179b0c2bbe3babceaed509d4935Elliott Hughesnetent* getnetent() { 485033918092f27179b0c2bbe3babceaed509d4935Elliott Hughes return nullptr; 49de727caee24df86c3052508aa213f7165168913aElliott Hughes} 50de727caee24df86c3052508aa213f7165168913aElliott Hughes 516fa26e21bc69e777222148fc0441fb461ba95c6aElliott Hughesprotoent* getprotobyname(const char* /*name*/) { 525033918092f27179b0c2bbe3babceaed509d4935Elliott Hughes return nullptr; 53de727caee24df86c3052508aa213f7165168913aElliott Hughes} 54de727caee24df86c3052508aa213f7165168913aElliott Hughes 556fa26e21bc69e777222148fc0441fb461ba95c6aElliott Hughesprotoent* getprotobynumber(int /*proto*/) { 565033918092f27179b0c2bbe3babceaed509d4935Elliott Hughes return nullptr; 575033918092f27179b0c2bbe3babceaed509d4935Elliott Hughes} 585033918092f27179b0c2bbe3babceaed509d4935Elliott Hughes 595033918092f27179b0c2bbe3babceaed509d4935Elliott Hughesprotoent* getprotoent() { 605033918092f27179b0c2bbe3babceaed509d4935Elliott Hughes return nullptr; 615033918092f27179b0c2bbe3babceaed509d4935Elliott Hughes} 625033918092f27179b0c2bbe3babceaed509d4935Elliott Hughes 635033918092f27179b0c2bbe3babceaed509d4935Elliott Hughesvoid setnetent(int /*stayopen*/) { 645033918092f27179b0c2bbe3babceaed509d4935Elliott Hughes} 655033918092f27179b0c2bbe3babceaed509d4935Elliott Hughes 665033918092f27179b0c2bbe3babceaed509d4935Elliott Hughesvoid setprotoent(int /*stayopen*/) { 67de727caee24df86c3052508aa213f7165168913aElliott Hughes} 68