1. 08 Oct, 2008 1 commit
  2. 06 Sep, 2008 1 commit
  3. 28 Aug, 2008 1 commit
  4. 12 Apr, 2008 1 commit
  5. 26 Mar, 2008 1 commit
  6. 03 Jan, 2008 1 commit
    • Eric Wong's avatar
      Cleanup #includes of standard system headers and put them in one place · cb8f1af3
      Eric Wong authored
      This will make refactoring features easier, especially now that
      pthreads support and larger refactorings are on the horizon.
      
      Hopefully, this will make porting to other platforms (even
      non-UNIX-like ones for masochists) easier, too.
      
      os_compat.h will house all the #includes for system headers
      considered to be the "core" of MPD.  Headers for optional
      features will be left to individual source files.
      
      git-svn-id: https://svn.musicpd.org/mpd/trunk@7130 09075e82-0dd4-0310-85a5-a0d7c8717e4f
      cb8f1af3
  7. 05 Sep, 2007 1 commit
  8. 04 Sep, 2007 2 commits
  9. 02 Sep, 2007 1 commit
    • Eric Wong's avatar
      Fix endless loop when mpd is launched from a non-interactive shell. · bbe8b0ef
      Eric Wong authored
      Thanks to _noth_ for the patch, this fixes Mantis bug #1534
      
      _noth_ wrote:
      > When MPD is launched from a non-interactive shell, it enters an endless
      > loop, filling up its error log file with "error accept()'ing" messages.
      > This is caused by the fact that stdin is already closed when mpd starts
      > up.  listenOnPort() opens up the first of its sockets as fd 0 (the first
      > empty fd table position). Then, setup_log_output()->redirect_stdin()
      > overwrites fd0 (fd=open("/dev/null",...); dup2(fd, STDIN_FILENO);)
      > without checking if it corresponds to the actual standard input (or if
      > it is open in the first place).  This means that listenSockets[0].fd now
      > is a fd for /dev/null, thus doIOForInterfaces()->getConnections() can't
      > accept(2) on it and fails with the above error. The attached patch fixes
      > this for me.
      
      git-svn-id: https://svn.musicpd.org/mpd/trunk@6843 09075e82-0dd4-0310-85a5-a0d7c8717e4f
      bbe8b0ef
  10. 28 Aug, 2007 1 commit
  11. 29 Jun, 2007 1 commit
  12. 05 Apr, 2007 1 commit
  13. 19 Feb, 2007 1 commit
  14. 18 Feb, 2007 2 commits
  15. 14 Jan, 2007 1 commit
  16. 08 Jan, 2007 3 commits
  17. 03 Oct, 2006 1 commit
  18. 22 Aug, 2006 1 commit
  19. 12 Aug, 2006 1 commit
  20. 03 Aug, 2006 2 commits
  21. 01 Aug, 2006 1 commit
    • Eric Wong's avatar
      logging cleanups · 89073cfb
      Eric Wong authored
      * Moved all logging-related stuff into log.c
      (and not myfprintf.c)
      
      * ISO C90-compliant strftime usage:
      %e and %R replaced with %d and %H:%M respectively
      
      * Got rid of variadic macros since some old-school compilers
      don't like them
      
      * compiling with -DNDEBUG disables the DEBUG() macro
      
      git-svn-id: https://svn.musicpd.org/mpd/trunk@4512 09075e82-0dd4-0310-85a5-a0d7c8717e4f
      89073cfb
  22. 30 Jul, 2006 1 commit
  23. 20 Jul, 2006 1 commit
  24. 17 Jul, 2006 1 commit
    • Eric Wong's avatar
      sparse: ANSI-fy function declarations · a234780a
      Eric Wong authored
      These are just warnings from sparse, but it makes the output
      easier to read.  I ran this through a quick perl script, but
      of course verified the output by looking at the diff and making
      sure the thing still compiles.
      
      here's the quick perl script I wrote to generate this patch:
      ----------- 8< -----------
      use Tie::File;
      defined(my $pid = open my $fh, '-|') or die $!;
      if (!$pid) {
      open STDERR, '>&STDOUT' or die $!;
      exec 'sparse', @ARGV or die $!;
      }
      my $na = 'warning: non-ANSI function declaration of function';
      while (<$fh>) {
      print STDERR $_;
      if (/^(.+?\.[ch]):(\d+):(\d+): $na '(\w+)'/o) {
      my ($f, $l, $pos, $func) = ($1, $2, $3, $4);
      $l--;
      tie my @x, 'Tie::File', $f or die "$!: $f";
      print '-', $x[$l], "\n";
      $x[$l] =~ s/\b($func\s*)\(\s*\)/$1(void)/;
      print '+', $x[$l], "\n";
      untie @x;
      }
      }
      
      git-svn-id: https://svn.musicpd.org/mpd/trunk@4378 09075e82-0dd4-0310-85a5-a0d7c8717e4f
      a234780a
  25. 14 Jul, 2006 1 commit
  26. 13 Jul, 2006 1 commit
  27. 12 Mar, 2005 1 commit
  28. 28 Oct, 2004 1 commit
  29. 12 Jun, 2004 1 commit
  30. 14 Apr, 2004 1 commit
  31. 23 Feb, 2004 1 commit