aboutsummaryrefslogtreecommitdiffstats
path: root/src/system (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-03-03system/FileDescriptor: Close() returns boolMax Kellermann1-2/+2
2015-03-03system/FileDescriptor: add "mode" parameter to Open()Max Kellermann2-3/+3
2015-03-03system/FileDescriptor: move O_NOCTTY|O_CLOEXEC to Open()Max Kellermann1-3/+3
2015-03-03system/FileDescriptor: remove bogus assertionsMax Kellermann1-4/+0
2015-03-03system/FileDescriptor: fix WIN32 checksMax Kellermann2-5/+5
2015-03-03system/FileDescriptor: new wrapper class for a file descriptorMax Kellermann8-88/+409
2015-03-03system/fd_util: remove unused functionsMax Kellermann2-154/+0
2015-02-12system/ByteOrder: use GCC built-ins if availableMax Kellermann1-6/+38
2015-02-10system/{Resolver,Socket{Error,Util}}: move to new library libnet.aMax Kellermann6-558/+0
2015-01-29Avoid integer overflow in MonotonicClock{S,MS,US}PHO1-6/+6
This is Darwin specific: the previous implementation was causing an integer overflow when base.numer is very large. On PPC Darwin, the timebase info is 1000000000/33330116 and this is too large for integer arithmetic.
2015-01-29Avoid integer overflow in MonotonicClock{S,MS,US}PHO1-4/+4
This is Darwin specific: the previous implementation was causing an integer overflow when base.numer is very large. On PPC Darwin, the timebase info is 1000000000/33330116 and this is too large for integer arithmetic.
2015-01-01Copyright year 2015Max Kellermann21-21/+21
2014-12-05system/FatalError: add FatalSystemError() overload with WIN32 error codeMax Kellermann2-10/+30
2014-12-05system/FatalError: use FormatMessage() instead of g_win32_error_message()Max Kellermann1-5/+6
2014-11-21configure.ac: add macro MPD_ENABLE_AUTO_PKGMax Kellermann1-1/+1
Simplify the definition of many build options.
2014-08-23system/ByteOrder: <endian.h> is a non-standard header that only Linux provides.Thomas Klausner1-0/+10
2014-07-30system/Resolver: use nullptr instead of NULLMax Kellermann1-5/+5
2014-03-15system/fd_util: export fd_set_cloexec()Max Kellermann2-1/+4
2014-03-15configure.ac: always define _GNU_SOURCE on LinuxMax Kellermann2-8/+0
Make sure glibc gives us all features.
2014-02-18system/FatalError: remove GError supportMax Kellermann2-17/+0
2014-02-18system/EPollFD: add epoll_create1() fallback for AndroidMax Kellermann1-0/+15
2014-01-13copyright year 2014Max Kellermann21-21/+21
2013-12-15configure.ac: add option "--disable-glib"Max Kellermann2-1/+7
Allows building without GLib. This fails to compile currently, because GLib is still used in the MPD core.
2013-12-15util/Tokenizer, ...: include cleanupMax Kellermann1-2/+0
2013-12-15system/SocketError, ...: use strerror() instead of g_strerror()Max Kellermann2-3/+6
Avoid GLib.
2013-12-04system/Resolver: use std::string to allocate internal bufferMax Kellermann1-13/+11
No GLib memory allocation.
2013-12-04system/Resolver: sockaddr_to_string() returns std::string()Max Kellermann2-18/+23
No GLib memory allocation.
2013-11-29Clock.cxx: provide all arguments for GetProcessTimesDenis Krjuchkov1-2/+2
All parameters seem mandatory, otherwise this call makes MPD crash.
2013-11-28include cleanup using iwyuMax Kellermann5-6/+12
2013-11-25Volume, Output: use new class PeriodClock instead of GTimerMax Kellermann1-0/+149
2013-11-24Stats: use monotonic clock instead of GTimerMax Kellermann2-0/+29
Reduce GLib usage.
2013-11-24Stats: use GetProcessTimes() on WIN32 to determine MPD uptimeMax Kellermann2-0/+37
Don't use GTimer if the operating system is able to tell us the uptime.
2013-11-21system/ByteOrder: testing for endianness in a more general wayFlorian Schlichting1-1/+11
Fixes build tests on ia64 and mipsel by testing for endianness in a more general / portable way.
2013-11-21util/ByteOrder: add commentsMax Kellermann1-0/+2
2013-11-21util/ByteOrder: indent the preprocessor directivesMax Kellermann1-4/+4
Improve readability.
2013-11-18system/fd_util.h: avoid symbol conflict with statically linked libmpdclientDenis Krjuchkov1-0/+5
2013-11-05system/ByteOrder: fix big-endian supportMax Kellermann1-2/+2
D'oh!
2013-11-05add various missing headersNatanael Copa1-0/+1
Fixes building with gcc-4.8 Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
2013-11-04system/resolver: return path of UNIX domain socketsMax Kellermann1-7/+15
getnameinfo() doesn't work well - it always returns "localhost".
2013-10-30system/FatalError: use _exit() instead of exit()Max Kellermann1-2/+2
Skip the global destructors. We don't need them here - we bail out as quickly as we can.
2013-10-30system/FatalError: move code to Abort()Max Kellermann1-3/+10
2013-10-29fd_util: avoid unnecessary fcntl() callsMax Kellermann1-6/+8
2013-10-20FatalError: remove unused GError overloadMax Kellermann2-10/+0
2013-10-16system/ByteOrder: new library for byte ordering / endianessMax Kellermann1-0/+183
Replacing GLib macros.
2013-10-15system/clock: convert to C++Max Kellermann2-15/+7
2013-10-15gcc.h: rename to Compiler.hMax Kellermann6-6/+6
2013-10-15*: use WIN32 instead of G_OS_WIN32Max Kellermann2-6/+6
2013-10-02Log: new logging library APIMax Kellermann1-5/+6
Prepare to migrate away from GLib. Currently, we're still using GLib as a backend.
2013-09-05mpd_error.h: remove obsolete headerMax Kellermann2-0/+10
Migrate the remaining callers to FatalError().
2013-09-05use standard snprintf() instead of GLib g_snprintf()Max Kellermann1-1/+2