summaryrefslogtreecommitdiffstats
path: root/util
Commit message (Collapse)AuthorAgeFilesLines
* Implement TFile::Fallocate for Windows.sath2024-06-201-0/+6
| | | | 66f69cf2778ef870c0ddb050d260160ce8be1c3f
* fix typotobo2024-06-181-3/+3
| | | | f172ae24ead4a8c8edae837d34f264a744a4d89c
* [util] Check lifetime of the move-only type passed through the ↵swarmer2024-06-142-0/+34
| | | | | | TMaybe::GetOrElse method 03109df768118daa8c95e373de082712a2362407
* [util] Instantiation of TMaybe with an array type is ill-formedswarmer2024-06-141-0/+2
| | | | 69e5abfadd994602479be713abb69e2d6053734d
* Use ::strnicmp instead of strnicmp (fix build errors in files that use ↵vadim-xd2024-06-092-7/+7
| | | | | | namespace NUri) 3a7cf9869f888e3d09fc6c4c00c38db97f3a62ed
* Add TStringBuf constructor from TStringBuf with other char traitsvadim-xd2024-06-071-0/+6
| | | | e4ebd9ac2108f3fbc5ef852f3f7d733dd1a00fe8
* feat util/system: add a possibility to disable exit handlers, use it in ↵itrofimow2024-06-062-0/+21
| | | | | | rate-limiter nginx module b90ea2b46b910c5bf2e0db4ccacb45ca5c39ecaa
* [util] Better precision of the ProcessUptime on linuxswarmer2024-06-061-3/+9
| | | | | The ProcessUptime function should now usually return a value less than 20 ms if called at the start of the program. 0961a518fdaee4fd243b01c7cf5433dd768897c4
* unaligned_mem.h rename fieldshakob2024-06-051-12/+12
| | | | | rename private fields cfceec78649473a68bdbd3cca8635674e12e42ee
* UTIL: ProcUptime - process uptimeleasid2024-05-285-0/+73
| | | | | Добавляем uptime для процесса 7dc898ce5f81666a4cd5f912f49a3035dc2c599c
* minor fix in util pathskrivohatskiy2024-05-191-4/+4
| | | | | | | | | | | | Мелкий фикс неверных исключений. Как будто у меня локально повторялось как минидамп на колонке (не отловленное исключение) Зависит от реализации libc. Но кажется что исходный вариант все же не верный: [ The value in errno is significant only when the return value of the call indicated an error (i.e., -1 from most system calls; -1 or NULL from most library functions); a function that succeeds is allowed to change errno. The value of errno is never set to zero by any system call or library function.](https://man7.org/linux/man-pages/man3/errno.3.html) 1d2088da57c98f9d9abfd6da865219fcf74db212
* [util] Implement TryGetEnv and UnsetEnv functionsswarmer2024-05-163-5/+89
| | | | | The TryGetEnv function can be used to distinguish the case when a variable is not defined from the case when it has an empty value. 4aab7a2a39f4b9107b0b1d1ef639dc2c41c04f42
* Add mtime/atime/ctime with nanoseconds to TFileStat.sath2024-05-134-43/+94
| | | | 3523ab3f5aade2bdf4c0efd5dd2defbe19f124ff
* [util] do not instantiate the vector::resize_uninitialized method for ↵swarmer2024-05-091-8/+4
| | | | | | non-POD types f65acbd8a0dd649475720d2cf487bc63ecb8b284
* YT-21402: Adjust util's IntrusiveList to support more convenient use in ↵arkady-e1ppa2024-04-281-6/+27
| | | | | | | lockfree algorithms (and farewell SimpleIntrusiveList) Should be done 8a7cafa1f535df785680b70b488a2e4fbb46b1b0
* Construct TStringBufs in TString::Join earliervadim-xd2024-04-241-5/+13
| | | | d1c15e5770c2a6a72226f3c4c76810231e4f9fe3
* Intermediate changesrobot-piglet2024-04-231-3/+3
|
* Enable MarkAsIntentionallyLeaked API for --sanitize=leak buildsbabenko2024-04-202-3/+12
| | | | f660faa016f3549719f718b14125e02327fc02b2
* Add Y_DEBUG_ABORT macroskungasc2024-04-161-0/+1
| | | | | Relates to https://github.com/ydb-platform/ydb/pull/3684 86761f5a71a48625f1e0644c483825e25ba290ed
* [[nodiscard]] for static function TDuration::Parseilnurkh2024-04-141-1/+1
| | | | 4475987f399172bada73db028180b5e773e58a30
* refactor in vectortema-m2024-04-141-3/+3
| | | | | some refactor in vector 2c11be2b50c10b1786950201317ef103cff8c79a
* reduce code bloat in the DecodeOpenMode functionswarmer2024-04-141-39/+51
| | | | | The loop version works as fast as unrolled one. But the binary code size is about 7 times smaller. 9c014c6ba2ab744670f9ac2fe3bf57942e01b0a1
* fixed MakeTempName() for paths > MAX_PATHstar-dm2024-04-033-17/+58
| | | | | | | added tests fixed MakeTempName() for paths > MAX_PATH d3aee81b508fa0de3fea66b71618981594f262e4
* Intermediate changesrobot-piglet2024-04-0239-78/+0
|
* YT-19191: No custom char ptr comparators under the flagnadya732024-04-011-0/+4
| | | | | No custom char ptr comparision under the flag d9391318acda3af65dc490b6592d0555ac6cb170
* WebAssembly in utildtorilov2024-03-2817-28/+58
| | | | b46c1e446c9d0f9393bf688b26db810f60add0f6
* Update libcxxabi to 16.0.6dtorilov2024-03-272-7/+12
| | | | 0a9e5a8cb8cd8cd03641221da29e1186a61cf984
* Intermediate changesrobot-piglet2024-03-225-7/+102
|
* [util] Handle the negative zero value in the NumericHashswarmer2024-03-222-0/+30
| | | | | Two equal numbers must produce the same hash value. 35bb6ef6de3ccbb3b5cacd09950a21063814b499
* movable TStringStreamswarmer2024-03-212-2/+68
| | | | | Do not copy the internal string buffer in move constructors and the move assignment operator. 19e6948ae4706272838bc76831b9ff2051a20590
* update CPP_STYLE_TEST_14 to CPP_STYLE_TEST_16: ^utilionagamed2024-03-123-7/+8
| | | | f25fb42bc8bd1b7423721fa3a0f85ef2bb8f8d97
* Fix TDirIteratormrlolthe1st2024-03-061-5/+2
| | | | | В силу того, что аллокации могут приводить к syscalls, которые портят errno, а lstat не чистит errno после успешного выполнения, между errno=0/ClearLastSystemError() и LastSystemError() что-то может попортить errno, следует учитывать errno только в случае неуспешного завершения lstat. ee85894d4fb742827b7ea77e06b9b2c990537d86
* Update libcxx to llvmorg-17.0.6hiddenpath2024-02-211-2/+2
| | | | | Update libcxx to llvmorg-17.0.6 c871ef572c71b4fef22d4a9e65bcebc57e625aea
* Fix case when 'arc export' not set executable bitilikepugs2024-02-212-2/+28
| | | | | | | В этом ревью сделано две вещи: 1. В util/system/fs добавилась функция SetExecutable 2. В TDataFetcher добавилась функция FetchEntry, аналог FetchBlob/FetchTree но с пробросом метаинформации 06888e7a37526ef46789eafd29bd2728661d8be7
* Use global ns for TFlagspetrk2024-02-201-4/+4
| | | | e2d4d0cc183a95092f8a3924a5992ba09b6dc670
* YT-21001: FiberContext::BeforeSwitch is now properly inlinedarkady-e1ppa2024-02-194-95/+70
| | | | | Improve annotations 5bd824bae00ce17bf4db9b1181455252e94f0b9f
* YDB Import 566robot-ydb-importer2024-02-141-0/+126
| | | | 96265cd0cc64e1b9bb31fe97b915ed2a09caf1cb
* Do not allow multiplication of TString and pointerkshalnev2024-02-141-0/+13
|
* Intermediate changesrobot-piglet2024-02-141-10/+10
|
* Annotate CombineHashes with nodiscardbabenko2024-02-101-1/+1
|
* TThread::SetName sets thread name on androidsolovyev2024-02-051-2/+2
|
* TMaybe Monadic operationsnedaiborschd2024-02-022-0/+229
| | | | | Add monadic operations to TMaybe. Added methods: AndThen, OrElse, Transform.
* check lifetime bounds of values returned from String's c_str(), data() methodsswarmer2024-02-011-16/+16
|
* Fix sprintf deprecation warnings on newer macOS SDKsomov2024-01-311-2/+2
|
* Add missed #include <type_traits>mikhnenko2024-01-301-0/+4
|
* Support wide strings (and string_views) in Out<> / IOutputStreamthegeorg2024-01-273-20/+104
|
* [util] TSystemError: print raw error code along with the messagetldr2024-01-261-3/+5
| | | | | | На Windows сложно найти, какой ошибке соответствует конкретное сообщение, потому что сообщения даже разные в разных локалях. Полезно иметь сырой код ошибки, чтобы проще было понять, что была за ошибка
* Fix error in TArrayRef constructor for a container: Elements with a ↵akhropov2024-01-221-0/+3
| | | | different size should not be accepted even if they are convertible to TArrayRef value type.
* feat contrib: aiogram 3armenqa2024-01-1921-1862/+20
| | | | Relates: https://st.yandex-team.ru/, https://st.yandex-team.ru/
* Library import 8 (#1074)AlexSm2024-01-183-74/+0
| | | | | * Library import 8 * Add contrib/libs/cxxsupp/libcxx/include/__verbose_abort