Max Kellermann
|
b188ae0e5c
|
system/FileDescriptor: use _WIN32 instead of WIN32
|
2017-09-13 17:36:48 +02:00 |
|
Ryan Walklin
|
318f80d113
|
Fix EventPipe file descriptors
|
2017-08-17 12:21:01 +10:00 |
|
Max Kellermann
|
b57a272f67
|
system/EPollFD: throw exception instead of raising fatal error
|
2017-08-11 09:39:47 +02:00 |
|
Max Kellermann
|
33b4114534
|
system/fd_util: remove unused library
|
2017-08-11 09:20:15 +02:00 |
|
Max Kellermann
|
7a4457402f
|
system/EventPipe: use FileDescriptor::CreatePipeNonBlock()
|
2017-08-11 09:19:00 +02:00 |
|
Max Kellermann
|
9056dcaf7d
|
system/FileDescriptor: add method CreatePipeNonBlock()
|
2017-08-11 09:15:22 +02:00 |
|
Max Kellermann
|
2119e4fd3e
|
system/EventPipe: use class UniqueSocketDescriptor in PoorSocketPair()
|
2017-08-11 09:09:04 +02:00 |
|
Max Kellermann
|
bcd5190f1d
|
system/EventPipe: throw exception instead of raising fatal error
|
2017-08-11 09:09:04 +02:00 |
|
Max Kellermann
|
d705a92e43
|
net/IPv4Address: new class
|
2017-08-11 09:09:04 +02:00 |
|
Max Kellermann
|
699f41e114
|
system/EventPipe: use AtScopeExit() in PoorSocketPair()
|
2017-08-11 08:30:37 +02:00 |
|
Max Kellermann
|
7484bc31b4
|
system/FileDescriptor: implement CreatePipe() on Windows
|
2017-08-11 08:15:47 +02:00 |
|
Max Kellermann
|
5a495cc165
|
system/fd_util: remove unused function close_socket()
|
2017-08-10 19:47:57 +02:00 |
|
Max Kellermann
|
9ff4717738
|
system/fd_util: remove unused function accept_cloexec_nonblock()
|
2017-08-10 19:47:40 +02:00 |
|
Max Kellermann
|
0c1740982d
|
system/fd_util: remove unused function open_cloexec()
|
2017-08-10 19:46:23 +02:00 |
|
Max Kellermann
|
eb0ff32efb
|
system/FileDescriptor: add Open() overload with wchar_t path
|
2017-08-10 19:34:52 +02:00 |
|
Max Kellermann
|
0800d9427c
|
system/fd_util: remove unused function socket_cloexec_nonblock()
|
2017-08-10 17:40:14 +02:00 |
|
Max Kellermann
|
fb0dbce15b
|
system/EventFD: use class UniqueFileDescriptor
|
2017-08-10 12:14:56 +02:00 |
|
Max Kellermann
|
8333551331
|
system/SignalFD: use class UniqueFileDescriptor
|
2017-08-10 12:13:41 +02:00 |
|
Max Kellermann
|
292d794806
|
system/UniqueFileDescriptor: new auto-closing FileDescriptor wrapper
|
2017-08-10 12:01:17 +02:00 |
|
Max Kellermann
|
91ce76af9d
|
system/FileDescriptor: add methods EnableCloseOnExec(), DisableCloseOnExec()
|
2017-08-10 11:54:26 +02:00 |
|
Max Kellermann
|
33bd9e80bb
|
system/FileDescriptor: add method IsReadyForWriting()
|
2017-08-10 11:53:43 +02:00 |
|
Max Kellermann
|
d310f3e9b7
|
system/FileDescriptor: add method IsValid()
|
2017-08-10 11:52:22 +02:00 |
|
Max Kellermann
|
8c832f4c50
|
system/FileDescriptor: use std::exchange()
|
2017-08-10 09:55:11 +02:00 |
|
Max Kellermann
|
0a379fc514
|
system/ByteOrder: fix byte order detection on FreeBSD/aarch64
Patch from
https://svnweb.freebsd.org/ports/head/audio/musicpd/files/patch-src_system_ByteOrder.hxx?revision=441921&view=co
(with a tiny modification)
Closes #59
|
2017-05-29 20:37:14 +02:00 |
|
Max Kellermann
|
71f0ed8b74
|
*: add "noexcept" to many, many function prototypes
This eliminates some overhead, because the compiler doesn't need to
consider these functions throwing.
|
2017-05-08 14:44:49 +02:00 |
|
Max Kellermann
|
6eea56861b
|
AUTHORS, ...: update my email address
|
2017-01-17 11:54:55 +01:00 |
|
Max Kellermann
|
5900253b85
|
update copyright year
|
2017-01-03 20:48:59 +01:00 |
|
Max Kellermann
|
837134daef
|
system/Clock: remove obsolete MonotonicClock*() functions
We're using std::chrono::steady_clock now. No need to duplicate code.
|
2016-12-28 22:24:09 +01:00 |
|
Max Kellermann
|
4011899846
|
system/PeriodClock: use std::chrono::steady_clock
|
2016-12-28 22:23:45 +01:00 |
|
Max Kellermann
|
e786207cc2
|
system/PeriodClock: indent with tabs
|
2016-12-28 01:18:42 +01:00 |
|
Max Kellermann
|
c6e1ca1c22
|
system/Error: use std::generic_category() for errno on Windows
It's wrong to use std::system_category() for both GetLastError() and
errno on Windows. Apparently, everybody uses std::generic_category()
for errno values, which appears to be a safe choice.
Some discussion on this confusing topic can be found here:
https://stackoverflow.com/questions/28746372/system-error-categories-and-standard-system-error-codes
|
2016-12-04 20:07:11 +01:00 |
|
Max Kellermann
|
30dc473697
|
system/Error: allow using errno functions on Windows
The Windows standard library emulates part of POSIX, which includes
errno.
|
2016-12-04 20:07:09 +01:00 |
|
Max Kellermann
|
14885f25b4
|
system/FatalError: remove the obsolete class Error overloads
|
2016-11-10 12:55:08 +01:00 |
|
Max Kellermann
|
fc7d3f64c0
|
input/Plugin: migrate open() from class Error to C++ exceptions
|
2016-09-09 18:15:01 +02:00 |
|
Max Kellermann
|
d0dae177cf
|
release v0.19.19
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAABCAAGBQJXvAb+AAoJECNuiljG20USLukP/1dWwG4U3eQllGtwmKYEuGT8
x8bFImW3zziQgzzQNos8ZyB/7Q9wFDwl90q2Shyg778sk8WgBLVdn1hLhDRyodkg
iTAbnuBeX0GoQO2vZ62jY/xtsSMwCguNMbJe5Yybq+uZ2EYLQO8NWsvy/qZzZRB6
9s78IfQodN/vbKg8cJDPP1ZFvlhC+RfrOJbhwkAhh3D0xkpYjumW636ewcpD5Crk
T+OT035konZEcH2hOy89tleFifo+/nosiJQXL5/RdfIVAy+rWj9HbKMT9Wlb2EO0
iqvbjfC8rAt4a15Y8l/C42m1xhLFtRvI7O5I5wH8zqwpgRfCuG21Kw49zWFQ9md/
tX2urKZC6QsvxfHx4J6ot+SFQJB/VZ1fufG1ZBTHVNp7eJ++mWE5pR79EbCLurlj
x7cN1ZM7wsQfkw8MOsKr+sJqIGkU9sZSHHh3PhEkI83fEssYaAOGtkPuTqU0w/37
wHV2laFD58SOagVPbQlhIdK6MnkiTR8RvV9j6ERywLnFNMBMiI9j7ij7zoDMKjSU
E60JzIR4xUPWtQg91BwM5sJdqZw7xybgNBn0rMt+6AoA0CQseAnPRxA9gstrWR1/
FYRPUzrf9brpvXEsT8R2tXcjNLNYgKzT3GxHEQj1k2MJiVe+1SztiYIi77JPLJfn
MevaiCy/Ho3ZeQKygxVq
=GsV+
-----END PGP SIGNATURE-----
Merge tag 'v0.19.19'
release v0.19.19
|
2016-08-23 10:27:39 +02:00 |
|
Thomas Klausner
|
de0752fd56
|
system/ByteOrder: gssupport non-x86 NetBSD
|
2016-08-23 10:15:54 +02:00 |
|
Max Kellermann
|
a61f153df7
|
system/Error: add missing include
|
2016-07-02 13:59:47 +02:00 |
|
Max Kellermann
|
1d67aa7bf2
|
update copyright year to 2016
|
2016-02-26 17:54:05 +01:00 |
|
Max Kellermann
|
8e0e4d7c04
|
system/FileDescriptor: add method Skip()
|
2016-02-19 18:18:12 +01:00 |
|
Max Kellermann
|
08754e6ce7
|
system/Error: add IsAccessDenied()
|
2015-12-29 12:56:26 +01:00 |
|
Max Kellermann
|
672e18cac9
|
system/Error: fix duplicate strerror() call
Apparently, the std::system_error constructor appends strerror()
already.
|
2015-12-27 06:05:53 +01:00 |
|
Max Kellermann
|
fe60c52c70
|
system/Error: add MakeErrno(), MakeLastError()
|
2015-12-18 01:08:16 +01:00 |
|
Max Kellermann
|
93f4590453
|
system/Error: add IsFileNotFound()
|
2015-12-18 00:54:23 +01:00 |
|
Max Kellermann
|
3092e5a8a5
|
system/Error: helper library for constructing std::system_error
|
2015-12-16 00:07:51 +01:00 |
|
Max Kellermann
|
90e7ace980
|
release v0.19.10
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAABCAAGBQJVhsF2AAoJECNuiljG20US2OUQAIyDcaUCFgUa2CYa7MftCPGc
dYJFwf+6Y2fJdSXcogYZmXNKNjFbPAZ4qqGdoNfI5a0rLxMarmL4DyjziAWi3ETB
MOkZK65Y5ySyyw69e+i/XsOwOn8rm6jDuwHKpT7wVJNjvZ8nA8esvu5b1Ief5LBd
UwEmn5DtKjA7dErHEYd2YvMK0xm+YmoKXuhmJKAn3sQdCEldgH4T5BCdOqmfrHWX
BYmNxmP3PU9Tqi7XHTSFZJn6vWiXhOoWr4Cb7K54j49sRV2B4QMWX1CLyK4+Jwmk
NZwD1IoGtoks5twfMTA9F9dBV/CPAWT69E0LIvaFJwCyoPCEnEi6k41bRAWK7P65
QwKxdtY/GZnVFpiqXba+wkD6VBa5wmkjS10+cIBhz3CVCEE+N5YacubUw5JieYg3
kOG2htSF1YP/Mo+IAObO9doQWHnDUavVhhpQ8UyqQ1bDMsmaEpfE16TRmlY/l5wx
Aor2p6D3c0E0IGpEwjOl6T9pDql4dyTdrRLLXJ6oD9iYv2rDdahctBRdyFZ1mRwX
oNUz8bfGDrshHVvwjQTr2b4O+w+yc+RSuJcyCGGcn5LakBuiM6vYNYuZzq3Yj/RK
Wk7RErVsbtY4ZRH06Lf5MSM5TflnrfQmzkUB0rZ0XoDyweoHOHPyzKhvBaKhadNh
UnEx4kCOvWdjFXUVWH3Q
=MrVf
-----END PGP SIGNATURE-----
Merge tag 'v0.19.10'
|
2015-06-21 16:06:02 +02:00 |
|
Max Kellermann
|
980187f856
|
system/PeriodClock: make IsDefined() "constexpr"
|
2015-06-20 15:33:17 +02:00 |
|
Max Kellermann
|
077e95da85
|
system/FileDescriptor: add method Tell()
|
2015-03-24 21:59:34 +01:00 |
|
Max Kellermann
|
dd4beea44c
|
system/FileDescriptor: Close() returns bool
|
2015-03-03 23:04:25 +01:00 |
|
Max Kellermann
|
5b48d59769
|
system/FileDescriptor: add "mode" parameter to Open()
|
2015-03-03 22:29:09 +01:00 |
|
Max Kellermann
|
4dec12fcfc
|
system/FileDescriptor: move O_NOCTTY|O_CLOEXEC to Open()
|
2015-03-03 22:20:51 +01:00 |
|