File tree Expand file tree Collapse file tree 2 files changed +50
-0
lines changed Expand file tree Collapse file tree 2 files changed +50
-0
lines changed Original file line number Diff line number Diff line change @@ -4218,6 +4218,12 @@ regmatch_t
4218
4218
regoff_t
4219
4219
remap_file_pages
4220
4220
removexattr
4221
+ res_init
4222
+ res_mkquery
4223
+ res_query
4224
+ res_querydomain
4225
+ res_search
4226
+ res_send
4221
4227
rlim64_t
4222
4228
rlimit64
4223
4229
rtentry
Original file line number Diff line number Diff line change @@ -1263,6 +1263,11 @@ pub const PIPE_BUF: usize = 4096;
1263
1263
1264
1264
pub const SI_LOAD_SHIFT : c_uint = 16 ;
1265
1265
1266
+ // arpa/nameser.h
1267
+ pub const T_A : c_int = 1 ;
1268
+ pub const T_CNAME : c_int = 5 ;
1269
+ pub const C_IN : c_int = 1 ;
1270
+
1266
1271
// si_code values
1267
1272
pub const SI_USER : c_int = 0 ;
1268
1273
pub const SI_KERNEL : c_int = 0x80 ;
@@ -2062,6 +2067,45 @@ extern "C" {
2062
2067
2063
2068
pub fn getdomainname ( name : * mut c_char , len : size_t ) -> c_int ;
2064
2069
pub fn setdomainname ( name : * const c_char , len : size_t ) -> c_int ;
2070
+
2071
+ // <resolv.h>
2072
+ #[ allow( dead_code) ]
2073
+ pub fn res_init ( ) -> c_int ;
2074
+ pub fn res_query (
2075
+ dname : * const c_char ,
2076
+ class : c_int ,
2077
+ kind : c_int ,
2078
+ answer : * mut c_uchar ,
2079
+ anslen : c_int ,
2080
+ ) -> c_int ;
2081
+ pub fn res_search (
2082
+ dname : * const c_char ,
2083
+ class : c_int ,
2084
+ kind : c_int ,
2085
+ answer : * mut c_uchar ,
2086
+ anslen : c_int ,
2087
+ ) -> c_int ;
2088
+ pub fn res_querydomain (
2089
+ name : * const c_char ,
2090
+ domain : * const c_char ,
2091
+ class : c_int ,
2092
+ kind : c_int ,
2093
+ answer : * mut c_uchar ,
2094
+ anslen : c_int ,
2095
+ ) -> c_int ;
2096
+ pub fn res_mkquery (
2097
+ op : c_int ,
2098
+ dname : * const c_char ,
2099
+ class : c_int ,
2100
+ kind : c_int ,
2101
+ data : * mut c_char ,
2102
+ newrr : * const c_void ,
2103
+ datalen : c_int ,
2104
+ buf : * mut c_char ,
2105
+ buflen : c_int ,
2106
+ ) -> c_int ;
2107
+ pub fn res_send ( msg : * const c_char , msglen : c_int , answer : * mut c_char , anslen : c_int )
2108
+ -> c_int ;
2065
2109
}
2066
2110
2067
2111
// LFS64 extensions
You can’t perform that action at this time.
0 commit comments