search for: _sc_host_name_max

Displaying 2 results from an estimated 2 matches for "_sc_host_name_max".

2002 Apr 10
1
openssh-3.1p1 on GNU/Hurd
...= 0; /* record remote hostname or ip */ -u_int utmp_len = MAXHOSTNAMELEN; +u_int utmp_len = 0; /* options.max_startup sized array of fd ints */ int *startup_pipes = NULL; @@ -603,6 +603,13 @@ /* Save argv. */ saved_argc = ac; saved_argv = av; + + /* find max hostname length */ +#ifdef _SC_HOST_NAME_MAX + utmp_len = sysconf(_SC_HOST_NAME_MAX); +#elif MAXHOSTNAMELEN + utmp_len = MAXHOSTNAMELEN; +#endif /* Initialize configuration options to their default values. */ initialize_server_options(&options); diff -urN openssh-3.1p1.old/sshlogin.c openssh-3.1p1/sshlogin.c --- openssh-3.1p1.old/ss...
2001 Jul 23
1
forwarded message from mouring@etoh.eviladmin.org
...a hostname is unlimited on the Hurd, we do not define MAXHOSTNAMELEN now, and will not define HOST_NAME_MAX when the new POSIX draft (or any later draft with the above text) becomes a standard. According to the current draft, you will be able to query a possible run time limit with sysconf() and _SC_HOST_NAME_MAX, but again, the Hurd will just return -1 on this call, indicating that there is no limit. > Until such time they will have to maintain their own version. Or come up > with a better way of handling their inconsistance behavior. Please reconsider. I feel that a fork of the software is compl...