File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -4123,7 +4123,6 @@ fn test_haiku(target: &str) {
41234123 "arpa/nameser.h" ,
41244124 "arpa/nameser_compat.h" ,
41254125 "assert.h" ,
4126- "bsd_mem.h" ,
41274126 "complex.h" ,
41284127 "ctype.h" ,
41294128 "dirent.h" ,
@@ -4228,6 +4227,7 @@ fn test_haiku(target: &str) {
42284227 "libutil.h" ,
42294228 "link.h" ,
42304229 "pty.h" ,
4230+ "stringlist.h" ,
42314231 }
42324232
42334233 // Native API
Original file line number Diff line number Diff line change @@ -55,6 +55,8 @@ pub type ACTION = ::c_int;
5555pub type posix_spawnattr_t = * mut :: c_void ;
5656pub type posix_spawn_file_actions_t = * mut :: c_void ;
5757
58+ pub type StringList = _stringlist ;
59+
5860#[ cfg_attr( feature = "extra_traits" , derive( Debug ) ) ]
5961pub enum timezone { }
6062impl :: Copy for timezone { }
@@ -437,6 +439,12 @@ s! {
437439 pub flag: * mut :: c_int,
438440 pub val: :: c_int,
439441 }
442+
443+ pub struct _stringlist {
444+ pub sl_str: * mut * mut :: c_char,
445+ pub sl_max: :: size_t,
446+ pub sl_cur: :: size_t,
447+ }
440448}
441449
442450s_no_extra_traits ! {
@@ -2017,6 +2025,11 @@ extern "C" {
20172025 pub fn strsep ( string : * mut * mut :: c_char , delimiters : * const :: c_char ) -> * mut :: c_char ;
20182026 pub fn explicit_bzero ( buf : * mut :: c_void , len : :: size_t ) ;
20192027 pub fn login_tty ( _fd : :: c_int ) -> :: c_int ;
2028+
2029+ pub fn sl_init ( ) -> * mut StringList ;
2030+ pub fn sl_add ( sl : * mut StringList , n : * mut :: c_char ) -> :: c_int ;
2031+ pub fn sl_free ( sl : * mut StringList , i : :: c_int ) ;
2032+ pub fn sl_find ( sl : * mut StringList , n : * mut :: c_char ) -> * mut :: c_char ;
20202033}
20212034
20222035cfg_if ! {
You can’t perform that action at this time.
0 commit comments