]>
git.proxmox.com Git - mirror_edk2.git/blob - StdLib/BsdSocketLib/Socklib_internals.h
2 Definitions for the socket library functions that are used internally.
4 Copyright (c) 2011, Intel Corporation
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 #ifndef _SOCKLIB_INTERNALS_H_
16 #define _SOCKLIB_INTERNALS_H_
18 void _sethosthtent (int);
19 void _endhosthtent (void);
20 void _sethostdnsent (int);
21 void _endhostdnsent (void);
22 void _setnethtent (int);
23 void _endnethtent (void);
24 void _setnetdnsent (int);
25 void _endnetdnsent (void);
27 struct hostent
* _gethostbyhtname (const char *, int);
28 struct hostent
* _gethostbydnsname (const char *, int);
29 struct hostent
* _gethostbynisname (const char *, int);
30 struct hostent
* _gethostbyhtaddr (const char *, int, int);
31 struct hostent
* _gethostbydnsaddr (const char *, int, int);
32 struct hostent
* _gethostbynisaddr (const char *, int, int);
33 struct netent
* _getnetbyhtname (const char *);
34 struct netent
* _getnetbydnsname (const char *);
35 struct netent
* _getnetbynisname (const char *);
36 struct netent
* _getnetbyhtaddr (unsigned long, int);
37 struct netent
* _getnetbydnsaddr (unsigned long, int);
38 struct netent
* _getnetbynisaddr (unsigned long, int);
39 void _map_v4v6_address (const char *src
, char *dst
);
40 void _map_v4v6_hostent (struct hostent
*hp
, char **bp
, int *len
);