File tree 6 files changed +36
-0
lines changed
6 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -1086,6 +1086,12 @@ extern "C" {
1086
1086
pub fn statfs ( path : * const :: c_char , buf : * mut statfs ) -> :: c_int ;
1087
1087
pub fn fstatfs ( fd : :: c_int , buf : * mut statfs ) -> :: c_int ;
1088
1088
pub fn uname ( buf : * mut :: utsname ) -> :: c_int ;
1089
+ pub fn memmem (
1090
+ haystack : * const :: c_void ,
1091
+ haystacklen : :: size_t ,
1092
+ needle : * const :: c_void ,
1093
+ needlelen : :: size_t ,
1094
+ ) -> * mut :: c_void ;
1089
1095
}
1090
1096
1091
1097
cfg_if ! {
Original file line number Diff line number Diff line change @@ -1435,6 +1435,12 @@ extern "C" {
1435
1435
flags : :: c_int ,
1436
1436
timeout : * const :: timespec ,
1437
1437
) -> :: ssize_t ;
1438
+ pub fn memmem (
1439
+ haystack : * const :: c_void ,
1440
+ haystacklen : :: size_t ,
1441
+ needle : * const :: c_void ,
1442
+ needlelen : :: size_t ,
1443
+ ) -> * mut :: c_void ;
1438
1444
}
1439
1445
1440
1446
#[ link( name = "util" ) ]
Original file line number Diff line number Diff line change @@ -1894,6 +1894,12 @@ extern "C" {
1894
1894
) -> :: c_int ;
1895
1895
1896
1896
pub fn _lwp_self ( ) -> lwpid_t ;
1897
+ pub fn memmem (
1898
+ haystack : * const :: c_void ,
1899
+ haystacklen : :: size_t ,
1900
+ needle : * const :: c_void ,
1901
+ needlelen : :: size_t ,
1902
+ ) -> * mut :: c_void ;
1897
1903
}
1898
1904
1899
1905
#[ link( name = "util" ) ]
Original file line number Diff line number Diff line change @@ -1478,6 +1478,12 @@ extern "C" {
1478
1478
addr : caddr_t ,
1479
1479
data : :: c_int ,
1480
1480
) -> :: c_int ;
1481
+ pub fn memmem (
1482
+ haystack : * const :: c_void ,
1483
+ haystacklen : :: size_t ,
1484
+ needle : * const :: c_void ,
1485
+ needlelen : :: size_t ,
1486
+ ) -> * mut :: c_void ;
1481
1487
}
1482
1488
1483
1489
cfg_if ! {
Original file line number Diff line number Diff line change @@ -972,6 +972,12 @@ extern "C" {
972
972
buflen : :: size_t ,
973
973
flags : :: c_uint ,
974
974
) -> :: ssize_t ;
975
+ pub fn memmem (
976
+ haystack : * const :: c_void ,
977
+ haystacklen : :: size_t ,
978
+ needle : * const :: c_void ,
979
+ needlelen : :: size_t ,
980
+ ) -> * mut :: c_void ;
975
981
}
976
982
977
983
#[ link( name = "util" ) ]
Original file line number Diff line number Diff line change @@ -416,6 +416,12 @@ extern "C" {
416
416
cpuset : * const :: cpu_set_t ,
417
417
) -> :: c_int ;
418
418
pub fn sched_getcpu ( ) -> :: c_int ;
419
+ pub fn memmem (
420
+ haystack : * const :: c_void ,
421
+ haystacklen : :: size_t ,
422
+ needle : * const :: c_void ,
423
+ needlelen : :: size_t ,
424
+ ) -> * mut :: c_void ;
419
425
}
420
426
421
427
cfg_if ! {
You can’t perform that action at this time.
0 commit comments