[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#314350: libc6: sysconf(_SC_HOST_NAME_MAX) always returns -1



Sorry, I meant to attach a testcase to the original report:

#include <stdio.h>
#include <unistd.h>

int main (void)
{
  long hn = sysconf(_SC_HOST_NAME_MAX);
  printf("Hostname max length: %ld\n", hn);
  return 0;
}


Regards,
Roger

-- 
Roger Leigh
                Printing on GNU/Linux?  http://gimp-print.sourceforge.net/
                Debian GNU/Linux        http://www.debian.org/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.



Reply to: