XenevaOS
Loading...
Searching...
No Matches
netdb.h
Go to the documentation of this file.
1
32#ifndef __NETDB_H__
33#define __NETDB_H__
34
35#include <stdint.h>
36#include <_xeneva.h>
37
38#ifdef __cplusplus
40#endif
41
42#pragma pack(push, 1)
43#if defined(_MSC_VER)
44 __declspec(align(2))
45#else
46__attribute__((aligned(2)))
47#endif
48 typedef struct _dns_ {
55 uint8_t data[];
57#pragma pack(pop)
58
59 struct hostent {
60 char* h_name;
61 char** h_aliases;
65 };
66
67 XE_LIB hostent* gethostbyname(const char* name);
68
69#ifdef __cplusplus
70}
71#endif
72
73#endif
enum PeOptionalMagic __attribute__
Definition ramdisk.c:121
#define XE_LIB
Definition _xeneva.h:55
#define XE_EXTERN
Definition _xeneva.h:50
unsigned char uint8_t
Definition acefiex.h:161
unsigned short int uint16_t
Definition acefiex.h:162
XE_LIB hostent * gethostbyname(const char *name)
Definition xenet.cpp:103
DNSPacket
Definition netdb.h:56
Definition ethernet.c:87
uint16_t flags
Definition ethernet.c:89
uint8_t data[]
Definition ethernet.c:94
uint16_t qid
Definition ethernet.c:88
uint16_t authorities
Definition ethernet.c:92
uint16_t answers
Definition ethernet.c:91
uint16_t questions
Definition ethernet.c:90
uint16_t additional
Definition ethernet.c:93
Definition netdb.h:59
int h_addrtype
Definition netdb.h:62
char * h_name
Definition netdb.h:60
char ** h_addr_list
Definition netdb.h:64
int h_length
Definition netdb.h:63
char ** h_aliases
Definition netdb.h:61
__declspec(align(4)) static gdt_entry gdt[GDT_ENTRIES]