blob: b899a8b4a1796a3bc6397405965f93864fec16d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# domainname
Standalone musl-libc-based Linux port of FreeBSD `domainname` for Project Tick BSD/Linux Distribution.
## Build
```sh
gmake -f GNUmakefile
gmake -f GNUmakefile CC=musl-gcc
```
## Test
```sh
gmake -f GNUmakefile test
gmake -f GNUmakefile test CC=musl-gcc
```
## Notes
- Port strategy is Linux-native syscall/API translation rather than preserving FreeBSD libc assumptions.
- Reading the NIS/YP domain uses `uname(2)` and the Linux UTS namespace `domainname` field.
- Setting the NIS/YP domain uses `setdomainname(2)`.
- Linux supports at most 64 bytes for the UTS domain name. Longer FreeBSD inputs are rejected with an explicit error instead of truncation.
- Mutation tests run only inside a private UTS namespace when `unshare(1)` and the required namespace permissions are available; otherwise they are skipped to keep CI/container runs stable.
|