1. 08 Jan, 2009 2 commits
  2. 04 Jan, 2009 2 commits
  3. 03 Jan, 2009 1 commit
  4. 29 Dec, 2008 2 commits
  5. 02 Dec, 2008 1 commit
  6. 20 Nov, 2008 1 commit
  7. 05 Nov, 2008 4 commits
  8. 31 Oct, 2008 4 commits
  9. 20 Oct, 2008 3 commits
  10. 15 Oct, 2008 3 commits
  11. 29 Sep, 2008 1 commit
    • Eric Wong's avatar
      path: add mpd_basename() function · 8bb96d46
      Eric Wong authored
      This is like basename(3) but with predictable semantics independent
      of C library or build options used.  This is also much more strict
      and does not account for trailing slashes (mpd should never deal with
      trailing slashes on internal functions).
      8bb96d46
  12. 29 Aug, 2008 1 commit
    • Max Kellermann's avatar
      added "length" parameter to validUtf8String() · 43c389b9
      Max Kellermann authored
      At several places, we create temporary copies of non-null-terminated
      strings, just to use them in functions like validUtf8String().  We can
      save this temporary allocation and avoid heap fragmentation if we
      add a length parameter instead of expecting a null-terminated string.
      43c389b9
  13. 05 Feb, 2008 1 commit
  14. 03 Jan, 2008 2 commits
  15. 01 Jan, 2008 1 commit
  16. 28 Dec, 2007 1 commit
    • Eric Wong's avatar
      Merge branches/ew r7104 · b79f6b88
      Eric Wong authored
      thread-safety work in preparation for rewrite to use pthreads
      
      Expect no regressions against trunk (r7078), possibly minor
      performance improvements in update (due to fewer heap
      allocations), but increased stack usage.
      
      Applied the following patches:
      
      * maxpath_str for reentrancy (temporary fix, reverted)
      * path: start working on thread-safe variants of these methods
      * Re-entrancy work on path/character-set conversions
      * directory.c: exploreDirectory() use reentrant functions here
      * directory/update: more use of reentrant functions + cleanups
      * string_toupper: a strdup-less version of strDupToUpper
      * get_song_url: a static-variable-free version of getSongUrl()
      * Use reentrant/thread-safe get_song_url everywhere
      * replace rmp2amp with the reentrant version, rmp2amp_r
      * Get rid of the non-reentrant/non-thread-safe rpp2app, too.
      * buffer2array: assert strdup() returns a usable value in unit tests
      * replace utf8ToFsCharset and fsCharsetToUtf8 with thread-safe variants
      * fix storing playlists w/o absolute paths
      * parent_path(), a reentrant version of parentPath()
      * parentPath => parent_path for reentrancy and thread-safety
      * allow "make test" to automatically run embedded unit tests
      * remove convStrDup() and maxpath_str()
      * use MPD_PATH_MAX everywhere instead of MAXPATHLEN
      * path: get rid of appendSlash, pfx_path and just use pfx_dir
      * get_song_url: fix the ability to play songs in the top-level music_directory
      
      git-svn-id: https://svn.musicpd.org/mpd/trunk@7106 09075e82-0dd4-0310-85a5-a0d7c8717e4f
      b79f6b88
  17. 27 Aug, 2007 1 commit
  18. 26 May, 2007 1 commit
  19. 05 Apr, 2007 1 commit
  20. 18 Feb, 2007 1 commit
  21. 14 Jan, 2007 1 commit
  22. 08 Jan, 2007 3 commits
  23. 14 Oct, 2006 1 commit
  24. 26 Aug, 2006 1 commit
    • Eric Wong's avatar
      Replace strdup and {c,re,m}alloc with x* variants to check for OOM errors · 90847fc8
      Eric Wong authored
      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
      90847fc8