@@ -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,39 @@ 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(
1070
+ target_os = "macos" ,
1071
+ target_os = "ios" ,
1072
+ target_os = "tvos"
1073
+ ) ) ]
1047
1074
EPWROFF => "Device power is off" ,
1048
1075
1049
- #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
1076
+ #[ cfg( any( target_os = "macos" , target_os = "ios" , target_os = "tvos" ) ) ]
1050
1077
EDEVERR => "Device error, e.g. paper out" ,
1051
1078
1052
- #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
1079
+ #[ cfg( any( target_os = "macos" , target_os = "ios" , target_os = "tvos" ) ) ]
1053
1080
EBADEXEC => "Bad executable" ,
1054
1081
1055
- #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
1082
+ #[ cfg( any( target_os = "macos" , target_os = "ios" , target_os = "tvos" ) ) ]
1056
1083
EBADARCH => "Bad CPU type in executable" ,
1057
1084
1058
- #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
1085
+ #[ cfg( any( target_os = "macos" , target_os = "ios" , target_os = "tvos" ) ) ]
1059
1086
ESHLIBVERS => "Shared library version mismatch" ,
1060
1087
1061
- #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
1088
+ #[ cfg( any( target_os = "macos" , target_os = "ios" , target_os = "tvos" ) ) ]
1062
1089
EBADMACHO => "Malformed Macho file" ,
1063
1090
1064
1091
#[ cfg( any(
1065
1092
target_os = "macos" ,
1066
1093
target_os = "ios" ,
1094
+ target_os = "tvos" ,
1067
1095
target_os = "netbsd" ,
1068
1096
target_os = "haiku"
1069
1097
) ) ]
@@ -1073,6 +1101,7 @@ fn desc(errno: Errno) -> &'static str {
1073
1101
target_os = "macos" ,
1074
1102
target_os = "ios" ,
1075
1103
target_os = "aix" ,
1104
+ target_os = "tvos" ,
1076
1105
target_os = "netbsd" ,
1077
1106
target_os = "redox"
1078
1107
) ) ]
@@ -1081,6 +1110,7 @@ fn desc(errno: Errno) -> &'static str {
1081
1110
#[ cfg( any(
1082
1111
target_os = "macos" ,
1083
1112
target_os = "ios" ,
1113
+ target_os = "tvos" ,
1084
1114
target_os = "netbsd" ,
1085
1115
target_os = "haiku"
1086
1116
) ) ]
@@ -1090,6 +1120,7 @@ fn desc(errno: Errno) -> &'static str {
1090
1120
target_os = "macos" ,
1091
1121
target_os = "ios" ,
1092
1122
target_os = "aix" ,
1123
+ target_os = "tvos" ,
1093
1124
target_os = "netbsd" ,
1094
1125
target_os = "redox"
1095
1126
) ) ]
@@ -1099,6 +1130,7 @@ fn desc(errno: Errno) -> &'static str {
1099
1130
target_os = "macos" ,
1100
1131
target_os = "ios" ,
1101
1132
target_os = "aix" ,
1133
+ target_os = "tvos" ,
1102
1134
target_os = "netbsd" ,
1103
1135
target_os = "redox"
1104
1136
) ) ]
@@ -1108,6 +1140,7 @@ fn desc(errno: Errno) -> &'static str {
1108
1140
target_os = "macos" ,
1109
1141
target_os = "ios" ,
1110
1142
target_os = "aix" ,
1143
+ target_os = "tvos" ,
1111
1144
target_os = "netbsd" ,
1112
1145
target_os = "redox"
1113
1146
) ) ]
@@ -1117,15 +1150,16 @@ fn desc(errno: Errno) -> &'static str {
1117
1150
target_os = "macos" ,
1118
1151
target_os = "ios" ,
1119
1152
target_os = "aix" ,
1153
+ target_os = "tvos" ,
1120
1154
target_os = "illumos" ,
1121
1155
target_os = "solaris"
1122
1156
) ) ]
1123
1157
EOPNOTSUPP => "Operation not supported on socket" ,
1124
1158
1125
- #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
1159
+ #[ cfg( any( target_os = "macos" , target_os = "ios" , target_os = "tvos" ) ) ]
1126
1160
ENOPOLICY => "No such policy registered" ,
1127
1161
1128
- #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
1162
+ #[ cfg( any( target_os = "macos" , target_os = "ios" , target_os = "tvos" ) ) ]
1129
1163
EQFULL => "Interface output queue is full" ,
1130
1164
1131
1165
#[ cfg( target_os = "openbsd" ) ]
@@ -1438,7 +1472,7 @@ mod consts {
1438
1472
}
1439
1473
}
1440
1474
1441
- #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
1475
+ #[ cfg( any( target_os = "macos" , target_os = "tvos" , target_os = " ios") ) ]
1442
1476
mod consts {
1443
1477
#[ derive( Clone , Copy , Debug , Eq , PartialEq ) ]
1444
1478
#[ repr( i32 ) ]
0 commit comments