mirror of
https://github.com/subhobhai943/SUB-OS.git
synced 2026-10-26 00:52:50 +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,23 @@
|
||||
#ifndef _IPC_SHM_H
|
||||
#define _IPC_SHM_H
|
||||
|
||||
#include <ipc/ipc.h>
|
||||
|
||||
#define MAX_SHM_SEGS 16
|
||||
#define SHM_MAX_SIZE 65536
|
||||
|
||||
typedef struct shmid_ds {
|
||||
int shmid;
|
||||
key_t key;
|
||||
size_t size;
|
||||
void* addr;
|
||||
uint32_t nattch;
|
||||
bool in_use;
|
||||
} shmid_ds_t;
|
||||
|
||||
int shmget(key_t key, size_t size, int shmflg);
|
||||
void* shmat(int shmid, const void* shmaddr, int shmflg);
|
||||
int shmdt(const void* shmaddr);
|
||||
int shmctl(int shmid, int cmd, struct shmid_ds* buf);
|
||||
|
||||
#endif // _IPC_SHM_H
|
||||
Reference in new issue
Block a user