|
|
1.1 ! root 1: /* @(#)shmsys.c 1.2 */ ! 2: #include <sys/types.h> ! 3: #include <sys/time.h> ! 4: #include <sys/ipc.h> ! 5: #include <sys/shm.h> ! 6: ! 7: #define SHMSYS 154 ! 8: ! 9: #define SHMAT 0 ! 10: #define SHMCTL 1 ! 11: #define SHMDT 2 ! 12: #define SHMGET 3 ! 13: ! 14: shmat(shmid, shmaddr, shmflg) ! 15: int shmid; ! 16: char *shmaddr; ! 17: int shmflg; ! 18: { ! 19: return(syscall(SHMSYS, SHMAT, shmid, shmaddr, shmflg)); ! 20: } ! 21: ! 22: shmctl(shmid, cmd, buf) ! 23: int shmid, cmd; ! 24: struct shmid_ds *buf; ! 25: { ! 26: return(syscall(SHMSYS, SHMCTL, shmid, cmd, buf)); ! 27: } ! 28: ! 29: shmdt(shmaddr) ! 30: char *shmaddr; ! 31: { ! 32: return(syscall(SHMSYS, SHMDT, shmaddr)); ! 33: } ! 34: ! 35: shmget(key, size, shmflg) ! 36: key_t key; ! 37: int size, shmflg; ! 38: { ! 39: return(syscall(SHMSYS, SHMGET, key, size, shmflg)); ! 40: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.