2024-01-03 03:22:36 +00:00
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
|
2023-09-06 09:32:25 +00:00
|
|
|
mod clone;
|
2024-05-06 05:35:13 +00:00
|
|
|
pub mod credentials;
|
2023-09-06 09:32:25 +00:00
|
|
|
mod exit;
|
2023-11-29 11:43:17 +00:00
|
|
|
mod kill;
|
2022-12-20 06:12:22 +00:00
|
|
|
pub mod posix_thread;
|
2025-01-24 10:06:53 +00:00
|
|
|
#[expect(clippy::module_inception)]
|
2023-09-06 09:32:25 +00:00
|
|
|
mod process;
|
|
|
|
|
mod process_filter;
|
2022-12-20 06:12:22 +00:00
|
|
|
pub mod process_table;
|
2023-09-06 09:32:25 +00:00
|
|
|
mod process_vm;
|
|
|
|
|
mod program_loader;
|
2024-12-11 11:43:20 +00:00
|
|
|
pub mod rlimit;
|
2022-10-31 08:14:41 +00:00
|
|
|
pub mod signal;
|
2023-09-06 09:32:25 +00:00
|
|
|
mod status;
|
2024-05-31 07:48:12 +00:00
|
|
|
pub mod sync;
|
2024-11-23 14:08:38 +00:00
|
|
|
mod task_set;
|
2023-09-01 03:40:22 +00:00
|
|
|
mod term_status;
|
2023-09-06 09:32:25 +00:00
|
|
|
mod wait;
|
|
|
|
|
|
|
|
|
|
pub use clone::{clone_child, CloneArgs, CloneFlags};
|
2024-08-11 13:09:41 +00:00
|
|
|
pub use credentials::{Credentials, Gid, Uid};
|
2023-11-29 11:43:17 +00:00
|
|
|
pub use kill::{kill, kill_all, kill_group, tgkill};
|
2023-11-16 09:21:15 +00:00
|
|
|
pub use process::{
|
2025-04-19 10:24:08 +00:00
|
|
|
enqueue_signal_async, spawn_init_process, ExitCode, JobControl, Pgid, Pid, Process,
|
|
|
|
|
ProcessGroup, Session, Sid, Terminal,
|
2023-11-16 09:21:15 +00:00
|
|
|
};
|
2023-09-06 09:32:25 +00:00
|
|
|
pub use process_filter::ProcessFilter;
|
2025-04-03 06:16:17 +00:00
|
|
|
pub use process_vm::{
|
|
|
|
|
renew_vm_and_map, MAX_ARGV_NUMBER, MAX_ARG_LEN, MAX_ENVP_NUMBER, MAX_ENV_LEN,
|
|
|
|
|
};
|
|
|
|
|
pub use program_loader::{check_executable_file, ProgramToLoad};
|
2023-09-06 09:32:25 +00:00
|
|
|
pub use rlimit::ResourceType;
|
2023-09-01 03:40:22 +00:00
|
|
|
pub use term_status::TermStatus;
|
2023-09-06 09:32:25 +00:00
|
|
|
pub use wait::{wait_child_exit, WaitOptions};
|
2024-05-31 10:11:52 +00:00
|
|
|
|
|
|
|
|
pub(super) fn init() {
|
|
|
|
|
process::init();
|
2024-06-22 13:35:23 +00:00
|
|
|
posix_thread::futex::init();
|
2024-05-31 10:11:52 +00:00
|
|
|
}
|