Displaying 6 results from an estimated 6 matches for "host_name_max".
2015 Feb 24
4
Call for testing: OpenSSH 6.8
On Tue, 24 Feb 2015, Tom G. Christensen wrote:
> I've switched to HEAD in the git repo and it now builds on Solaris
> 2.6, 7, 8 and 9 but the testsuite still cannot be built due to the
> missing <err.h>.
>
> I noticed one of the changes was about HOST_NAME_MAX but I don't
> think that change addresses the real issue on at least these old
> Solaris systems. It looks to me like the fall back in defines.h
> was not activated because Solaris has MAXHOSTNAMELEN in <netdb.h>
> which has not been included when defines.h tries to find a fal...
2015 Feb 23
2
Call for testing: OpenSSH 6.8
On Mon, 23 Feb 2015, Tom G. Christensen wrote:
> On 23/02/15 20:31, Damien Miller wrote:
> > Thanks - I just committed a fix:
> >
> <snip patch>
>
> Thanks, unfortunately you missed the one in packet.h.
>
> In file included from ssh_api.h:31:0,
> from ssh_api.c:21:
> packet.h:38:23: fatal error: sys/queue.h: No such file or directory
2001 Jul 23
1
forwarded message from mouring@etoh.eviladmin.org
...oming POSIX draft which is supposed to cover also the area that
SUSv2 does, does fix this. Again, the upcoming POSIX draft as reviewed by
the Austin Group (I have draft6 here), does not define MAXHOSTNAMELEN (just
as it doesn't define MAXPATHLEN), but it does say something about
the new symbol HOST_NAME_MAX:
"Runtime Invariant Values (Possibly Indeterminate)
A definition of one of the symbolic names in the following list shall be
omitted from <limits.h> on specific implementations where the corresponding
value is equal to or greater than the stated minimum, but is unspecified.
{HOST_N...
2010 Apr 15
1
[PATCH matahari] Refactored the Host agent.
...me_error("Unable to get HAL Context Structure.");
+
+ try {
+ NICWrapper::fillNICInfo(this->nics, agent, hal_ctx);
+
+ // Host UUID
+ char *uuid_c = get_uuid(hal_ctx);
+ string uuid(uuid_c);
+ management_object->set_uuid(uuid);
+
+ // Hostname
+ char hostname_c[HOST_NAME_MAX];
+ ret = gethostname(hostname_c, sizeof(hostname_c));
+ if (ret != 0)
+ throw runtime_error("Unable to get hostname");
+ string hostname(hostname_c);
+ management_object->set_hostname(hostname);
+
+ // Hypervisor, arch, memory
+ management_object->set_memory(...
2007 Nov 08
2
DO NOT REPLY [Bug 5064] New: compile error - SCO 5.0.6a
...s function)
lib/getaddrinfo.c:59: (Each undeclared identifier is reported only once
lib/getaddrinfo.c:59: for each function it appears in.)
lib/getaddrinfo.c:62: warning: unreachable code at beginning of switch
statement
lib/getaddrinfo.c: In function `get_my_canon_name':
lib/getaddrinfo.c:94: `HOST_NAME_MAX' undeclared (first use in this function)
lib/getaddrinfo.c:94: size of array `name' has non-integer type
lib/getaddrinfo.c: In function `get_canon_name_from_addr':
lib/getaddrinfo.c:109: warning: passing arg 1 of `gethostbyaddr' from
incompatible pointer type
lib/getaddrinfo.c: At t...
2014 May 06
6
[Bug 2239] New: ssh-keygen cannot handle Linux with 64 char long hostname
...6.32-431.3.1.el6 kernel) and openssh-5.3p1-94.el6.x86_64
OEL 6.5 (2.6.32-431.3.1.el6 kernel) and OpenSSH_6.6p1
Fedora 20 (3.15.0-rc2+ kernel) and openssh-6.4p1-3.fc20.x86_64
The above root cause seems like a intentional design decision in Linux
kernel. Unlike OpenBSD where MAXHOSTNAMELEN is _POSIX_HOST_NAME_MAX +
trailing zero
/usr/include/limits.h:#define _POSIX_HOST_NAME_MAX 255
/usr/include/sys/param.h:#define MAXHOSTNAMELEN 256 /* max
hostname size */
in Linux they are same and is up to program to reserve enough space
/usr/include/bits/local_lim.h:#define HOST_NAME_MAX 6...