M_GETHOSTNAME(3)

NAME
m_gethostname - return hostname of MGR server

SYNOPSIS
#include <mgr/mgr.h>

int m_gethostname(char *name, size_t len);

DESCRIPTION
m_gethostname() stores up to len characters of the hostname of the machine where the MGR server is running in name. This can be used to find out if a program runs in the same file system namespace as the server or not.

RETURN VALUE
On success, 0 is returned.

ERRORS
If a protocol error happened, -1 is returned.

SEE ALSO
mgr(1)