summaryrefslogtreecommitdiff
path: root/corebinutils/chflags/README.md
blob: 3b25c556ff1c1bba411b659849ad59ab20aedede (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
# chflags

Standalone musl-libc-based Linux port of FreeBSD `chflags` 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 minimum-diff: the original traversal and CLI flow stay in `chflags.c`.
- `fts(3)` is provided locally in this project because musl does not ship `<fts.h>`.
- Linux flag handling is implemented with `FS_IOC_GETFLAGS` and `FS_IOC_SETFLAGS`.
- Only the Linux-mappable subset of FreeBSD flag names is supported in this phase.