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
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.

1 participant