Commit Graph

264 Commits

Author SHA1 Message Date
Andrea Cavalli
9a9f80f36f Fixed memory signals in mac osx 2020-08-23 21:29:15 +02:00
Andrea Cavalli
7e39029811 Fixed memory mapping incompatibility 2020-08-23 21:17:32 +02:00
Andrea Cavalli
1ccc7c6c65 Merge commit '3282a873cb24b0c975b6929aeb71a00fc6a18b7c'
Conflicts:
	sqlite/sqlite/sqlite3.c
	sqlite/sqlite/sqlite3.h
	sqlite/sqlite/sqlite3ext.h
	sqlite/sqlite/sqlite3session.h
	tddb/td/db/SqliteDb.cpp
2020-08-18 13:55:47 +02:00
levlam
f266aa3912 Minor fixes.
GitOrigin-RevId: a4aacfa1ecab2718475d32bcbd99f9671ba7e982
2020-08-14 22:51:10 +03:00
Arseny Smirnov
9c40e37288 Clocks: use CLOCK_[BOOTTIME,MONOTONIC_RAW] for Clocks::monotonic
GitOrigin-RevId: 729311e1a7a36a9245ecdb5921b81c4834ec1dc6
2020-08-14 20:41:00 +03:00
Arseny Smirnov
775ef44ed8 Clocks: use CLOCK_[UPTIME|UPTIME_RAW|BOOTIME] when possible for Clocks::monotonic
GitOrigin-RevId: d0aeb9d98d54b298093cba3b2ca97c6ab16eba28
2020-08-14 19:51:45 +03:00
levlam
fe5bf41980 Minor improvements.
GitOrigin-RevId: 45477784ae1840f217b9394e3d0cc56e1241f9ce
2020-08-07 22:14:42 +03:00
Arseny Smirnov
c48ef93e1e tdutils: add skip_eintr_timeout and use it for EventFd
GitOrigin-RevId: 716218731f914e89e6f1e542054298380441b522
2020-08-07 18:50:33 +03:00
levlam
e4ecebc6bb Do not include unused headers on Windows.
GitOrigin-RevId: bf9d0c15d6271019253fe4157c9db42c34528f7b
2020-08-07 11:59:21 +03:00
cc087aeacd Merge commit 'ab5d35371b1fdcfb30dfa981ede54ec83db214a9'
Conflicts:
	sqlite/CMakeLists.txt
	td/telegram/ContactsManager.cpp
	td/telegram/Photo.cpp
	td/telegram/Td.cpp
	td/telegram/WebPagesManager.cpp
	td/telegram/files/FileManager.h
2020-07-29 16:39:33 +02:00
levlam
2b685a2396 Use lowercase includes under MinGW.
GitOrigin-RevId: e3d10420725def0b9b05ecea0aecfffaa2d13ce9
2020-07-26 17:14:38 +03:00
levlam
f8fd7e410e Fix signal handler reset on Windows.
GitOrigin-RevId: 5ca829e660728b054ee6413ac4899e109827ea81
2020-07-22 23:18:54 +03:00
levlam
8049a55081 Minor.
GitOrigin-RevId: 9ce34cfb96d0a86a71d95f1d12d8365d268285e0
2020-07-21 19:48:01 +03:00
Arseny Smirnov
38ef3a75cc PollableFd: explicit sync_with_poll
GitOrigin-RevId: 71fa35a594816e84e372ebcfa9d0077a13f26a62
2020-07-21 18:29:39 +03:00
levlam
37fa018c28 Increase max content size in HttpReader.
GitOrigin-RevId: c31b929989d4ab3d4baf6e487488a27b190a11c1
2020-07-19 13:17:05 +03:00
levlam
060c01ace3 Minor improvements.
GitOrigin-RevId: b4e5073248377d84cb8acdf4a032970ec5cf5df9
2020-07-14 20:54:38 +03:00
Arseny Smirnov
9b98451c43 IPAddress: function to clear interface part of ipv6
GitOrigin-RevId: ff738e215e458bc9e7257e9a89c318fb01cdb345
2020-07-14 17:22:40 +03:00
levlam
7767842d4c Minor fixes.
GitOrigin-RevId: b9f67c5e5edf818610c1739533f01a7873e6e1b6
2020-07-14 03:37:04 +03:00
886a40118e Merge commit 'f45d80fe16f99d112d545b7cd74ce46342fe3437' 2020-07-09 00:10:53 +02:00
levlam
c89412e175 Minor improvements.
GitOrigin-RevId: 8942b7461a1c83f963510c9884cd003948967fd0
2020-07-13 21:49:07 +03:00
levlam
8872fbf6ac Fix tdutils after merge.
GitOrigin-RevId: 5b9a863e405a9e3782157570156fda71bf2bb589
2020-06-26 02:24:13 +03:00
Arseny Smirnov
fd6423dedf update tdutils from another project
GitOrigin-RevId: 79b8eb2ba229d733f82dbb17b8bd7f27471c9472
2020-06-24 14:47:36 +03:00
levlam
afcf7197ae Unify constant name style.
GitOrigin-RevId: 660f8aa17fa856c828e6c11ade6c497a82cb7612
2020-06-22 02:40:05 +03:00
levlam
4ae7bc23dc Add two ways for OS version detection on Darwin.
GitOrigin-RevId: cddea795e5d289b1fe15d88fc99db51e42c7138e
2020-06-20 02:39:33 +03:00
levlam
79808f6dd2 Add /etc/os-release support on Linux.
GitOrigin-RevId: 066c8dc879719539aff88cec1b7424824267bdbc
2020-06-20 01:16:29 +03:00
levlam
0877d7f716 Automatically detect operating system version.
GitOrigin-RevId: d693799fdbfe4919da5a70c141709f2db93063d7
2020-06-19 03:45:24 +03:00
levlam
2172c71191 Add uname.
GitOrigin-RevId: d63397a217f67714d621425e7c6d3ea1e1fa3c60
2020-06-19 03:08:42 +03:00
levlam
0275ecdcbc Fix "Try to" usages.
GitOrigin-RevId: 4ff6d26737f67180a1e9a1289f7f7fb428828b08
2020-06-18 05:02:18 +03:00
levlam
fae344a65d Improve error messages.
GitOrigin-RevId: 99d0bdaec60007ace41631804e36c17b0753ede2
2020-06-18 00:58:54 +03:00
levlam
3442a88413 Unify constant names style.
GitOrigin-RevId: 6e4475366b94cea6ab0331d57f254311490bdee2
2020-06-16 05:10:16 +03:00
levlam
0cf4fea1ff Remove enum usages for static constants creation.
GitOrigin-RevId: 2a88fd2cd961398a09403fe35a15ae56372a44f8
2020-06-15 04:52:56 +03:00
levlam
715146c65c Move skip_eintr to a separate header.
GitOrigin-RevId: 80eeb583cd1a4351c5b72c7ec4021575dbc216a7
2020-06-15 03:50:38 +03:00
levlam
c8913e71af Add td::change_user.
GitOrigin-RevId: 8140b771e561d968d6fbf790249364190cb96d6c
2020-06-15 03:14:08 +03:00
levlam
7cd42fc518 Add set_resource_limit.
GitOrigin-RevId: 29cf122b31ff86ccc8f6c1fc3b71c28e89b8054f
2020-06-15 01:50:03 +03:00
levlam
18b8e87e74 Support cpu_stat on Windows.
GitOrigin-RevId: df9a2fa6d53fb1c19cd30f2da3354bc23b2f3aee
2020-06-14 04:01:02 +03:00
levlam
50a6b5da92 Minor cpu_stat improvements.
GitOrigin-RevId: ef6f8b0ed04ae88c9784260435e06a647babf0a1
2020-06-14 02:49:10 +03:00
levlam
6b1c2f797d Add mem_stat support on Windows.
GitOrigin-RevId: cf63e7fe53a00f2fa116472ed12f73492ad8bf29
2020-06-14 02:31:57 +03:00
205fa52f8d Merge commit '44689f81ff8b9bc4583c1c889d8034c47f0c5270'
Conflicts:
	td/telegram/DialogDb.cpp
	td/telegram/MessagesManager.cpp
	td/telegram/StickersManager.cpp
	td/telegram/TdDb.cpp
	td/telegram/WebPagesManager.cpp
2020-06-11 17:44:52 +02:00
e3bf0f63f0 Patches 2020-05-23 21:27:24 +02:00
levlam
eb8fba8b28 Fix init_host_port.
GitOrigin-RevId: 30abb3480d906ebd7ea50a7feecf072be6e36641
2020-05-16 23:54:40 +03:00
levlam
5b18a56e03 Add IPAddress::get_ip_host and use it whenever appropriate.
GitOrigin-RevId: 7254ebd036463fe2c8b6262269cbee843b320421
2020-05-16 23:12:52 +03:00
levlam
9fe0d4bbd9 Do not remove brackets from HttpUrl IPv6 host.
GitOrigin-RevId: 59db5b747e66bd83cbfa81d4276af2aa1bb8b7ca
2020-05-16 22:53:19 +03:00
levlam
842e2033b7 Fix IP address verification in TLS certificate.
GitOrigin-RevId: 5275f8be34e9459a13a87e6fbd056754ceb515d4
2020-05-16 18:43:49 +03:00
levlam
7bdff46710 Do not send IP address in SNI.
GitOrigin-RevId: ff01b1f5f9219e34b0cacdf8acd49bf4e5a3daa2
2020-05-16 17:50:58 +03:00
levlam
e58d423af1 Add IPAddress::get_ip_address.
GitOrigin-RevId: 8b82c462f10d705412cb6cedc3d25d5fb95c59e2
2020-05-16 17:35:53 +03:00
levlam
705ab4d415 Supoort bracketed IPv6 in init_ipv6_port.
GitOrigin-RevId: 5452157d85fa5628a07e82fec20c92e8b0836508
2020-05-16 17:30:16 +03:00
levlam
06b053ff3e Add comment about IPAddress::get_ip_str unsafety.
GitOrigin-RevId: 29cd28bf9a6422cd0295c74f904ba380fc119570
2020-05-16 16:43:40 +03:00
levlam
54f9c77a20 Make ipv4_to_str/ipv6_to_str safe to use.
GitOrigin-RevId: 622c8f03c8791545922d3ae5f596f0a9699b91a9
2020-05-16 16:33:32 +03:00
levlam
bf963ccadf Make IPAddress::get_ipv6 safe to use.
GitOrigin-RevId: 47d50318abac4231efe63820902ba4d74b6dd03d
2020-05-16 16:11:03 +03:00
levlam
77c7f4c660 Add Clocks::tz_offset.
GitOrigin-RevId: b1dcb9a8533f408961778eac7c7fa5db1bd2b920
2020-04-08 20:47:14 +03:00