Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include
File: netdb.h
/* Copyright (C) 1996-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
/* All data returned by the network data base library are supplied in
[17] Fix | Delete
host order and returned in network order (suitable for use in
[18] Fix | Delete
system calls). */
[19] Fix | Delete
[20] Fix | Delete
#ifndef _NETDB_H
[21] Fix | Delete
#define _NETDB_H 1
[22] Fix | Delete
[23] Fix | Delete
#include <features.h>
[24] Fix | Delete
[25] Fix | Delete
#include <netinet/in.h>
[26] Fix | Delete
#include <bits/stdint-uintn.h>
[27] Fix | Delete
#ifdef __USE_MISC
[28] Fix | Delete
/* This is necessary to make this include file properly replace the
[29] Fix | Delete
Sun version. */
[30] Fix | Delete
# include <rpc/netdb.h>
[31] Fix | Delete
#endif
[32] Fix | Delete
[33] Fix | Delete
#ifdef __USE_GNU
[34] Fix | Delete
# include <bits/types/sigevent_t.h>
[35] Fix | Delete
# include <bits/types/struct_timespec.h>
[36] Fix | Delete
#endif
[37] Fix | Delete
[38] Fix | Delete
#include <bits/netdb.h>
[39] Fix | Delete
[40] Fix | Delete
/* Absolute file name for network data base files. */
[41] Fix | Delete
#define _PATH_HEQUIV "/etc/hosts.equiv"
[42] Fix | Delete
#define _PATH_HOSTS "/etc/hosts"
[43] Fix | Delete
#define _PATH_NETWORKS "/etc/networks"
[44] Fix | Delete
#define _PATH_NSSWITCH_CONF "/etc/nsswitch.conf"
[45] Fix | Delete
#define _PATH_PROTOCOLS "/etc/protocols"
[46] Fix | Delete
#define _PATH_SERVICES "/etc/services"
[47] Fix | Delete
[48] Fix | Delete
[49] Fix | Delete
__BEGIN_DECLS
[50] Fix | Delete
[51] Fix | Delete
#if defined __USE_MISC || !defined __USE_XOPEN2K8
[52] Fix | Delete
/* Error status for non-reentrant lookup functions.
[53] Fix | Delete
We use a macro to access always the thread-specific `h_errno' variable. */
[54] Fix | Delete
# define h_errno (*__h_errno_location ())
[55] Fix | Delete
[56] Fix | Delete
/* Function to get address of global `h_errno' variable. */
[57] Fix | Delete
extern int *__h_errno_location (void) __THROW __attribute__ ((__const__));
[58] Fix | Delete
[59] Fix | Delete
[60] Fix | Delete
/* Possible values left in `h_errno'. */
[61] Fix | Delete
# define HOST_NOT_FOUND 1 /* Authoritative Answer Host not found. */
[62] Fix | Delete
# define TRY_AGAIN 2 /* Non-Authoritative Host not found,
[63] Fix | Delete
or SERVERFAIL. */
[64] Fix | Delete
# define NO_RECOVERY 3 /* Non recoverable errors, FORMERR, REFUSED,
[65] Fix | Delete
NOTIMP. */
[66] Fix | Delete
# define NO_DATA 4 /* Valid name, no data record of requested
[67] Fix | Delete
type. */
[68] Fix | Delete
#endif
[69] Fix | Delete
#ifdef __USE_MISC
[70] Fix | Delete
# define NETDB_INTERNAL -1 /* See errno. */
[71] Fix | Delete
# define NETDB_SUCCESS 0 /* No problem. */
[72] Fix | Delete
# define NO_ADDRESS NO_DATA /* No address, look for MX record. */
[73] Fix | Delete
#endif
[74] Fix | Delete
[75] Fix | Delete
#if defined __USE_XOPEN2K || defined __USE_XOPEN_EXTENDED
[76] Fix | Delete
/* Highest reserved Internet port number. */
[77] Fix | Delete
# define IPPORT_RESERVED 1024
[78] Fix | Delete
#endif
[79] Fix | Delete
[80] Fix | Delete
#ifdef __USE_GNU
[81] Fix | Delete
/* Scope delimiter for getaddrinfo(), getnameinfo(). */
[82] Fix | Delete
# define SCOPE_DELIMITER '%'
[83] Fix | Delete
#endif
[84] Fix | Delete
[85] Fix | Delete
#ifdef __USE_MISC
[86] Fix | Delete
/* Print error indicated by `h_errno' variable on standard error. STR
[87] Fix | Delete
if non-null is printed before the error string. */
[88] Fix | Delete
extern void herror (const char *__str) __THROW;
[89] Fix | Delete
[90] Fix | Delete
/* Return string associated with error ERR_NUM. */
[91] Fix | Delete
extern const char *hstrerror (int __err_num) __THROW;
[92] Fix | Delete
#endif
[93] Fix | Delete
[94] Fix | Delete
[95] Fix | Delete
/* Description of data base entry for a single host. */
[96] Fix | Delete
struct hostent
[97] Fix | Delete
{
[98] Fix | Delete
char *h_name; /* Official name of host. */
[99] Fix | Delete
char **h_aliases; /* Alias list. */
[100] Fix | Delete
int h_addrtype; /* Host address type. */
[101] Fix | Delete
int h_length; /* Length of address. */
[102] Fix | Delete
char **h_addr_list; /* List of addresses from name server. */
[103] Fix | Delete
#ifdef __USE_MISC
[104] Fix | Delete
# define h_addr h_addr_list[0] /* Address, for backward compatibility.*/
[105] Fix | Delete
#endif
[106] Fix | Delete
};
[107] Fix | Delete
[108] Fix | Delete
/* Open host data base files and mark them as staying open even after
[109] Fix | Delete
a later search if STAY_OPEN is non-zero.
[110] Fix | Delete
[111] Fix | Delete
This function is a possible cancellation point and therefore not
[112] Fix | Delete
marked with __THROW. */
[113] Fix | Delete
extern void sethostent (int __stay_open);
[114] Fix | Delete
[115] Fix | Delete
/* Close host data base files and clear `stay open' flag.
[116] Fix | Delete
[117] Fix | Delete
This function is a possible cancellation point and therefore not
[118] Fix | Delete
marked with __THROW. */
[119] Fix | Delete
extern void endhostent (void);
[120] Fix | Delete
[121] Fix | Delete
/* Get next entry from host data base file. Open data base if
[122] Fix | Delete
necessary.
[123] Fix | Delete
[124] Fix | Delete
This function is a possible cancellation point and therefore not
[125] Fix | Delete
marked with __THROW. */
[126] Fix | Delete
extern struct hostent *gethostent (void);
[127] Fix | Delete
[128] Fix | Delete
/* Return entry from host data base which address match ADDR with
[129] Fix | Delete
length LEN and type TYPE.
[130] Fix | Delete
[131] Fix | Delete
This function is a possible cancellation point and therefore not
[132] Fix | Delete
marked with __THROW. */
[133] Fix | Delete
extern struct hostent *gethostbyaddr (const void *__addr, __socklen_t __len,
[134] Fix | Delete
int __type);
[135] Fix | Delete
[136] Fix | Delete
/* Return entry from host data base for host with NAME.
[137] Fix | Delete
[138] Fix | Delete
This function is a possible cancellation point and therefore not
[139] Fix | Delete
marked with __THROW. */
[140] Fix | Delete
extern struct hostent *gethostbyname (const char *__name);
[141] Fix | Delete
[142] Fix | Delete
#ifdef __USE_MISC
[143] Fix | Delete
/* Return entry from host data base for host with NAME. AF must be
[144] Fix | Delete
set to the address type which is `AF_INET' for IPv4 or `AF_INET6'
[145] Fix | Delete
for IPv6.
[146] Fix | Delete
[147] Fix | Delete
This function is not part of POSIX and therefore no official
[148] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[149] Fix | Delete
or due to the implementation it is a cancellation point and
[150] Fix | Delete
therefore not marked with __THROW. */
[151] Fix | Delete
extern struct hostent *gethostbyname2 (const char *__name, int __af);
[152] Fix | Delete
[153] Fix | Delete
/* Reentrant versions of the functions above. The additional
[154] Fix | Delete
arguments specify a buffer of BUFLEN starting at BUF. The last
[155] Fix | Delete
argument is a pointer to a variable which gets the value which
[156] Fix | Delete
would be stored in the global variable `herrno' by the
[157] Fix | Delete
non-reentrant functions.
[158] Fix | Delete
[159] Fix | Delete
These functions are not part of POSIX and therefore no official
[160] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[161] Fix | Delete
or due to the implementation they are cancellation points and
[162] Fix | Delete
therefore not marked with __THROW. */
[163] Fix | Delete
extern int gethostent_r (struct hostent *__restrict __result_buf,
[164] Fix | Delete
char *__restrict __buf, size_t __buflen,
[165] Fix | Delete
struct hostent **__restrict __result,
[166] Fix | Delete
int *__restrict __h_errnop);
[167] Fix | Delete
[168] Fix | Delete
extern int gethostbyaddr_r (const void *__restrict __addr, __socklen_t __len,
[169] Fix | Delete
int __type,
[170] Fix | Delete
struct hostent *__restrict __result_buf,
[171] Fix | Delete
char *__restrict __buf, size_t __buflen,
[172] Fix | Delete
struct hostent **__restrict __result,
[173] Fix | Delete
int *__restrict __h_errnop);
[174] Fix | Delete
[175] Fix | Delete
extern int gethostbyname_r (const char *__restrict __name,
[176] Fix | Delete
struct hostent *__restrict __result_buf,
[177] Fix | Delete
char *__restrict __buf, size_t __buflen,
[178] Fix | Delete
struct hostent **__restrict __result,
[179] Fix | Delete
int *__restrict __h_errnop);
[180] Fix | Delete
[181] Fix | Delete
extern int gethostbyname2_r (const char *__restrict __name, int __af,
[182] Fix | Delete
struct hostent *__restrict __result_buf,
[183] Fix | Delete
char *__restrict __buf, size_t __buflen,
[184] Fix | Delete
struct hostent **__restrict __result,
[185] Fix | Delete
int *__restrict __h_errnop);
[186] Fix | Delete
#endif /* misc */
[187] Fix | Delete
[188] Fix | Delete
[189] Fix | Delete
/* Open network data base files and mark them as staying open even
[190] Fix | Delete
after a later search if STAY_OPEN is non-zero.
[191] Fix | Delete
[192] Fix | Delete
This function is a possible cancellation point and therefore not
[193] Fix | Delete
marked with __THROW. */
[194] Fix | Delete
extern void setnetent (int __stay_open);
[195] Fix | Delete
[196] Fix | Delete
/* Close network data base files and clear `stay open' flag.
[197] Fix | Delete
[198] Fix | Delete
This function is a possible cancellation point and therefore not
[199] Fix | Delete
marked with __THROW. */
[200] Fix | Delete
extern void endnetent (void);
[201] Fix | Delete
[202] Fix | Delete
/* Get next entry from network data base file. Open data base if
[203] Fix | Delete
necessary.
[204] Fix | Delete
[205] Fix | Delete
This function is a possible cancellation point and therefore not
[206] Fix | Delete
marked with __THROW. */
[207] Fix | Delete
extern struct netent *getnetent (void);
[208] Fix | Delete
[209] Fix | Delete
/* Return entry from network data base which address match NET and
[210] Fix | Delete
type TYPE.
[211] Fix | Delete
[212] Fix | Delete
This function is a possible cancellation point and therefore not
[213] Fix | Delete
marked with __THROW. */
[214] Fix | Delete
extern struct netent *getnetbyaddr (uint32_t __net, int __type);
[215] Fix | Delete
[216] Fix | Delete
/* Return entry from network data base for network with NAME.
[217] Fix | Delete
[218] Fix | Delete
This function is a possible cancellation point and therefore not
[219] Fix | Delete
marked with __THROW. */
[220] Fix | Delete
extern struct netent *getnetbyname (const char *__name);
[221] Fix | Delete
[222] Fix | Delete
#ifdef __USE_MISC
[223] Fix | Delete
/* Reentrant versions of the functions above. The additional
[224] Fix | Delete
arguments specify a buffer of BUFLEN starting at BUF. The last
[225] Fix | Delete
argument is a pointer to a variable which gets the value which
[226] Fix | Delete
would be stored in the global variable `herrno' by the
[227] Fix | Delete
non-reentrant functions.
[228] Fix | Delete
[229] Fix | Delete
These functions are not part of POSIX and therefore no official
[230] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[231] Fix | Delete
or due to the implementation they are cancellation points and
[232] Fix | Delete
therefore not marked with __THROW. */
[233] Fix | Delete
extern int getnetent_r (struct netent *__restrict __result_buf,
[234] Fix | Delete
char *__restrict __buf, size_t __buflen,
[235] Fix | Delete
struct netent **__restrict __result,
[236] Fix | Delete
int *__restrict __h_errnop);
[237] Fix | Delete
[238] Fix | Delete
extern int getnetbyaddr_r (uint32_t __net, int __type,
[239] Fix | Delete
struct netent *__restrict __result_buf,
[240] Fix | Delete
char *__restrict __buf, size_t __buflen,
[241] Fix | Delete
struct netent **__restrict __result,
[242] Fix | Delete
int *__restrict __h_errnop);
[243] Fix | Delete
[244] Fix | Delete
extern int getnetbyname_r (const char *__restrict __name,
[245] Fix | Delete
struct netent *__restrict __result_buf,
[246] Fix | Delete
char *__restrict __buf, size_t __buflen,
[247] Fix | Delete
struct netent **__restrict __result,
[248] Fix | Delete
int *__restrict __h_errnop);
[249] Fix | Delete
#endif /* misc */
[250] Fix | Delete
[251] Fix | Delete
[252] Fix | Delete
/* Description of data base entry for a single service. */
[253] Fix | Delete
struct servent
[254] Fix | Delete
{
[255] Fix | Delete
char *s_name; /* Official service name. */
[256] Fix | Delete
char **s_aliases; /* Alias list. */
[257] Fix | Delete
int s_port; /* Port number. */
[258] Fix | Delete
char *s_proto; /* Protocol to use. */
[259] Fix | Delete
};
[260] Fix | Delete
[261] Fix | Delete
/* Open service data base files and mark them as staying open even
[262] Fix | Delete
after a later search if STAY_OPEN is non-zero.
[263] Fix | Delete
[264] Fix | Delete
This function is a possible cancellation point and therefore not
[265] Fix | Delete
marked with __THROW. */
[266] Fix | Delete
extern void setservent (int __stay_open);
[267] Fix | Delete
[268] Fix | Delete
/* Close service data base files and clear `stay open' flag.
[269] Fix | Delete
[270] Fix | Delete
This function is a possible cancellation point and therefore not
[271] Fix | Delete
marked with __THROW. */
[272] Fix | Delete
extern void endservent (void);
[273] Fix | Delete
[274] Fix | Delete
/* Get next entry from service data base file. Open data base if
[275] Fix | Delete
necessary.
[276] Fix | Delete
[277] Fix | Delete
This function is a possible cancellation point and therefore not
[278] Fix | Delete
marked with __THROW. */
[279] Fix | Delete
extern struct servent *getservent (void);
[280] Fix | Delete
[281] Fix | Delete
/* Return entry from network data base for network with NAME and
[282] Fix | Delete
protocol PROTO.
[283] Fix | Delete
[284] Fix | Delete
This function is a possible cancellation point and therefore not
[285] Fix | Delete
marked with __THROW. */
[286] Fix | Delete
extern struct servent *getservbyname (const char *__name, const char *__proto);
[287] Fix | Delete
[288] Fix | Delete
/* Return entry from service data base which matches port PORT and
[289] Fix | Delete
protocol PROTO.
[290] Fix | Delete
[291] Fix | Delete
This function is a possible cancellation point and therefore not
[292] Fix | Delete
marked with __THROW. */
[293] Fix | Delete
extern struct servent *getservbyport (int __port, const char *__proto);
[294] Fix | Delete
[295] Fix | Delete
[296] Fix | Delete
#ifdef __USE_MISC
[297] Fix | Delete
/* Reentrant versions of the functions above. The additional
[298] Fix | Delete
arguments specify a buffer of BUFLEN starting at BUF.
[299] Fix | Delete
[300] Fix | Delete
These functions are not part of POSIX and therefore no official
[301] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[302] Fix | Delete
or due to the implementation they are cancellation points and
[303] Fix | Delete
therefore not marked with __THROW. */
[304] Fix | Delete
extern int getservent_r (struct servent *__restrict __result_buf,
[305] Fix | Delete
char *__restrict __buf, size_t __buflen,
[306] Fix | Delete
struct servent **__restrict __result);
[307] Fix | Delete
[308] Fix | Delete
extern int getservbyname_r (const char *__restrict __name,
[309] Fix | Delete
const char *__restrict __proto,
[310] Fix | Delete
struct servent *__restrict __result_buf,
[311] Fix | Delete
char *__restrict __buf, size_t __buflen,
[312] Fix | Delete
struct servent **__restrict __result);
[313] Fix | Delete
[314] Fix | Delete
extern int getservbyport_r (int __port, const char *__restrict __proto,
[315] Fix | Delete
struct servent *__restrict __result_buf,
[316] Fix | Delete
char *__restrict __buf, size_t __buflen,
[317] Fix | Delete
struct servent **__restrict __result);
[318] Fix | Delete
#endif /* misc */
[319] Fix | Delete
[320] Fix | Delete
[321] Fix | Delete
/* Description of data base entry for a single service. */
[322] Fix | Delete
struct protoent
[323] Fix | Delete
{
[324] Fix | Delete
char *p_name; /* Official protocol name. */
[325] Fix | Delete
char **p_aliases; /* Alias list. */
[326] Fix | Delete
int p_proto; /* Protocol number. */
[327] Fix | Delete
};
[328] Fix | Delete
[329] Fix | Delete
/* Open protocol data base files and mark them as staying open even
[330] Fix | Delete
after a later search if STAY_OPEN is non-zero.
[331] Fix | Delete
[332] Fix | Delete
This function is a possible cancellation point and therefore not
[333] Fix | Delete
marked with __THROW. */
[334] Fix | Delete
extern void setprotoent (int __stay_open);
[335] Fix | Delete
[336] Fix | Delete
/* Close protocol data base files and clear `stay open' flag.
[337] Fix | Delete
[338] Fix | Delete
This function is a possible cancellation point and therefore not
[339] Fix | Delete
marked with __THROW. */
[340] Fix | Delete
extern void endprotoent (void);
[341] Fix | Delete
[342] Fix | Delete
/* Get next entry from protocol data base file. Open data base if
[343] Fix | Delete
necessary.
[344] Fix | Delete
[345] Fix | Delete
This function is a possible cancellation point and therefore not
[346] Fix | Delete
marked with __THROW. */
[347] Fix | Delete
extern struct protoent *getprotoent (void);
[348] Fix | Delete
[349] Fix | Delete
/* Return entry from protocol data base for network with NAME.
[350] Fix | Delete
[351] Fix | Delete
This function is a possible cancellation point and therefore not
[352] Fix | Delete
marked with __THROW. */
[353] Fix | Delete
extern struct protoent *getprotobyname (const char *__name);
[354] Fix | Delete
[355] Fix | Delete
/* Return entry from protocol data base which number is PROTO.
[356] Fix | Delete
[357] Fix | Delete
This function is a possible cancellation point and therefore not
[358] Fix | Delete
marked with __THROW. */
[359] Fix | Delete
extern struct protoent *getprotobynumber (int __proto);
[360] Fix | Delete
[361] Fix | Delete
[362] Fix | Delete
#ifdef __USE_MISC
[363] Fix | Delete
/* Reentrant versions of the functions above. The additional
[364] Fix | Delete
arguments specify a buffer of BUFLEN starting at BUF.
[365] Fix | Delete
[366] Fix | Delete
These functions are not part of POSIX and therefore no official
[367] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[368] Fix | Delete
or due to the implementation they are cancellation points and
[369] Fix | Delete
therefore not marked with __THROW. */
[370] Fix | Delete
extern int getprotoent_r (struct protoent *__restrict __result_buf,
[371] Fix | Delete
char *__restrict __buf, size_t __buflen,
[372] Fix | Delete
struct protoent **__restrict __result);
[373] Fix | Delete
[374] Fix | Delete
extern int getprotobyname_r (const char *__restrict __name,
[375] Fix | Delete
struct protoent *__restrict __result_buf,
[376] Fix | Delete
char *__restrict __buf, size_t __buflen,
[377] Fix | Delete
struct protoent **__restrict __result);
[378] Fix | Delete
[379] Fix | Delete
extern int getprotobynumber_r (int __proto,
[380] Fix | Delete
struct protoent *__restrict __result_buf,
[381] Fix | Delete
char *__restrict __buf, size_t __buflen,
[382] Fix | Delete
struct protoent **__restrict __result);
[383] Fix | Delete
[384] Fix | Delete
[385] Fix | Delete
/* Establish network group NETGROUP for enumeration.
[386] Fix | Delete
[387] Fix | Delete
This function is not part of POSIX and therefore no official
[388] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[389] Fix | Delete
or due to the implementation it is a cancellation point and
[390] Fix | Delete
therefore not marked with __THROW. */
[391] Fix | Delete
extern int setnetgrent (const char *__netgroup);
[392] Fix | Delete
[393] Fix | Delete
/* Free all space allocated by previous `setnetgrent' call.
[394] Fix | Delete
[395] Fix | Delete
This function is not part of POSIX and therefore no official
[396] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[397] Fix | Delete
or due to the implementation it is a cancellation point and
[398] Fix | Delete
therefore not marked with __THROW. */
[399] Fix | Delete
extern void endnetgrent (void);
[400] Fix | Delete
[401] Fix | Delete
/* Get next member of netgroup established by last `setnetgrent' call
[402] Fix | Delete
and return pointers to elements in HOSTP, USERP, and DOMAINP.
[403] Fix | Delete
[404] Fix | Delete
This function is not part of POSIX and therefore no official
[405] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[406] Fix | Delete
or due to the implementation it is a cancellation point and
[407] Fix | Delete
therefore not marked with __THROW. */
[408] Fix | Delete
extern int getnetgrent (char **__restrict __hostp,
[409] Fix | Delete
char **__restrict __userp,
[410] Fix | Delete
char **__restrict __domainp);
[411] Fix | Delete
[412] Fix | Delete
[413] Fix | Delete
/* Test whether NETGROUP contains the triple (HOST,USER,DOMAIN).
[414] Fix | Delete
[415] Fix | Delete
This function is not part of POSIX and therefore no official
[416] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[417] Fix | Delete
or due to the implementation it is a cancellation point and
[418] Fix | Delete
therefore not marked with __THROW. */
[419] Fix | Delete
extern int innetgr (const char *__netgroup, const char *__host,
[420] Fix | Delete
const char *__user, const char *__domain);
[421] Fix | Delete
[422] Fix | Delete
/* Reentrant version of `getnetgrent' where result is placed in BUFFER.
[423] Fix | Delete
[424] Fix | Delete
This function is not part of POSIX and therefore no official
[425] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[426] Fix | Delete
or due to the implementation it is a cancellation point and
[427] Fix | Delete
therefore not marked with __THROW. */
[428] Fix | Delete
extern int getnetgrent_r (char **__restrict __hostp,
[429] Fix | Delete
char **__restrict __userp,
[430] Fix | Delete
char **__restrict __domainp,
[431] Fix | Delete
char *__restrict __buffer, size_t __buflen);
[432] Fix | Delete
#endif /* misc */
[433] Fix | Delete
[434] Fix | Delete
[435] Fix | Delete
#ifdef __USE_MISC
[436] Fix | Delete
/* Call `rshd' at port RPORT on remote machine *AHOST to execute CMD.
[437] Fix | Delete
The local user is LOCUSER, on the remote machine the command is
[438] Fix | Delete
executed as REMUSER. In *FD2P the descriptor to the socket for the
[439] Fix | Delete
connection is returned. The caller must have the right to use a
[440] Fix | Delete
reserved port. When the function returns *AHOST contains the
[441] Fix | Delete
official host name.
[442] Fix | Delete
[443] Fix | Delete
This function is not part of POSIX and therefore no official
[444] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[445] Fix | Delete
or due to the implementation it is a cancellation point and
[446] Fix | Delete
therefore not marked with __THROW. */
[447] Fix | Delete
extern int rcmd (char **__restrict __ahost, unsigned short int __rport,
[448] Fix | Delete
const char *__restrict __locuser,
[449] Fix | Delete
const char *__restrict __remuser,
[450] Fix | Delete
const char *__restrict __cmd, int *__restrict __fd2p);
[451] Fix | Delete
[452] Fix | Delete
/* This is the equivalent function where the protocol can be selected
[453] Fix | Delete
and which therefore can be used for IPv6.
[454] Fix | Delete
[455] Fix | Delete
This function is not part of POSIX and therefore no official
[456] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[457] Fix | Delete
or due to the implementation it is a cancellation point and
[458] Fix | Delete
therefore not marked with __THROW. */
[459] Fix | Delete
extern int rcmd_af (char **__restrict __ahost, unsigned short int __rport,
[460] Fix | Delete
const char *__restrict __locuser,
[461] Fix | Delete
const char *__restrict __remuser,
[462] Fix | Delete
const char *__restrict __cmd, int *__restrict __fd2p,
[463] Fix | Delete
sa_family_t __af);
[464] Fix | Delete
[465] Fix | Delete
/* Call `rexecd' at port RPORT on remote machine *AHOST to execute
[466] Fix | Delete
CMD. The process runs at the remote machine using the ID of user
[467] Fix | Delete
NAME whose cleartext password is PASSWD. In *FD2P the descriptor
[468] Fix | Delete
to the socket for the connection is returned. When the function
[469] Fix | Delete
returns *AHOST contains the official host name.
[470] Fix | Delete
[471] Fix | Delete
This function is not part of POSIX and therefore no official
[472] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[473] Fix | Delete
or due to the implementation it is a cancellation point and
[474] Fix | Delete
therefore not marked with __THROW. */
[475] Fix | Delete
extern int rexec (char **__restrict __ahost, int __rport,
[476] Fix | Delete
const char *__restrict __name,
[477] Fix | Delete
const char *__restrict __pass,
[478] Fix | Delete
const char *__restrict __cmd, int *__restrict __fd2p);
[479] Fix | Delete
[480] Fix | Delete
/* This is the equivalent function where the protocol can be selected
[481] Fix | Delete
and which therefore can be used for IPv6.
[482] Fix | Delete
[483] Fix | Delete
This function is not part of POSIX and therefore no official
[484] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[485] Fix | Delete
or due to the implementation it is a cancellation point and
[486] Fix | Delete
therefore not marked with __THROW. */
[487] Fix | Delete
extern int rexec_af (char **__restrict __ahost, int __rport,
[488] Fix | Delete
const char *__restrict __name,
[489] Fix | Delete
const char *__restrict __pass,
[490] Fix | Delete
const char *__restrict __cmd, int *__restrict __fd2p,
[491] Fix | Delete
sa_family_t __af);
[492] Fix | Delete
[493] Fix | Delete
/* Check whether user REMUSER on system RHOST is allowed to login as LOCUSER.
[494] Fix | Delete
If SUSER is not zero the user tries to become superuser. Return 0 if
[495] Fix | Delete
it is possible.
[496] Fix | Delete
[497] Fix | Delete
This function is not part of POSIX and therefore no official
[498] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function