aboutsummaryrefslogtreecommitdiffstats
path: root/src/system/fd_util.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-01-01Copyright year 2015Max Kellermann1-1/+1
2014-11-21configure.ac: add macro MPD_ENABLE_AUTO_PKGMax Kellermann1-1/+1
Simplify the definition of many build options.
2014-03-15system/fd_util: export fd_set_cloexec()Max Kellermann1-0/+3
2014-03-15configure.ac: always define _GNU_SOURCE on LinuxMax Kellermann1-4/+0
Make sure glibc gives us all features.
2014-01-13copyright year 2014Max Kellermann1-1/+1
2013-11-18system/fd_util.h: avoid symbol conflict with statically linked libmpdclientDenis Krjuchkov1-0/+5
2013-08-07Makefile.am: move sources to libsystem.aMax Kellermann1-0/+0
2013-08-06configure.ac: add option --enable-eventfdMax Kellermann1-1/+1
Remove the runtime check for eventfd(), hard-code the feature once it's been selected at compile time. The class WakeFD is splitted into EventFD and EventPipe, using WakeFD as a macro diversion.
2013-01-10fd_util: support eventfd()Max Kellermann1-0/+11
2012-08-22fd_util: make C++ safeMax Kellermann1-0/+8
2011-09-20fd_util: add function close_socket()Max Kellermann1-0/+6
Wrap close(), use closesocket() on WIN32/WinSock.
2011-09-20fd_util: check HAVE_INOTIFY_INIT in headerMax Kellermann1-0/+4
Don't provide the prototype if inotify_init() was not detected.
2011-09-20fd_util: include check.h, verify config.h was includedMax Kellermann1-0/+2
2011-07-01fd_util: add function socketpair_cloexec_nonblock()Max Kellermann1-0/+7
2011-01-29copyright year 2011Max Kellermann1-1/+1
2010-08-03fd_util: add function dup_cloexec()Max Kellermann1-0/+7
Unfortunately, there's no "optimized" implementation here. We can't use Linux's proprietary system call dup3(), because it would require us to specify the new descriptor.
2010-08-03fd_util: add function recvmsg_cloexec()Max Kellermann1-0/+22
2010-08-03fd_util: add function socketpair_cloexec()Max Kellermann1-0/+11
2009-12-31Update copyright notices.Avuton Olrich1-1/+1
2009-11-10fd_util: removed creat_cloexec()Max Kellermann1-8/+1
Add a "mode" argument to open_cloexec() instead.
2009-11-10fd_util: added function pipe_cloexec()Max Kellermann1-0/+7
Same as pipe_cloexec_nonblock(), but doesn't set non-blocking mode.
2009-11-08fd_util: relicense under BSD 2-clauseMax Kellermann1-11/+20
We'll copy this code to libmpdclient, and that's easier if its license is BSD.
2009-11-08fd_util: added O_NONBLOCK functionsMax Kellermann1-7/+11
Changed the wrappers for pipe(), socket(), accept(). On WIN32, this does not work for pipe().
2009-11-08fd_util: fixed typo in API documentationMax Kellermann1-6/+6
2009-11-08fd_util: added API documentationMax Kellermann1-0/+24
2009-11-08fd_util: unexport fd_set_cloexec()Max Kellermann1-3/+0
This function is used only internally.
2009-11-07inotify: set close-on-exec flagMax Kellermann1-0/+3
Added wrapper for inotify_init1() to fd_util.c.
2009-11-07set the close-on-exec flag on all file descriptorsMax Kellermann1-13/+25
Added the "fd_util" library, which attempts to use the new thread-safe Linux system calls pipe2(), accept4() and the options O_CLOEXEC, SOCK_CLOEXEC. Without these, it falls back to FD_CLOEXEC, which is not thread safe. This is particularly important for the "pipe" output plugin (and others, such as JACK/PulseAudio), because we were heavily leaking file descriptors to child processes.
2009-03-13all: Update copyright header.Avuton Olrich1-3/+4
This updates the copyright header to all be the same, which is pretty much an update of where to mail request for a copy of the GPL and the years of the MPD project. This also puts all committers under 'The Music Player Project' umbrella. These entries should go individually in the AUTHORS file, for consistancy.
2009-03-02tag_id3: parse ID3 tags in RIFF/WAV filesMax Kellermann1-11/+14
Added a small RIFF parser library. Look for an "id3" chunk, and let libid3tag parse it.
2009-02-04playlist: moved code to playlist_state.cMax Kellermann1-6/+13
Moved everything related to saving or loading the playlist from/to the state file to playlist_state.c.
2009-01-07pcm: pass void pointers to PCM functionsMax Kellermann1-1/+1
In generic PCM functions allowing all sample formats, pass a void pointer instead of a char pointer.
2009-01-07pcm_utils: moved code to pcm_mix.cMax Kellermann1-10/+9
Moved the software mixing code (used by crossfading) to a separate library.
2009-01-03pcm_utils: use the custom PRNG for volume ditheringMax Kellermann1-11/+9
Don't use libc's rand() function, because it is slow. Our own trivial linear congruential generator is good enough for dithering.
2008-12-30listen: moved redirect_stdin() to daemon.cMax Kellermann1-0/+6
redirect_stdin() is a daemonization function, and disconnecting from the standard input is always a good idea for MPD.
2008-12-30main: moved daemonize() to daemon.cMax Kellermann1-12/+5
2008-12-27cmdline: use gboolean instead of intMax Kellermann1-4/+6
Prepare for the migration to the GLib option parser, which uses gboolean for flags.
2008-12-27moved command line parser to cmdline.cMax Kellermann1-7/+13
2008-10-31added prefix to header macrosMax Kellermann1-2/+2
"LOG_H" is a macro which is also used by ffmpeg/log.h. This is ffmpeg's fault, because short macros should be reserved for applications, but since it's always a good idea to choose prefixed macro names, even for applications, we are going to do that in MPD.
2008-10-08don't include os_compat.hMax Kellermann1-1/+1
When there are standardized headers, use these instead of the bloated os_compat.h.
2008-09-09output: moved code from audioOutput.c to output_control.cMax Kellermann1-19/+0
Similar to decoder_control.c, output_control.c will provide functions for controlling the output thread (which will be implemented later).
2008-09-09output: removed keepAudioOutputAlive() declarationMax Kellermann1-1/+0
This function is declared, but is neither used nor implemented.
2008-09-08output: static audio_output_plugin list as arrayMax Kellermann1-17/+0
Instead of having to register each output plugin, store them statically in an array. This eliminates the need for the List library here, and saves some small allocations during startup.
2008-09-07output: renamed typedef AudioOutput to struct audio_outputMax Kellermann1-21/+22
Also rename AudioOutputPlugin to struct audio_output_plugin, and use forward declarations to reduce include dependencies.
2008-09-07output: added output_api.hMax Kellermann1-64/+3
Just like decoder_api.h, output_api.h provides the audio output API which is used by the plugins.
2008-09-07audio_format: converted typedef AudioFormat to struct audio_formatMax Kellermann1-4/+4
Get rid of CamelCase, and don't use a typedef, so we can forward-declare it, and unclutter the include dependencies.
2008-08-29tag: renamed MpdTag and MpdTagItem to struct tag, struct mpd_tag_itemMax Kellermann1-2/+3
Getting rid of CamelCase; not having typedefs also allows us to forward-declare the structures.
2008-08-29pass constant pointersMax Kellermann1-2/+2
And again, convert arguments to const.
2008-08-26moved struct AudioFormat to audio_format.hMax Kellermann1-1/+1
We want to expose the AudioFormat structure to plugins; remove some clutter by moving its declaration to a separate header file.
2008-04-12const pointers in audioOutput.cMax Kellermann1-1/+2
git-svn-id: https://svn.musicpd.org/mpd/trunk@7345 09075e82-0dd4-0310-85a5-a0d7c8717e4f