The Pedigree Project 0.1
sysv-semaphore-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_SYSV_SEMAPHORE_SYSCALLS_H
9#define POSIX_SYSV_SEMAPHORE_SYSCALLS_H
10
11#include "pedigree/kernel/processor/types.h"
12
13class Thread;
14
15int posix_semget(int key, int count, int flags);
16int posix_semop(int id, const void* operations, size_t count);
17int posix_semtimedop(int id, const void* operations, size_t count, const void* timeout);
18int posix_semctl(int id, int number, int command, uintptr_t argument);
19
20bool posix_sem_clone(Thread* parent, Thread* child, bool shareUndo);
21void posix_sem_thread_exit(Thread* thread);
22
23#endif