Commit Graph

472 Commits

Author SHA1 Message Date
levlam
ef5e709ac8 Fix clang 3.4 and OpenSSL 0.9.8 CE.
GitOrigin-RevId: 9157bfe975bdb376fbd573bd23107c36b1444f34
2019-09-09 02:04:30 +03:00
levlam
ca550f5202 Fix MSVC 15.3 CE.
GitOrigin-RevId: d049c35a3717374d6830555330b10ff6bac3bf1c
2019-09-08 23:09:51 +03:00
levlam
f8f7e32ba5 Fix MSVC 15.3 CE.
GitOrigin-RevId: 4f6a5caba284e9742b804530684795650435f493
2019-09-08 22:49:46 +03:00
levlam
abb140a714 Minor improvements.
GitOrigin-RevId: a50ba2cc0b47b395d7d7787ad59868d23bf22634
2019-09-08 03:49:16 +03:00
levlam
6cbc02ed1b Minor improvements.
GitOrigin-RevId: 157e77d244b24f3c5af56539d434096f7440e2e8
2019-09-05 18:32:45 +03:00
levlam
2f52861c20 Add hex_encode.
GitOrigin-RevId: f5b42ce196f463d9d5cdb4536ee7b829f198583b
2019-09-02 16:49:18 +03:00
levlam
4d72f8c14b Minor fixes.
GitOrigin-RevId: cc03c7e7a507fab2308495ea23f8ef9630a8142f
2019-08-30 04:56:01 +03:00
Arseny Smirnov
2b382567be NativeFd: fix CHECKs
GitOrigin-RevId: bbbbad169513c4503eba1c7a98349c98b9e6ed1a
2019-08-28 16:59:50 +03:00
levlam
22f4507033 ThreadPthread fixes.
GitOrigin-RevId: 5c56a443f95beda913c3b1b46eacbfc068271c0e
2019-08-26 17:44:30 +03:00
Arseny Smirnov
80d96550ba ThreadPthread: better hardware_concurrency implementation
GitOrigin-RevId: 4cccfcbf5f6ad5e1293993ff111b8021bb5c70a1
2019-08-26 15:35:08 +03:00
levlam
197acde4d4 Fix first letter case in error messages.
GitOrigin-RevId: 004d1535d3fb04e51a088ad43f2386dea05b7c9c
2019-08-26 04:53:22 +03:00
levlam
3e15c89f88 Fix warning,
GitOrigin-RevId: 7226d3025e801d4bf440390c8ecdb87eb485d993
2019-08-23 18:56:01 +03:00
levlam
72ce03b84b Supoort BigNum::{from,to}_le_binary for OpenSSL < 1.1.0.
GitOrigin-RevId: c104af3f22c814df6946a9218c83cae015823832
2019-08-22 19:22:31 +03:00
levlam
84695437d3 Various fixes.
GitOrigin-RevId: 94d0df55495a08b5599c90f56dbe08ac3a3d65e5
2019-08-14 03:13:34 +03:00
levlam
bb24ec0629 Fix tdutils after merge.
GitOrigin-RevId: 3eceb2e574a737a78dc5414e535e416c86d23f7a
2019-08-13 23:52:54 +03:00
levlam
c99486e667 Simplify pretty-print in JsonBuilder.
GitOrigin-RevId: bf1606d732c665555fa744ade9cd498af6a5ccf7
2019-08-13 18:33:32 +03:00
Arseny Smirnov
5a032743e6 Fix errors from tdutils import
GitOrigin-RevId: 3709df12a3050cf05e2bb482b49490a4e874f075
2019-08-12 16:53:17 +03:00
Arseny Smirnov
f63ce74fef tdutils: import changes from other project
GitOrigin-RevId: 0cfbe2418933cffdce4f0d1b8461c247a814d868
2019-08-12 14:45:57 +03:00
levlam
e7767cf106 Fix formatting.
GitOrigin-RevId: e78b1517297af214b7738350411d3e1e520a2066
2019-08-06 20:11:31 +03:00
levlam
ad167a48ba Pass Slice to parse_url.
GitOrigin-RevId: e6cd357042b827ca56a11bb377c8b07ccd120230
2019-08-05 12:56:28 +03:00
levlam
84b33cd6a8 Add ConstParser.
GitOrigin-RevId: 58ef5b7e6d2568729228c11a3a495794f98566ad
2019-08-05 12:42:42 +03:00
levlam
1a100e1b0f Add NetBSD support.
GitOrigin-RevId: 42703ce955a4323757de56d0c012a54246227f70
2019-08-02 19:06:53 +03:00
levlam
9c52330720 Fix warning.
GitOrigin-RevId: ecbdb3656e990cf9d8eaf7dafbbd209b5e7b1484
2019-08-02 14:29:00 +03:00
levlam
28d3f2d860 Add OpenBSD support.
GitOrigin-RevId: 80d37bf8b6e55f68f3839bf2093994015176eecb
2019-08-02 03:25:28 +03:00
levlam
22f17de7b4 Fix LibreSSL compatibility.
GitOrigin-RevId: 7f77b6772e8fed459bf30522c45984c10175ddc4
2019-08-02 01:04:38 +03:00
Arseny Smirnov
420a0e43af NativeFd: remove on_release_fd method
GitOrigin-RevId: 16c5d50b2a796767865b4ee32b8c2492655bd529
2019-08-01 19:43:36 +03:00
levlam
24f1a2214a Fix warnings.
GitOrigin-RevId: dbfa557bcf9dc3cd63dd5cbbbed9d23b48a5b627
2019-08-01 19:09:10 +03:00
Arseny Smirnov
b0ad2ad190 Fix TD_FD_DEBUG
GitOrigin-RevId: fd4ace2ccc618d1e43aff9226aa1d2777aa6874d
2019-08-01 07:06:43 +03:00
levlam
457f3424aa Fix TD_FD_DEBUG mode.
GitOrigin-RevId: ba9eb0f51308f865802947eeaef46e7adaa2608f
2019-08-01 05:11:55 +03:00
levlam
a82e80be0a Fix CE.
GitOrigin-RevId: 686b83e2202c35f811bd4fd56d80b3e6970c4f2c
2019-08-01 04:55:56 +03:00
levlam
108dc0d4f8 Remove END_PARSE_FLAGS_GENERIC.
GitOrigin-RevId: c9a47a56158829aca0572bab1497e3aebcc7216d
2019-08-01 03:40:28 +03:00
levlam
dacd81a8fa NativeFd fixes.
GitOrigin-RevId: b792887066dc5f004f3d4f61224840be4cd01eeb
2019-08-01 02:48:34 +03:00
Arseny Smirnov
29b807d660 TRY_END_PARSE_FLAGS_GENERIC
GitOrigin-RevId: c68a348c7466daa7ab3b6b93217585a18458885d
2019-07-31 13:45:32 +03:00
Arseny Smirnov
bc1e26779f Epoll: use NativeFd
GitOrigin-RevId: a4ff097abcf03cc7ac3a918969762c1539a19644
2019-07-31 13:45:15 +03:00
Arseny Smirnov
115fba770f TD_FD_DEBUG: cmake option to debug EINVAL errors
GitOrigin-RevId: d0bd1be3a16b94a71c45ec4cca5f42e1364a3200
2019-07-31 12:18:48 +03:00
levlam
e4a0d5937a Use correct case for Windows headers just in case.
GitOrigin-RevId: 8feb29c14e61ed6988e1ec56c35df40d8b8b09e7
2019-07-28 17:04:59 +03:00
levlam
126be85b0f Use Slice == instead of std::memcmp if possible.
GitOrigin-RevId: fc40339f1fa51ad2995f875b5a855bfebfb87b06
2019-07-27 01:42:18 +03:00
levlam
f432abcce4 Use copy_from instead of memcoy if possible.
GitOrigin-RevId: 63981da8864d16ce46bca4b9580e7d9613c837c5
2019-07-27 01:27:22 +03:00
levlam
78dd033988 Fix call to CreateFile2.
GitOrigin-RevId: 71fad1b8484402e997b07641552205894d0e1c3e
2019-07-24 15:30:50 +03:00
levlam
2f39a42441 Add TRY_RESULT_ASSIGN.
GitOrigin-RevId: ef2a42ead0014285eb29355f132ce093af337770
2019-07-24 05:10:32 +03:00
levlam
38e4310b71 Remove standalone Sha256State functions.
GitOrigin-RevId: 5db80ea1902a6fe8a635081a8b050a19528f9f90
2019-07-23 03:50:03 +03:00
levlam
ac6a83da50 Make Sha256State safe.
GitOrigin-RevId: 9b81cc1915b8ca1bc85219b863a6e8dcab814b37
2019-07-23 03:26:26 +03:00
levlam
98b8929932 Fix includes.
GitOrigin-RevId: 7b62de39f2d62ac8c14c24fb83041c717ba49873
2019-07-23 01:50:12 +03:00
levlam
5de928006b Fix GCC CE and warnings.
GitOrigin-RevId: 21c7aa0f95f6534c8d8f1515fc93c67b55bb7998
2019-07-22 07:05:50 +03:00
levlam
20503e04d2 Various fixes.
GitOrigin-RevId: da4869e5054952663ad5993f5770f2984a473818
2019-07-22 07:01:51 +03:00
levlam
feb2beeec0 Fix testProxy.
GitOrigin-RevId: 6ad0bf0e7685ccae35931c4949ba29bafbcc6335
2019-07-22 05:04:18 +03:00
levlam
635aca2924 Fix tdutils after update.
GitOrigin-RevId: afc6d10dd0e2b2a7193dd2c96f07d5ca1cb11a00
2019-07-21 21:07:07 +03:00
levlam
e300208960 Add missing files.
GitOrigin-RevId: 8a8503246a51483927b683ba5cd74f758e21a538
2019-07-07 03:05:30 +03:00
Arseny Smirnov
02c31f486f tdutils: update from other project
GitOrigin-RevId: 73c666dbdd72811b151a48504716ed4aee6af1a0
2019-07-06 13:29:15 +02:00
Arseny Smirnov
6dc06b5b18 MpscPollableQueue: fix warning
GitOrigin-RevId: c7374582d0dd8ddf4f52885a8e44c81a0b27274c
2019-07-04 15:16:59 +02:00
Arseny Smirnov
1e9cefb2eb MpscPollableQueue: minor optimization
GitOrigin-RevId: 9d87dafe8b91622979a73ed068fdd73c60fdff29
2019-07-04 14:07:14 +02:00
Arseny Smirnov
b938ca635c Random: secure_uint{32,64}
GitOrigin-RevId: 5cc15552bc0d103cbe93935d3c75256845e3a39b
2019-07-04 12:55:17 +02:00
Arseny Smirnov
d4cb9d2d52 MpscPollableQueue: move system calls out of spin lock
GitOrigin-RevId: 6e826bcca1006aeadab4af84ad86ce2e402c10e4
2019-07-03 21:21:38 +02:00
levlam
948da791ad Wrap calls to fsync with skip_eintr.
GitOrigin-RevId: c7eaba54794d461428cce064e51be26909f39a30
2019-07-03 17:51:00 +03:00
levlam
0a1fb007d9 TlsInit fixes.
GitOrigin-RevId: 798d053d68b6e0955b6e0e0c7c8d36592f76c987
2019-07-01 16:18:28 +03:00
Arseny Smirnov
f74d52b9be buffer.h: fix BufferBuilder const for_each
GitOrigin-RevId: a264a7d12975e57c517303e4699e2e73eb1d2211
2019-07-01 14:37:23 +02:00
levlam
fe00a7e7cf Add LOG_CHECK.
GitOrigin-RevId: 683c36f0eb69fe886acc09d9351efe3fbada9def
2019-06-27 20:08:58 +03:00
Arseny Smirnov
345f28330c ObfuscatedTransport: support of emulated_tls flag
GitOrigin-RevId: f0ae7ddb21455d4e8d8c3f486744b1b9643bf2d5
2019-06-26 15:51:48 +02:00
levlam
fa11870016 Fix CE.
GitOrigin-RevId: 6469e470803563c3451895189aa896dfb1e1e23f
2019-06-20 19:01:18 +03:00
levlam
c5eace2057 FileFd::stat fixes.
GitOrigin-RevId: 36197c4d134e4afe902eef066dc497c03228c271
2019-06-20 05:09:03 +03:00
levlam
59fd30237e Add Variant parser and storer.
GitOrigin-RevId: e6b8e46184f67fed50ce96a58a8ba33c17789c57
2019-06-19 02:48:34 +03:00
Arseny Smirnov
ff3164ff04 Fd::stat returns Result<Stat> instead of Stat
GitOrigin-RevId: 7bdb5f0d65df55424db302e4df060b697d8ee11d
2019-06-19 16:31:25 +02:00
levlam
d8f95c3ea0 Add td_api::getBackgroundUrl.
GitOrigin-RevId: d9f55ce5f4d6630795fc269b3c19045376393d84
2019-05-07 17:10:20 +03:00
levlam
d92af070c4 Add misaligned pointer debug.
GitOrigin-RevId: 83e3727e541c490029c6ebf19188a8b866779088
2019-05-03 16:53:34 +03:00
levlam
6ffd4ce1f4 Fix walk_path.
GitOrigin-RevId: a75c5a6314e3c5312cd94a5844d276710ec9944c
2019-06-05 03:59:37 +03:00
levlam
44aede31ca Add more logging.
GitOrigin-RevId: 43b44b116e835cbaeb56119254b0de73aa57bdcd
2019-05-30 01:35:19 +03:00
levlam
34fcde6827 Minor fixes.
GitOrigin-RevId: a5d8a4b0b9b9c4e858d7a9a7403bef0de7e009e0
2019-05-22 21:17:24 +03:00
Arseny Smirnov
7831955779 Fix CE
GitOrigin-RevId: 1747b786d930cd2150a9d5eacd75908e3f37a45b
2019-05-02 06:43:33 +02:00
Arseny Smirnov
83f99f6193 Fix CE
GitOrigin-RevId: 48135ab7ebeea8bc6b14de5734a107068cb0dc99
2019-05-01 22:31:07 +02:00
Arseny Smirnov
e3e54b7a53 simple CancellationToken
GitOrigin-RevId: 081b63eac0ac1e45153f2df4a2eea9fa825c9924
2019-05-01 15:13:48 +02:00
Arseny Smirnov
0264e2bbfd WalkPath: allow to skip dirs and to abort a walk
GitOrigin-RevId: 6be49d1c098b0d17b63ae1f26dbefb6904320d6b
2019-05-01 12:23:19 +03:00
levlam
73b98138d5 Fix warning.
GitOrigin-RevId: d6a208eafd95a36826a057e0e35128fefaee1c49
2019-04-30 22:15:43 +03:00
levlam
63bf6e5135 Undef bswap macroses if needed.
GitOrigin-RevId: 864c725f32d19152bf658853e7648c3f9c62d3a4
2019-04-30 21:25:17 +03:00
levlam
62fb384ec6 Fix return type of WSAGetOverlappedResult.
GitOrigin-RevId: d6e8575d2b8c15ce1f285de2eae573e7bf6f46fa
2019-04-26 05:15:26 +03:00
levlam
ccfc5337f8 Add td_api::writeGeneratedFilePart.
GitOrigin-RevId: 2dfcba1d5f14dfd5e701ac02d3a8fc96090a00f2
2019-04-26 03:18:00 +03:00
levlam
6acdaf056f Fix std::atomic_flag init.
GitOrigin-RevId: a5db747edd902e2e6c7847c7c525bbd2cef0df1a
2019-04-22 03:18:33 +03:00
levlam
498765fa8d Remove unused buffer log tag.
GitOrigin-RevId: 0e0e831c2c555388d72dbe0554cd6185f56d78a6
2019-03-26 16:24:29 +03:00
levlam
89e5b00a95 More push notification parsing.
GitOrigin-RevId: df7da02f718aab0c9158d77f73744808f7597396
2019-03-26 03:57:38 +03:00
levlam
e828ebc6d7 Better fatal error messages when writing FileLog fails.
GitOrigin-RevId: 61318558a665dd925cd10dd8f39eba20dd44eb87
2019-03-26 01:48:50 +03:00
levlam
afa4871028 Allow String as a Number in get_json_object_int_field.
GitOrigin-RevId: f7c17eb1f6f8caa3d078d4eafe2de3b58e34002f
2019-03-25 18:09:46 +03:00
levlam
d494a3e13f Return stdin to blocking state when closing.
GitOrigin-RevId: db4f43a526b099f07dbc5c1c717cc4e67aad5ee7
2019-03-22 01:59:16 +03:00
levlam
59b98c5b50 Include unistd.h in OptionsParser.
GitOrigin-RevId: 9e8ed25f239ce898523f02454b40219024157555
2019-03-22 01:56:24 +03:00
levlam
6af95d721d Deprecate Log in .NET native binding.
GitOrigin-RevId: 08d3321d68a7406dd0e2a5f5877619d9e864ba1e
2019-02-24 19:17:36 +03:00
levlam
272608a5fb Use F_FULLFSYNC instead of fsync on Darwin.
GitOrigin-RevId: 05a7bc0683641a679b026b6d636fa127fe104123
2019-02-22 04:20:23 +03:00
levlam
4d5fb2902c Unify names of ParserT/StorerT classes.
GitOrigin-RevId: 69df5062e20cc87c0778e1b125ab46575c365377
2019-02-21 20:54:20 +03:00
levlam
93494cf048 Fix log messages style.
GitOrigin-RevId: f99e2e838220826d3dea7fdc33c43ac9918a5efd
2019-02-21 18:58:20 +03:00
levlam
9759036081 Make store_bytes_field output prettier.
GitOrigin-RevId: 992b7cb8875bb3238484c4a254b3498266233939
2019-02-21 01:55:40 +03:00
levlam
27a0bbd158 Precerve file remote in check_input_file_id.
GitOrigin-RevId: 52a3d32a606b8907f1ab94b7c10c2413346e66ec
2019-02-15 21:49:02 +03:00
Arseny Smirnov
82589eeb2f FileManager: force upload, and separate full and partial remote location storage
GitOrigin-RevId: 3bdc218738558012ee6e2a790a553b2f0fea1d62
2019-02-14 14:20:40 +03:00
Arseny Smirnov
06f9533a5a Fix DCHECK
GitOrigin-RevId: 57ad1b375fed6fe3401c2c6ee5237739900ef4b7
2019-02-13 13:33:14 +03:00
levlam
b336c8466e Add link to Bugzilla.
GitOrigin-RevId: dae1d7c19efa57c8b44df4d9cc17acd96cefdc60
2019-02-13 03:52:34 +03:00
levlam
0063ebe1cc Fix g++ <= 4.9.2 CE.
GitOrigin-RevId: 8c1f56da7915989d0aaa2fe2f037558078d1efac
2019-02-13 03:51:39 +03:00
levlam
a9ded5b498 Fix another g++-4.9 CE.
GitOrigin-RevId: a33df8605db518fb5dfea2f542094af6977c2053
2019-02-13 02:45:08 +03:00
levlam
8c3eb953ae Fix some g++4.9 CE.
GitOrigin-RevId: 0d4ed1e684fd623a7ab5849e4f0f7ec2fd182694
2019-02-13 02:29:52 +03:00
levlam
dd398c5968 Fix formatting.
GitOrigin-RevId: 144f91ea1ad0a1f9a8e5e08c4c10f238b066be47
2019-02-13 00:28:47 +03:00
levlam
9b42166c68 Explicitly include common.h.
GitOrigin-RevId: 5ae32c18d0ff18aac36334b494ea526ce7da4a9a
2019-02-13 00:26:36 +03:00
levlam
eb9ead582f Remove unneded includes of td/utils/loggging.h.
GitOrigin-RevId: 82a3b506dba5c9d5267dc0e2504a7093a7fa87db
2019-02-12 23:48:16 +03:00
levlam
ffe53dcd12 CHECK fixes.
GitOrigin-RevId: 7f82d11913592bb241ab69975278ee8be2ce9d23
2019-02-12 23:19:11 +03:00
Arseny Smirnov
61288bd8ab CHECK: fixes
GitOrigin-RevId: 5bccb4634a0c77e159ce3cdf80c37ff8a500bbd0
2019-02-12 20:48:13 +03:00
Arseny Smirnov
20bfcaa979 Use LOG_CHECK where it is necessary
GitOrigin-RevId: a8bd17cc2ee6e43dcea52bb25aef9ee1f91c7ec4
2019-02-12 19:17:20 +03:00