IBM

ls_getmyhostname2

New.

Returns the name used throughout LSF to represent the local host.

ls_getmyhostname2 returns the name used throughout LSF to represent the local host.

This function supports the use of both IPv4 and IPv6 protocols. Call this function rather than ls_getmyhostname.

This routine returns a pointer to static data which can be overwritten by subsequent calls.

#include <lsf/lsf.h>
char *ls_getmyhostname2(void)

Parameters:
none 
Data Structures:
none
Define Statements:
none
Returns:
char *:The name used throughout LSF to represent the local host.
Function was successful.

NULL
Function failed.

Errors:
Systems that conform to the Single UNIX specification are not required to detect error conditions for this function.
Equivalent line commands:
none
Files:
none
See also:
ls_getmyhostname


     
Date Modified: 16 Jul 2014

Terms of Use
Copyright © 1994-2014 International Business Machines Corp.
US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.