Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/arpa
File: inet.h
/* Copyright (C) 1997-2018 Free Software Foundation, Inc.
[0] Fix | Delete
This file is part of the GNU C Library.
[1] Fix | Delete
[2] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[3] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[4] Fix | Delete
License as published by the Free Software Foundation; either
[5] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[6] Fix | Delete
[7] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[8] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[9] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[10] Fix | Delete
Lesser General Public License for more details.
[11] Fix | Delete
[12] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[13] Fix | Delete
License along with the GNU C Library; if not, see
[14] Fix | Delete
<http://www.gnu.org/licenses/>. */
[15] Fix | Delete
[16] Fix | Delete
#ifndef _ARPA_INET_H
[17] Fix | Delete
#define _ARPA_INET_H 1
[18] Fix | Delete
[19] Fix | Delete
#include <features.h>
[20] Fix | Delete
#include <netinet/in.h> /* To define `struct in_addr'. */
[21] Fix | Delete
[22] Fix | Delete
/* Type for length arguments in socket calls. */
[23] Fix | Delete
#ifndef __socklen_t_defined
[24] Fix | Delete
typedef __socklen_t socklen_t;
[25] Fix | Delete
# define __socklen_t_defined
[26] Fix | Delete
#endif
[27] Fix | Delete
[28] Fix | Delete
__BEGIN_DECLS
[29] Fix | Delete
[30] Fix | Delete
/* Convert Internet host address from numbers-and-dots notation in CP
[31] Fix | Delete
into binary data in network byte order. */
[32] Fix | Delete
extern in_addr_t inet_addr (const char *__cp) __THROW;
[33] Fix | Delete
[34] Fix | Delete
/* Return the local host address part of the Internet address in IN. */
[35] Fix | Delete
extern in_addr_t inet_lnaof (struct in_addr __in) __THROW;
[36] Fix | Delete
[37] Fix | Delete
/* Make Internet host address in network byte order by combining the
[38] Fix | Delete
network number NET with the local address HOST. */
[39] Fix | Delete
extern struct in_addr inet_makeaddr (in_addr_t __net, in_addr_t __host)
[40] Fix | Delete
__THROW;
[41] Fix | Delete
[42] Fix | Delete
/* Return network number part of the Internet address IN. */
[43] Fix | Delete
extern in_addr_t inet_netof (struct in_addr __in) __THROW;
[44] Fix | Delete
[45] Fix | Delete
/* Extract the network number in network byte order from the address
[46] Fix | Delete
in numbers-and-dots natation starting at CP. */
[47] Fix | Delete
extern in_addr_t inet_network (const char *__cp) __THROW;
[48] Fix | Delete
[49] Fix | Delete
/* Convert Internet number in IN to ASCII representation. The return value
[50] Fix | Delete
is a pointer to an internal array containing the string. */
[51] Fix | Delete
extern char *inet_ntoa (struct in_addr __in) __THROW;
[52] Fix | Delete
[53] Fix | Delete
/* Convert from presentation format of an Internet number in buffer
[54] Fix | Delete
starting at CP to the binary network format and store result for
[55] Fix | Delete
interface type AF in buffer starting at BUF. */
[56] Fix | Delete
extern int inet_pton (int __af, const char *__restrict __cp,
[57] Fix | Delete
void *__restrict __buf) __THROW;
[58] Fix | Delete
[59] Fix | Delete
/* Convert a Internet address in binary network format for interface
[60] Fix | Delete
type AF in buffer starting at CP to presentation form and place
[61] Fix | Delete
result in buffer of length LEN astarting at BUF. */
[62] Fix | Delete
extern const char *inet_ntop (int __af, const void *__restrict __cp,
[63] Fix | Delete
char *__restrict __buf, socklen_t __len)
[64] Fix | Delete
__THROW;
[65] Fix | Delete
[66] Fix | Delete
[67] Fix | Delete
/* The following functions are not part of XNS 5.2. */
[68] Fix | Delete
#ifdef __USE_MISC
[69] Fix | Delete
/* Convert Internet host address from numbers-and-dots notation in CP
[70] Fix | Delete
into binary data and store the result in the structure INP. */
[71] Fix | Delete
extern int inet_aton (const char *__cp, struct in_addr *__inp) __THROW;
[72] Fix | Delete
[73] Fix | Delete
/* Format a network number NET into presentation format and place result
[74] Fix | Delete
in buffer starting at BUF with length of LEN bytes. */
[75] Fix | Delete
extern char *inet_neta (in_addr_t __net, char *__buf, size_t __len) __THROW;
[76] Fix | Delete
[77] Fix | Delete
/* Convert network number for interface type AF in buffer starting at
[78] Fix | Delete
CP to presentation format. The result will specifiy BITS bits of
[79] Fix | Delete
the number. */
[80] Fix | Delete
extern char *inet_net_ntop (int __af, const void *__cp, int __bits,
[81] Fix | Delete
char *__buf, size_t __len) __THROW;
[82] Fix | Delete
[83] Fix | Delete
/* Convert network number for interface type AF from presentation in
[84] Fix | Delete
buffer starting at CP to network format and store result int
[85] Fix | Delete
buffer starting at BUF of size LEN. */
[86] Fix | Delete
extern int inet_net_pton (int __af, const char *__cp,
[87] Fix | Delete
void *__buf, size_t __len) __THROW;
[88] Fix | Delete
[89] Fix | Delete
/* Convert ASCII representation in hexadecimal form of the Internet
[90] Fix | Delete
address to binary form and place result in buffer of length LEN
[91] Fix | Delete
starting at BUF. */
[92] Fix | Delete
extern unsigned int inet_nsap_addr (const char *__cp,
[93] Fix | Delete
unsigned char *__buf, int __len) __THROW;
[94] Fix | Delete
[95] Fix | Delete
/* Convert internet address in binary form in LEN bytes starting at CP
[96] Fix | Delete
a presentation form and place result in BUF. */
[97] Fix | Delete
extern char *inet_nsap_ntoa (int __len, const unsigned char *__cp,
[98] Fix | Delete
char *__buf) __THROW;
[99] Fix | Delete
#endif
[100] Fix | Delete
[101] Fix | Delete
__END_DECLS
[102] Fix | Delete
[103] Fix | Delete
#endif /* arpa/inet.h */
[104] Fix | Delete
[105] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function