Files
Espresso/lib/processes.c

21 lines
275 B
C
Raw Normal View History

2025-06-27 14:48:06 -05:00
2025-05-28 14:41:02 -05:00
#include <processes.h>
2026-03-20 16:57:08 -05:00
pid_t next_id = 1; /* start at 1 */
2025-06-27 14:48:06 -05:00
2026-03-20 16:57:08 -05:00
pid_t make_process(char* name, char* group, elf_executable_t* exe)
2025-06-27 14:48:06 -05:00
{
2026-03-20 16:57:08 -05:00
pid_t ret = (pid_t) 0;
2025-06-27 14:48:06 -05:00
if (!name || !group || !exe)
{
2026-03-20 16:57:08 -05:00
return ret; /* ret is already zero */
2025-06-27 14:48:06 -05:00
}
2026-03-20 16:57:08 -05:00
next_id++;
return ret;
2025-06-27 14:48:06 -05:00
}