Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
46 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
From: Tias Guns <tias@ulyssis.org> | ||
Date: Sun, 5 Aug 2012 15:39:30 +0200 | ||
Subject: [PATCH] android syscalls: shmdt shmat sembuf | ||
|
||
Signed-off-by: Tias Guns <tias@ulyssis.org> | ||
--- | ||
libbb/missing_syscalls.c | 16 ++++++++++++++++ | ||
1 file changed, 16 insertions(+) | ||
|
||
diff --git a/libbb/missing_syscalls.c b/libbb/missing_syscalls.c | ||
index ac75829..474accb 100644 | ||
--- a/libbb/missing_syscalls.c | ||
+++ b/libbb/missing_syscalls.c | ||
@@ -55,6 +55,16 @@ int shmget(key_t key, size_t size, int shmflg) | ||
return syscall(__NR_shmget, key, size, shmflg); | ||
} | ||
|
||
+int shmdt(const void *shmaddr) | ||
+{ | ||
+ return syscall(__NR_shmdt, shmaddr); | ||
+} | ||
+ | ||
+void *shmat(int shmid, const void *shmaddr, int shmflg) | ||
+{ | ||
+ return (void *)syscall(__NR_shmat, shmid, shmaddr, shmflg); | ||
+} | ||
+ | ||
int msgget(key_t key, int msgflg) | ||
{ | ||
return syscall(__NR_msgget, key, msgflg); | ||
@@ -77,4 +87,10 @@ int shmctl(int shmid, int cmd, struct shmid_ds *buf) | ||
{ | ||
return syscall(__NR_shmctl, shmid, cmd, buf); | ||
} | ||
+ | ||
+struct sembuf; /* #include <linux/sem.h> */ | ||
+int semop(int semid, struct sembuf *sops, unsigned nsops) | ||
+{ | ||
+ return syscall(__NR_semop, semid, sops, nsops); | ||
+} | ||
#endif | ||
-- | ||
1.7.10.4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters