Skip to content
Snippets Groups Projects
  1. Feb 16, 2017
  2. Jan 11, 2017
  3. Aug 31, 2016
    • Birte Kristina Friesel's avatar
    • Niclas Zeising's avatar
      Only use sysconf() if HOST_NAME_MAX is undefined · 5ab630b5
      Niclas Zeising authored
      On some systsems sysconf() can return a very large value, unsuitable for
      use with malloc().  Only use sysconf() if HOST_NAME_MAX isn't avalable.
      5ab630b5
    • Niclas Zeising's avatar
      Fix build on FreeBSD. · 873c84f0
      Niclas Zeising authored
      FreeBSD lacks the constant HOST_NAME_MAX, instead using sysconf(3) to
      find out the value of the maximum host name length at run time.  Patch
      to use this instead of HOST_NAME_MAX.
      This brings with it the need to use malloc instead of using a statically
      sized buffer for the host name, since the size of the buffer cannot be
      known at run time.  Errors from sysconf or malloc just means that the
      entire block of code is skipped over (the same way it's skipped if the
      call to gethostname() fails), rather than returning any kind of error to
      the caller or logging an error message somewhere.
      873c84f0
  4. Aug 28, 2016
  5. Aug 27, 2016
  6. Apr 24, 2016
  7. Apr 16, 2016
  8. Apr 14, 2016
  9. Apr 13, 2016
  10. Nov 15, 2015
  11. Nov 14, 2015
  12. Jul 23, 2015
  13. May 23, 2015
  14. Jan 09, 2015
  15. Apr 26, 2014
  16. Jul 29, 2013
  17. Feb 24, 2013
  18. Feb 14, 2013
  19. Oct 23, 2012
  20. Mar 28, 2012
  21. Feb 12, 2012
  22. Feb 02, 2012
  23. Jan 27, 2012
  24. Oct 31, 2011
  25. Oct 21, 2011
  26. Sep 13, 2011
  27. Sep 02, 2011
  28. Aug 30, 2011
  29. Aug 29, 2011
  30. Jul 20, 2011
  31. Jun 07, 2011
  32. Jun 06, 2011
  33. May 19, 2011
  34. May 10, 2011
Loading