@@ -9,6 +9,7 @@ pub use self::consts::*;
9
9
cfg_if ! {
10
10
if #[ cfg( any( target_os = "freebsd" ,
11
11
target_os = "ios" ,
12
+ target_os = "tvos" ,
12
13
target_os = "macos" ) ) ] {
13
14
unsafe fn errno_location( ) -> * mut c_int {
14
15
libc:: __error( )
@@ -800,6 +801,7 @@ fn desc(errno: Errno) -> &'static str {
800
801
target_os = "freebsd" ,
801
802
target_os = "dragonfly" ,
802
803
target_os = "ios" ,
804
+ target_os = "tvos" ,
803
805
target_os = "openbsd" ,
804
806
target_os = "netbsd"
805
807
) ) ]
@@ -810,6 +812,7 @@ fn desc(errno: Errno) -> &'static str {
810
812
target_os = "freebsd" ,
811
813
target_os = "dragonfly" ,
812
814
target_os = "ios" ,
815
+ target_os = "tvos" ,
813
816
target_os = "openbsd" ,
814
817
target_os = "netbsd" ,
815
818
target_os = "redox" ,
@@ -823,6 +826,7 @@ fn desc(errno: Errno) -> &'static str {
823
826
target_os = "freebsd" ,
824
827
target_os = "dragonfly" ,
825
828
target_os = "ios" ,
829
+ target_os = "tvos" ,
826
830
target_os = "netbsd" ,
827
831
target_os = "redox" ,
828
832
target_os = "haiku"
@@ -834,6 +838,7 @@ fn desc(errno: Errno) -> &'static str {
834
838
target_os = "freebsd" ,
835
839
target_os = "dragonfly" ,
836
840
target_os = "ios" ,
841
+ target_os = "tvos" ,
837
842
target_os = "openbsd" ,
838
843
target_os = "netbsd" ,
839
844
target_os = "haiku"
@@ -845,6 +850,7 @@ fn desc(errno: Errno) -> &'static str {
845
850
target_os = "freebsd" ,
846
851
target_os = "dragonfly" ,
847
852
target_os = "ios" ,
853
+ target_os = "tvos" ,
848
854
target_os = "openbsd" ,
849
855
target_os = "netbsd" ,
850
856
target_os = "redox" ,
@@ -857,6 +863,7 @@ fn desc(errno: Errno) -> &'static str {
857
863
target_os = "freebsd" ,
858
864
target_os = "dragonfly" ,
859
865
target_os = "ios" ,
866
+ target_os = "tvos" ,
860
867
target_os = "openbsd" ,
861
868
target_os = "netbsd" ,
862
869
target_os = "redox" ,
@@ -869,6 +876,7 @@ fn desc(errno: Errno) -> &'static str {
869
876
target_os = "freebsd" ,
870
877
target_os = "dragonfly" ,
871
878
target_os = "ios" ,
879
+ target_os = "tvos" ,
872
880
target_os = "openbsd"
873
881
) ) ]
874
882
ENOTRECOVERABLE => "State not recoverable" ,
@@ -878,6 +886,7 @@ fn desc(errno: Errno) -> &'static str {
878
886
target_os = "freebsd" ,
879
887
target_os = "dragonfly" ,
880
888
target_os = "ios" ,
889
+ target_os = "tvos" ,
881
890
target_os = "openbsd"
882
891
) ) ]
883
892
EOWNERDEAD => "Previous owner died" ,
@@ -887,6 +896,7 @@ fn desc(errno: Errno) -> &'static str {
887
896
target_os = "freebsd" ,
888
897
target_os = "dragonfly" ,
889
898
target_os = "ios" ,
899
+ target_os = "tvos" ,
890
900
target_os = "openbsd" ,
891
901
target_os = "netbsd" ,
892
902
target_os = "aix" ,
@@ -901,6 +911,7 @@ fn desc(errno: Errno) -> &'static str {
901
911
target_os = "freebsd" ,
902
912
target_os = "dragonfly" ,
903
913
target_os = "ios" ,
914
+ target_os = "tvos" ,
904
915
target_os = "aix" ,
905
916
target_os = "openbsd" ,
906
917
target_os = "netbsd"
@@ -912,6 +923,7 @@ fn desc(errno: Errno) -> &'static str {
912
923
target_os = "freebsd" ,
913
924
target_os = "dragonfly" ,
914
925
target_os = "ios" ,
926
+ target_os = "tvos" ,
915
927
target_os = "aix" ,
916
928
target_os = "openbsd" ,
917
929
target_os = "netbsd" ,
@@ -924,6 +936,7 @@ fn desc(errno: Errno) -> &'static str {
924
936
target_os = "freebsd" ,
925
937
target_os = "dragonfly" ,
926
938
target_os = "ios" ,
939
+ target_os = "tvos" ,
927
940
target_os = "openbsd" ,
928
941
target_os = "netbsd" ,
929
942
target_os = "redox" ,
@@ -939,6 +952,7 @@ fn desc(errno: Errno) -> &'static str {
939
952
target_os = "freebsd" ,
940
953
target_os = "dragonfly" ,
941
954
target_os = "ios" ,
955
+ target_os = "tvos" ,
942
956
target_os = "openbsd" ,
943
957
target_os = "netbsd" ,
944
958
target_os = "redox" ,
@@ -954,6 +968,7 @@ fn desc(errno: Errno) -> &'static str {
954
968
target_os = "freebsd" ,
955
969
target_os = "dragonfly" ,
956
970
target_os = "ios" ,
971
+ target_os = "tvos" ,
957
972
target_os = "aix" ,
958
973
target_os = "openbsd" ,
959
974
target_os = "netbsd" ,
@@ -966,6 +981,7 @@ fn desc(errno: Errno) -> &'static str {
966
981
target_os = "freebsd" ,
967
982
target_os = "dragonfly" ,
968
983
target_os = "ios" ,
984
+ target_os = "tvos" ,
969
985
target_os = "openbsd" ,
970
986
target_os = "netbsd"
971
987
) ) ]
@@ -976,6 +992,7 @@ fn desc(errno: Errno) -> &'static str {
976
992
target_os = "freebsd" ,
977
993
target_os = "dragonfly" ,
978
994
target_os = "ios" ,
995
+ target_os = "tvos" ,
979
996
target_os = "openbsd" ,
980
997
target_os = "netbsd"
981
998
) ) ]
@@ -986,6 +1003,7 @@ fn desc(errno: Errno) -> &'static str {
986
1003
target_os = "freebsd" ,
987
1004
target_os = "dragonfly" ,
988
1005
target_os = "ios" ,
1006
+ target_os = "tvos" ,
989
1007
target_os = "openbsd" ,
990
1008
target_os = "netbsd"
991
1009
) ) ]
@@ -996,6 +1014,7 @@ fn desc(errno: Errno) -> &'static str {
996
1014
target_os = "freebsd" ,
997
1015
target_os = "dragonfly" ,
998
1016
target_os = "ios" ,
1017
+ target_os = "tvos" ,
999
1018
target_os = "openbsd" ,
1000
1019
target_os = "netbsd"
1001
1020
) ) ]
@@ -1006,6 +1025,7 @@ fn desc(errno: Errno) -> &'static str {
1006
1025
target_os = "freebsd" ,
1007
1026
target_os = "dragonfly" ,
1008
1027
target_os = "ios" ,
1028
+ target_os = "tvos" ,
1009
1029
target_os = "openbsd" ,
1010
1030
target_os = "netbsd"
1011
1031
) ) ]
@@ -1016,6 +1036,7 @@ fn desc(errno: Errno) -> &'static str {
1016
1036
target_os = "freebsd" ,
1017
1037
target_os = "dragonfly" ,
1018
1038
target_os = "ios" ,
1039
+ target_os = "tvos" ,
1019
1040
target_os = "openbsd" ,
1020
1041
target_os = "netbsd"
1021
1042
) ) ]
@@ -1026,6 +1047,7 @@ fn desc(errno: Errno) -> &'static str {
1026
1047
target_os = "freebsd" ,
1027
1048
target_os = "dragonfly" ,
1028
1049
target_os = "ios" ,
1050
+ target_os = "tvos" ,
1029
1051
target_os = "openbsd" ,
1030
1052
target_os = "netbsd"
1031
1053
) ) ]
@@ -1037,33 +1059,35 @@ fn desc(errno: Errno) -> &'static str {
1037
1059
target_os = "dragonfly" ,
1038
1060
target_os = "ios" ,
1039
1061
target_os = "aix" ,
1062
+ target_os = "tvos" ,
1040
1063
target_os = "openbsd" ,
1041
1064
target_os = "netbsd" ,
1042
1065
target_os = "redox"
1043
1066
) ) ]
1044
1067
ECANCELED => "Operation canceled" ,
1045
1068
1046
- #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
1069
+ #[ cfg( any( target_os = "macos" , target_os = "ios" , target_os = "tvos" ) ) ]
1047
1070
EPWROFF => "Device power is off" ,
1048
1071
1049
- #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
1072
+ #[ cfg( any( target_os = "macos" , target_os = "ios" , target_os = "tvos" ) ) ]
1050
1073
EDEVERR => "Device error, e.g. paper out" ,
1051
1074
1052
- #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
1075
+ #[ cfg( any( target_os = "macos" , target_os = "ios" , target_os = "tvos" ) ) ]
1053
1076
EBADEXEC => "Bad executable" ,
1054
1077
1055
- #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
1078
+ #[ cfg( any( target_os = "macos" , target_os = "ios" , target_os = "tvos" ) ) ]
1056
1079
EBADARCH => "Bad CPU type in executable" ,
1057
1080
1058
- #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
1081
+ #[ cfg( any( target_os = "macos" , target_os = "ios" , target_os = "tvos" ) ) ]
1059
1082
ESHLIBVERS => "Shared library version mismatch" ,
1060
1083
1061
- #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
1084
+ #[ cfg( any( target_os = "macos" , target_os = "ios" , target_os = "tvos" ) ) ]
1062
1085
EBADMACHO => "Malformed Macho file" ,
1063
1086
1064
1087
#[ cfg( any(
1065
1088
target_os = "macos" ,
1066
1089
target_os = "ios" ,
1090
+ target_os = "tvos" ,
1067
1091
target_os = "netbsd" ,
1068
1092
target_os = "haiku"
1069
1093
) ) ]
@@ -1073,6 +1097,7 @@ fn desc(errno: Errno) -> &'static str {
1073
1097
target_os = "macos" ,
1074
1098
target_os = "ios" ,
1075
1099
target_os = "aix" ,
1100
+ target_os = "tvos" ,
1076
1101
target_os = "netbsd" ,
1077
1102
target_os = "redox"
1078
1103
) ) ]
@@ -1081,6 +1106,7 @@ fn desc(errno: Errno) -> &'static str {
1081
1106
#[ cfg( any(
1082
1107
target_os = "macos" ,
1083
1108
target_os = "ios" ,
1109
+ target_os = "tvos" ,
1084
1110
target_os = "netbsd" ,
1085
1111
target_os = "haiku"
1086
1112
) ) ]
@@ -1090,6 +1116,7 @@ fn desc(errno: Errno) -> &'static str {
1090
1116
target_os = "macos" ,
1091
1117
target_os = "ios" ,
1092
1118
target_os = "aix" ,
1119
+ target_os = "tvos" ,
1093
1120
target_os = "netbsd" ,
1094
1121
target_os = "redox"
1095
1122
) ) ]
@@ -1099,6 +1126,7 @@ fn desc(errno: Errno) -> &'static str {
1099
1126
target_os = "macos" ,
1100
1127
target_os = "ios" ,
1101
1128
target_os = "aix" ,
1129
+ target_os = "tvos" ,
1102
1130
target_os = "netbsd" ,
1103
1131
target_os = "redox"
1104
1132
) ) ]
@@ -1108,6 +1136,7 @@ fn desc(errno: Errno) -> &'static str {
1108
1136
target_os = "macos" ,
1109
1137
target_os = "ios" ,
1110
1138
target_os = "aix" ,
1139
+ target_os = "tvos" ,
1111
1140
target_os = "netbsd" ,
1112
1141
target_os = "redox"
1113
1142
) ) ]
@@ -1117,15 +1146,16 @@ fn desc(errno: Errno) -> &'static str {
1117
1146
target_os = "macos" ,
1118
1147
target_os = "ios" ,
1119
1148
target_os = "aix" ,
1149
+ target_os = "tvos" ,
1120
1150
target_os = "illumos" ,
1121
1151
target_os = "solaris"
1122
1152
) ) ]
1123
1153
EOPNOTSUPP => "Operation not supported on socket" ,
1124
1154
1125
- #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
1155
+ #[ cfg( any( target_os = "macos" , target_os = "ios" , target_os = "tvos" ) ) ]
1126
1156
ENOPOLICY => "No such policy registered" ,
1127
1157
1128
- #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
1158
+ #[ cfg( any( target_os = "macos" , target_os = "ios" , target_os = "tvos" ) ) ]
1129
1159
EQFULL => "Interface output queue is full" ,
1130
1160
1131
1161
#[ cfg( target_os = "openbsd" ) ]
@@ -1438,7 +1468,7 @@ mod consts {
1438
1468
}
1439
1469
}
1440
1470
1441
- #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
1471
+ #[ cfg( any( target_os = "macos" , target_os = "tvos" , target_os = " ios") ) ]
1442
1472
mod consts {
1443
1473
#[ derive( Clone , Copy , Debug , Eq , PartialEq ) ]
1444
1474
#[ repr( i32 ) ]
0 commit comments