summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorManfred Spraul <manfred@colorfullife.com>2004-02-22 21:28:40 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-02-22 21:28:40 -0800
commit5da0c2c3b175c1217e5e4890c898628ca2a6bd22 (patch)
treeeface0ee25a8abb40d03ba10d27f9dba54502aae /include/linux
parent8b7667947a780c03424c2370a43a893f5d020d47 (diff)
[PATCH] rename shmat to make it clear it isn't a system call entrypoint
This renames sys_shmat to do_shmat. Additionally, I've replaced the cond_syscall with a conditional inline function. It touches all archs - only i386 is tested.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/shm.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/shm.h b/include/linux/shm.h
index dd0cafabdc1c..69698d344053 100644
--- a/include/linux/shm.h
+++ b/include/linux/shm.h
@@ -90,7 +90,14 @@ struct shmid_kernel /* private to the kernel */
#define SHM_LOCKED 02000 /* segment will not be swapped */
#define SHM_HUGETLB 04000 /* segment will use huge TLB pages */
-long sys_shmat (int shmid, char __user *shmaddr, int shmflg, unsigned long *addr);
+#ifdef CONFIG_SYSVIPC
+long do_shmat (int shmid, char __user *shmaddr, int shmflg, unsigned long *addr);
+#else
+inline long do_shmat (int shmid, char __user *shmaddr, int shmflg, unsigned long *addr)
+{
+ return -ENOSYS;
+}
+#endif
asmlinkage long sys_shmget (key_t key, size_t size, int flag);
asmlinkage long sys_shmdt (char __user *shmaddr);
asmlinkage long sys_shmctl (int shmid, int cmd, struct shmid_ds __user *buf);