sys_sethostname  [kernel/sys.c]


Changes the host name of the current host.

Arguments

eax 74
ebx Pointer to a string specifying the new hostname.
ecx Size of the string pointed by ebx. Maximum allowed length is 64 bytes.

Return values

If the system call succeeds the return value is 0.
If the system call fails the return value is one of the following errno values:

-EFAULT ebx is an invalid address.
-EINVAL ecx is negative or ecx is larger than the maximum allowed size.
-EPERM The caller did not have the CAP_SYS_ADMIN capability.

Remarks

n/a

Compatibility

n/a