@@ -1084,25 +1084,26 @@ libc_support_library(
1084
1084
name = "__support_osutil_vdso" ,
1085
1085
hdrs = [
1086
1086
"src/__support/OSUtil/linux/vdso.h" ,
1087
- "src/__support/OSUtil/linux/vdso_sym.h"
1087
+ "src/__support/OSUtil/linux/vdso_sym.h" ,
1088
1088
],
1089
+ target_compatible_with = select ({
1090
+ "@platforms//os:linux" : [],
1091
+ "//conditions:default" : ["@platforms//:incompatible" ],
1092
+ }),
1089
1093
textual_hdrs = [
1090
1094
"src/__support/OSUtil/linux/riscv/vdso.h" ,
1091
1095
"src/__support/OSUtil/linux/arm/vdso.h" ,
1092
1096
"src/__support/OSUtil/linux/x86_64/vdso.h" ,
1093
1097
"src/__support/OSUtil/linux/aarch64/vdso.h" ,
1094
1098
],
1095
- target_compatible_with = select ({
1096
- "@platforms//os:linux" : [],
1097
- "//conditions:default" : ["@platforms//:incompatible" ],
1098
- }),
1099
1099
deps = [
1100
1100
":__support_cpp_array" ,
1101
1101
":__support_cpp_optional" ,
1102
1102
":__support_cpp_string_view" ,
1103
1103
":__support_threads_callonce" ,
1104
1104
":types_clock_t" ,
1105
- ":types_struct_timeval"
1105
+ ":types_clockid_t" ,
1106
+ ":types_struct_timeval" ,
1106
1107
],
1107
1108
)
1108
1109
@@ -1190,7 +1191,7 @@ libc_support_library(
1190
1191
":__support_cpp_optional" ,
1191
1192
":__support_osutil_syscall" ,
1192
1193
":__support_threads_linux_futex_word_type" ,
1193
- ":__support_time_linux " ,
1194
+ ":__support_time_linux_abs_timeout " ,
1194
1195
":types_struct_timespec" ,
1195
1196
],
1196
1197
)
@@ -1218,10 +1219,12 @@ libc_support_library(
1218
1219
"//conditions:default" : ["@platforms//:incompatible" ],
1219
1220
}),
1220
1221
deps = [
1222
+ ":__support_cpp_expected" ,
1221
1223
":__support_cpp_optional" ,
1222
1224
":__support_threads_linux_futex_utils" ,
1223
1225
":__support_threads_sleep" ,
1224
- ":__support_time_linux" ,
1226
+ ":__support_time_linux_abs_timeout" ,
1227
+ ":__support_time_linux_monotonicity" ,
1225
1228
":types_pid_t" ,
1226
1229
],
1227
1230
)
@@ -1248,7 +1251,6 @@ libc_support_library(
1248
1251
],
1249
1252
)
1250
1253
1251
-
1252
1254
libc_support_library (
1253
1255
name = "__support_threads_callonce" ,
1254
1256
hdrs = [
@@ -1263,7 +1265,8 @@ libc_support_library(
1263
1265
],
1264
1266
deps = [
1265
1267
":__support_macros_config" ,
1266
- ":__support_macros_optimization"
1268
+ ":__support_macros_optimization" ,
1269
+ ":__support_threads_linux_futex_utils" ,
1267
1270
],
1268
1271
)
1269
1272
@@ -1278,25 +1281,62 @@ libc_support_library(
1278
1281
)
1279
1282
1280
1283
libc_support_library (
1281
- name = "__support_time_linux " ,
1282
- hdrs = glob ( ["src/__support/time/linux/**/* .h" ]) ,
1284
+ name = "__support_time_linux_abs_timeout " ,
1285
+ hdrs = ["src/__support/time/linux/abs_timeout .h" ],
1283
1286
target_compatible_with = select ({
1284
1287
"@platforms//os:linux" : [],
1285
1288
"//conditions:default" : ["@platforms//:incompatible" ],
1286
1289
}),
1287
1290
deps = [
1288
- ":__support_common" ,
1289
1291
":__support_cpp_expected" ,
1290
- ":__support_error_or" ,
1291
- ":__support_libc_assert" ,
1292
- ":__support_osutil_vdso" ,
1293
1292
":__support_time" ,
1294
1293
":hdr_time_macros" ,
1295
- ":types_clockid_t" ,
1296
1294
":types_struct_timespec" ,
1297
1295
],
1298
1296
)
1299
1297
1298
+ libc_support_library (
1299
+ name = "__support_time_linux_clock_conversion" ,
1300
+ hdrs = ["src/__support/time/linux/clock_conversion.h" ],
1301
+ target_compatible_with = select ({
1302
+ "@platforms//os:linux" : [],
1303
+ "//conditions:default" : ["@platforms//:incompatible" ],
1304
+ }),
1305
+ deps = [
1306
+ ":__support_time" ,
1307
+ ":__support_time_linux_clock_gettime" ,
1308
+ ],
1309
+ )
1310
+
1311
+ libc_support_library (
1312
+ name = "__support_time_linux_clock_gettime" ,
1313
+ hdrs = ["src/__support/time/linux/clock_gettime.h" ],
1314
+ target_compatible_with = select ({
1315
+ "@platforms//os:linux" : [],
1316
+ "//conditions:default" : ["@platforms//:incompatible" ],
1317
+ }),
1318
+ deps = [
1319
+ ":__support_common" ,
1320
+ ":__support_error_or" ,
1321
+ ":__support_osutil_vdso" ,
1322
+ ],
1323
+ )
1324
+
1325
+ libc_support_library (
1326
+ name = "__support_time_linux_monotonicity" ,
1327
+ hdrs = ["src/__support/time/linux/monotonicity.h" ],
1328
+ target_compatible_with = select ({
1329
+ "@platforms//os:linux" : [],
1330
+ "//conditions:default" : ["@platforms//:incompatible" ],
1331
+ }),
1332
+ deps = [
1333
+ ":__support_libc_assert" ,
1334
+ ":__support_time_linux_abs_timeout" ,
1335
+ ":__support_time_linux_clock_conversion" ,
1336
+ ":hdr_time_macros" ,
1337
+ ],
1338
+ )
1339
+
1300
1340
############################### errno targets ################################
1301
1341
1302
1342
libc_function (
0 commit comments