about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1997-04-17 23:29:39 +0000
committerUlrich Drepper <drepper@redhat.com>1997-04-17 23:29:39 +0000
commitdd5aac0f53adf4a2852cf0e677083d1d44e01f74 (patch)
treec0de3fb9b1f7259722d7ddbba67a9150c9f0275e
parent1452bbc1aadcd04161b96d5b203f965d262215bf (diff)
downloadglibc-dd5aac0f53adf4a2852cf0e677083d1d44e01f74.tar.gz
glibc-dd5aac0f53adf4a2852cf0e677083d1d44e01f74.tar.xz
glibc-dd5aac0f53adf4a2852cf0e677083d1d44e01f74.zip
(shmat, shmdt): Correct types.
-rw-r--r--sysvipc/sys/shm.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sysvipc/sys/shm.h b/sysvipc/sys/shm.h
index 9da57284f3..2a1e7c664d 100644
--- a/sysvipc/sys/shm.h
+++ b/sysvipc/sys/shm.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 1996 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, August 1995.
 
@@ -38,7 +38,7 @@
 __BEGIN_DECLS
 
 /* The following System V style IPC functions implement a shared memory
-   facility.  The definition is found in XPG2.  */
+   facility.  The definition is found in XPG4.2.  */
 
 /* Shared memory control operation.  */
 extern int shmctl __P ((int __shmid, int __cmd, struct shmid_ds *__buf));
@@ -47,10 +47,10 @@ extern int shmctl __P ((int __shmid, int __cmd, struct shmid_ds *__buf));
 extern int shmget __P ((key_t __key, int __size, int __shmflg));
 
 /* Attach shared memory segment.  */
-extern char *shmat __P ((int __shmid, char *__shmaddr, int __shmflg));
+extern void *shmat __P ((int __shmid, __const void *__shmaddr, int __shmflg));
 
 /* Detach shared memory segment.  */
-extern int shmdt __P ((char *__shmaddr));
+extern int shmdt __P ((__const void *__shmaddr));
 
 __END_DECLS