close null_handle

This commit is contained in:
Laytan
2025-05-06 20:57:26 +02:00
parent 2bce446d08
commit bf5206968a
5 changed files with 24 additions and 24 deletions
+3 -12
View File
@@ -264,8 +264,10 @@ specific process, even after it has died.
**Note(linux)**: The `handle` will be referring to pidfd.
*/
Process :: struct {
pid: int,
pid: int,
handle: uintptr,
// Implementation specific state/data.
_impl: _Process,
}
Process_Open_Flags :: bit_set[Process_Open_Flag]
@@ -290,21 +292,10 @@ process_open :: proc(pid: int, flags := Process_Open_Flags {}) -> (Process, Erro
return _process_open(pid, flags)
}
/*
OS-specific process attributes.
*/
Process_Attributes :: struct {
sys_attr: _Sys_Process_Attributes,
}
/*
The description of how a process should be created.
*/
Process_Desc :: struct {
// OS-specific attributes.
sys_attr: Process_Attributes,
// The working directory of the process. If the string has length 0, the
// working directory is assumed to be the current working directory of the
// current process.