sys_setdomainname  [kernel/sys.c]


Changes the domain name of the current processor.

Arguments

eax 121
ebx Pointer to a null-terminated string specifying the new domain name.
ecx Size of the string pointed by ebx.

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 pointed outside of user address space.
-EINVAL ecx was negative or too large.
-EPERM The caller is unprivileged (does not have the CAP_SYS_ADMIN capability).

Remarks

n/a

Compatibility

n/a