Retrieves the name of the current host.
Item | Description |
---|---|
name | Specifies the address of the buffer in which to place the host name. |
namelen | Specifies the address of a variable in which the length of the host name will be stored. This parameter should be set to the size of the buffer before the kgethostname kernel service is called. |
The kgethostname kernel service returns the standard name of the current host as set by the sethostname subroutine. The returned host name is null-terminated unless insufficient space is provided.
The kgethostname kernel service can be called from either the process or interrupt environment.
Item | Description |
---|---|
0 | Indicates successful completion. |