| 1033 | struct syscall_initializer |
| 1034 | { |
| 1035 | syscall_initializer() |
| 1036 | { |
| 1037 | struct ::utsname system_info; |
| 1038 | if (BOOST_UNLIKELY(::uname(&system_info) < 0)) |
| 1039 | return; |
| 1040 | |
| 1041 | unsigned int major_ver = 0u, minor_ver = 0u, patch_ver = 0u; |
| 1042 | int count = std::sscanf(system_info.release, "%u.%u.%u", &major_ver, &minor_ver, &patch_ver); |
| 1043 | if (BOOST_UNLIKELY(count < 3)) |
| 1044 | return; |
| 1045 | |
| 1046 | init_statx_impl(major_ver, minor_ver, patch_ver); |
| 1047 | init_copy_file_data_impl(major_ver, minor_ver, patch_ver); |
| 1048 | init_fill_random_impl(major_ver, minor_ver, patch_ver); |
| 1049 | } |
| 1050 | }; |
| 1051 | |
| 1052 | BOOST_FILESYSTEM_INIT_PRIORITY(BOOST_FILESYSTEM_FUNC_PTR_INIT_PRIORITY) BOOST_ATTRIBUTE_UNUSED BOOST_FILESYSTEM_ATTRIBUTE_RETAIN |
nothing calls this directly
no test coverage detected