mirror of
https://github.com/subhobhai943/SUB-OS.git
synced 2026-10-25 16:52:29 +00:00
feat: Massive OS expansion with IPC, Sound & TTS, Block layer, FAT32/ext2/sysfs, Signals, Syscalls, Modules, Drivers & 50+ LazyBox applets
This commit is contained in:
1 parent
5662be29f5
commit
d680335f05
64 files changed
+2370
-166
No files matched your search
@@ -0,0 +1,27 @@
|
||||
#ifndef _IPC_SEM_H
|
||||
#define _IPC_SEM_H
|
||||
|
||||
#include <ipc/ipc.h>
|
||||
|
||||
#define MAX_SEM_SETS 16
|
||||
#define MAX_SEMS_PER_SET 16
|
||||
|
||||
struct sembuf {
|
||||
unsigned short sem_num;
|
||||
short sem_op;
|
||||
short sem_flg;
|
||||
};
|
||||
|
||||
typedef struct semid_ds {
|
||||
int semid;
|
||||
key_t key;
|
||||
uint32_t nsems;
|
||||
int values[MAX_SEMS_PER_SET];
|
||||
bool in_use;
|
||||
} semid_ds_t;
|
||||
|
||||
int semget(key_t key, int nsems, int semflg);
|
||||
int semop(int semid, struct sembuf* sops, size_t nsops);
|
||||
int semctl(int semid, int semnum, int cmd, ...);
|
||||
|
||||
#endif // _IPC_SEM_H
|
||||
Reference in new issue
Block a user