music player daemon (fork)
Go to file
Eric Wong 90847fc881 Replace strdup and {c,re,m}alloc with x* variants to check for OOM errors
I'm checking for zero-size allocations and assert()-ing them,
so we can more easily get backtraces and debug problems, but we'll
also allow -DNDEBUG people to live on the edge if they wish.

We do not rely on errno when checking for OOM errors because
some implementations of malloc do not set it, and malloc
is commonly overridden by userspace wrappers.

I've spent some time looking through the source and didn't find any
obvious places where we would explicitly allocate 0 bytes, so we
shouldn't trip any of those assertions.

We also avoid allocating zero bytes because C libraries don't
handle this consistently (some return NULL, some not); and it's
dangerous either way.

git-svn-id: https://svn.musicpd.org/mpd/trunk@4690 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2006-08-26 06:25:57 +00:00
doc ves the spelling nazi strikes again 2006-08-08 18:55:29 +00:00
m4 Some more autotools fixes/hacks/workarounds 2006-07-18 09:55:15 +00:00
scripts Bumping version to rc3 2006-08-24 12:25:22 +00:00
src Replace strdup and {c,re,m}alloc with x* variants to check for OOM errors 2006-08-26 06:25:57 +00:00
AUTHORS Update author of AudioCompress in AUTHORS 2006-07-27 02:28:51 +00:00
COPYING import from SF CVS 2004-02-23 23:41:20 +00:00
ChangeLog "a" -> ) in ChangeLog 2006-07-27 21:37:22 +00:00
INSTALL update install w/ mikmod info 2004-06-14 21:43:48 +00:00
Makefile.am add sparse-check target to makefiles 2006-07-17 00:15:31 +00:00
README import mp4ff, since its not installed correctly by faad2 2004-03-17 17:19:52 +00:00
TODO ves the spelling nazi strikes again 2006-08-08 18:55:29 +00:00
UPGRADING ves the spelling nazi strikes again 2006-08-08 18:55:29 +00:00
autogen.sh Some more autotools fixes/hacks/workarounds 2006-07-18 09:55:15 +00:00
configure.ac Bumping version to rc3 2006-08-24 12:25:22 +00:00

README

                          Music Player Daemon (MPD)
                        http://www.musicpd.org

A daemon for playing music (mp3, ogg vorbis, and flac).  Music is played
through the server's audio device.  The daemon stores info about all available
music, and this info can be easily searched and retrieved.  Player control, info
retrieval, and playlist management can all be managed remotely.

To install MPD, see INSTALL.

MPD includes 3 libraries in the source. libid3tag and libmad are released under
the GPL and copyrighted by Robert Leslie (http://www.underbit.com/products/mad).
mp4ff is released under the GPL and copyrighted by M. Bakker, Ahead Software AG
(http://www.nero.com) and is distributed as a part of the FAAD2 - Freeware
Advance Audio (AAC) Decoder.

MPD is released under the GNU Public License.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
For the full license, see COPYING.