GNU Info

Info Node: (g77-295.info)HostNm Intrinsic (subroutine)

(g77-295.info)HostNm Intrinsic (subroutine)


Next: HostNm Intrinsic (function) Prev: GMTime Intrinsic Up: Table of Intrinsic Functions
Enter node , (file) or (file)node

HostNm Intrinsic (subroutine)
.............................

     CALL HostNm(NAME, STATUS)

NAME: `CHARACTER'; scalar; INTENT(OUT).

STATUS: `INTEGER(KIND=1)'; OPTIONAL; scalar; INTENT(OUT).

Intrinsic groups: `unix'.

Description:

   Fills NAME with the system's host name returned by `gethostname(2)'.
If the STATUS argument is supplied, it contains 0 on success or a
non-zero error code upon return (`ENOSYS' if the system does not
provide `gethostname(2)').

   Some non-GNU implementations of Fortran provide this intrinsic as
only a function, not as a subroutine, or do not support the (optional)
STATUS argument.

   On some systems (specifically SCO) it might be necessary to link the
"socket" library if you call this routine.  Typically this means adding
`-lg2c -lsocket -lm' to the `g77' command line when linking the program.

   For information on other intrinsics with the same name: Note: HostNm
Intrinsic (function).


automatically generated by info2www version 1.2.2.9