The Pedigree Project 0.1
posix-timer-syscalls.h
1/*
2 * Copyright (c) 2026, Pedigree Developers
3 *
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted.
6 */
7
8#ifndef POSIX_TIMER_SYSCALLS_H
9#define POSIX_TIMER_SYSCALLS_H
10
11#include "pedigree/kernel/processor/types.h"
12
13class Process;
14class Thread;
15
16int posix_timer_create(int clock, const void* event, int* timerId);
17int posix_timer_settime(int timerId, int flags, const void* setting, void* previous);
18int posix_timer_gettime(int timerId, void* setting);
19int posix_timer_getoverrun(int timerId);
20int posix_timer_delete(int timerId);
21
22void posix_timer_process_exit(Process* process);
23void posix_timer_thread_exit(Thread* thread);
24void posix_timer_clock_changed();
25
26#endif