File tree 3 files changed +22
-0
lines changed
3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -199,6 +199,7 @@ fn test_apple(target: &str) {
199
199
"errno.h" ,
200
200
"execinfo.h" ,
201
201
"fcntl.h" ,
202
+ "getopt.h" ,
202
203
"glob.h" ,
203
204
"grp.h" ,
204
205
"iconv.h" ,
@@ -421,6 +422,7 @@ fn test_openbsd(target: &str) {
421
422
"errno.h" ,
422
423
"execinfo.h" ,
423
424
"fcntl.h" ,
425
+ "getopt.h" ,
424
426
"libgen.h" ,
425
427
"limits.h" ,
426
428
"link.h" ,
@@ -769,6 +771,7 @@ fn test_solarish(target: &str) {
769
771
"errno.h" ,
770
772
"execinfo.h" ,
771
773
"fcntl.h" ,
774
+ "getopt.h" ,
772
775
"glob.h" ,
773
776
"grp.h" ,
774
777
"ifaddrs.h" ,
@@ -997,6 +1000,7 @@ fn test_netbsd(target: &str) {
997
1000
"elf.h" ,
998
1001
"errno.h" ,
999
1002
"fcntl.h" ,
1003
+ "getopt.h" ,
1000
1004
"libgen.h" ,
1001
1005
"limits.h" ,
1002
1006
"link.h" ,
@@ -1208,6 +1212,7 @@ fn test_dragonflybsd(target: &str) {
1208
1212
"errno.h" ,
1209
1213
"execinfo.h" ,
1210
1214
"fcntl.h" ,
1215
+ "getopt.h" ,
1211
1216
"glob.h" ,
1212
1217
"grp.h" ,
1213
1218
"ifaddrs.h" ,
@@ -1884,6 +1889,7 @@ fn test_freebsd(target: &str) {
1884
1889
"errno.h" ,
1885
1890
"execinfo.h" ,
1886
1891
"fcntl.h" ,
1892
+ "getopt.h" ,
1887
1893
"glob.h" ,
1888
1894
"grp.h" ,
1889
1895
"iconv.h" ,
@@ -2803,6 +2809,7 @@ fn test_linux(target: &str) {
2803
2809
"dlfcn.h" ,
2804
2810
"elf.h" ,
2805
2811
"fcntl.h" ,
2812
+ "getopt.h" ,
2806
2813
"glob.h" ,
2807
2814
[ gnu] : "gnu/libc-version.h" ,
2808
2815
"grp.h" ,
Original file line number Diff line number Diff line change @@ -559,6 +559,7 @@ getgroups
559
559
gethostname
560
560
getlogin
561
561
getopt
562
+ getopt_long
562
563
getpeername
563
564
getpgid
564
565
getpgrp
Original file line number Diff line number Diff line change @@ -201,6 +201,13 @@ s! {
201
201
pub p_aliases: * mut * mut :: c_char,
202
202
pub p_proto: :: c_int,
203
203
}
204
+
205
+ pub struct option {
206
+ pub name: * const :: c_char,
207
+ pub has_arg: :: c_int,
208
+ pub flag: * mut :: c_int,
209
+ pub val: :: c_int,
210
+ }
204
211
}
205
212
206
213
pub const INT_MIN : c_int = -2147483648 ;
@@ -881,6 +888,13 @@ extern "C" {
881
888
link_name = "getopt$UNIX2003"
882
889
) ]
883
890
pub fn getopt ( argc : :: c_int , argv : * const * mut c_char , optstr : * const c_char ) -> :: c_int ;
891
+ pub fn getopt_long (
892
+ argc : :: c_int ,
893
+ argv : * const * mut c_char ,
894
+ optstring : * const c_char ,
895
+ longopts : * const option ,
896
+ longindex : * mut :: c_int ,
897
+ ) -> :: c_int ;
884
898
pub fn getpgid ( pid : pid_t ) -> pid_t ;
885
899
pub fn getpgrp ( ) -> pid_t ;
886
900
pub fn getpid ( ) -> pid_t ;
You can’t perform that action at this time.
0 commit comments