Skip to content

Conversation

@naoNao89
Copy link

@naoNao89 naoNao89 commented Nov 4, 2025

Core abstraction layer for cross-platform process utilities. Defines common types (Teletype, RunState, CgroupMembership, Namespace) with TryFrom conversions for parsing and validation. Platform module structure with stubs for Linux, macOS, Windows, FreeBSD, and fallback.

Enables future platform-specific implementations while maintaining consistent API across all supported platforms.

#162

Add cross-platform process information abstraction layer:

- Teletype: Terminal type abstraction (TTY, PTS, Serial)
- RunState: Process state abstraction (R, S, D, Z, T, t, X, I)
- Namespace: Linux namespace information (ipc, mnt, net, pid, user, uts)
- CgroupMembership: Cgroup hierarchy and path information

Includes:
- Comprehensive test suite (29 tests)
- Platform stubs for Linux, macOS, Windows, FreeBSD
- Ready for platform-specific implementations
@sylvestre
Copy link
Contributor

you had a new binary called uuproc, right ?

- Implement Linux platform with /proc parsing
- Add UID/GID/EUID/EGID/SUID/SGID support
- Custom stat parser for process names with spaces
- Lazy caching with Rc for efficiency
@naoNao89
Copy link
Author

naoNao89 commented Jan 4, 2026

no any new uuproc command, it's purely an internal library dependency

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants