mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
LibC: Add h_errno and stub out getservbyname()
This commit is contained in:
parent
cf4da485e6
commit
c3b09c7242
Notes:
sideshowbarker
2024-07-19 09:12:30 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/c3b09c72429
@ -37,6 +37,8 @@
|
||||
|
||||
extern "C" {
|
||||
|
||||
int h_errno;
|
||||
|
||||
static hostent __gethostbyname_buffer;
|
||||
static char __gethostbyname_name_buffer[512];
|
||||
static in_addr_t __gethostbyname_address;
|
||||
@ -196,4 +198,11 @@ hostent* gethostbyaddr(const void* addr, socklen_t addr_size, int type)
|
||||
|
||||
return &__gethostbyaddr_buffer;
|
||||
}
|
||||
|
||||
struct servent* getservbyname(const char* name, const char* protocol)
|
||||
{
|
||||
dbg() << "FIXME: getservbyname(\"" << name << "\", \"" << protocol << "\")";
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -52,4 +52,11 @@ struct servent {
|
||||
|
||||
struct servent* getservbyname(const char* name, const char* protocol);
|
||||
|
||||
extern int h_errno;
|
||||
|
||||
#define HOST_NOT_FOUND 101
|
||||
#define NO_DATA 102
|
||||
#define NO_RECOVERY 103
|
||||
#define TRY_AGAIN 104
|
||||
|
||||
__END_DECLS
|
||||
|
Loading…
Reference in New Issue
Block a user