summaryrefslogtreecommitdiffstats
path: root/sys/sys/shm.h
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2003-01-25 21:33:05 +0000
committeralfred <alfred@FreeBSD.org>2003-01-25 21:33:05 +0000
commit28e8e60e36c2d950d4ebf7b406f2401ccb63c0c1 (patch)
tree565a9f0b99f068635c74c8de66bf023c628f73a5 /sys/sys/shm.h
parent918ae76f60cdf7c75ca92bd430114118502aa7fe (diff)
downloadFreeBSD-src-28e8e60e36c2d950d4ebf7b406f2401ccb63c0c1.zip
FreeBSD-src-28e8e60e36c2d950d4ebf7b406f2401ccb63c0c1.tar.gz
Bring shm functions closer the the opengroup standards.
PR: 47469 Submitted by: Craig Rodrigues <rodrigc@attbi.com>
Diffstat (limited to 'sys/sys/shm.h')
-rw-r--r--sys/sys/shm.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/sys/shm.h b/sys/sys/shm.h
index 6d66384..a56e40d 100644
--- a/sys/sys/shm.h
+++ b/sys/sys/shm.h
@@ -105,12 +105,17 @@ void shmfork(struct proc *, struct proc *);
#include <sys/cdefs.h>
+#ifndef _SIZE_T_DECLARED
+typedef __size_t size_t;
+#define _SIZE_T_DECLARED
+#endif
+
__BEGIN_DECLS
int shmsys(int, ...);
-void *shmat(int, void *, int);
-int shmget(key_t, int, int);
+void *shmat(int, const void *, int);
+int shmget(key_t, size_t, int);
int shmctl(int, int, struct shmid_ds *);
-int shmdt(void *);
+int shmdt(const void *);
__END_DECLS
#endif /* !_KERNEL */
OpenPOWER on IntegriCloud