summaryrefslogtreecommitdiff
path: root/sysvipc
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-10-09 21:56:43 +0000
committerUlrich Drepper <drepper@redhat.com>1999-10-09 21:56:43 +0000
commitc1422e5b7cdb4400f934c91bcefa3a1a96d789fb (patch)
tree7f8981b86c4ce4b5bb899f690eeb03d6645826a5 /sysvipc
parenta4a1492eb94de4f5c5ec84a5898e994fca5f317b (diff)
downloadglibc-c1422e5b7cdb4400f934c91bcefa3a1a96d789fb.tar.gz
Update.
Patch by khendricks@ivey.uwo.ca [libc/1382].
Diffstat (limited to 'sysvipc')
-rw-r--r--sysvipc/sys/ipc.h2
-rw-r--r--sysvipc/sys/msg.h12
-rw-r--r--sysvipc/sys/sem.h7
-rw-r--r--sysvipc/sys/shm.h11
4 files changed, 16 insertions, 16 deletions
diff --git a/sysvipc/sys/ipc.h b/sysvipc/sys/ipc.h
index 0ec6ed16e0..16642f4335 100644
--- a/sysvipc/sys/ipc.h
+++ b/sysvipc/sys/ipc.h
@@ -51,7 +51,7 @@ typedef __key_t key_t;
__BEGIN_DECLS
/* Generates key for System V style IPC. */
-extern key_t ftok __P ((__const char *__pathname, int __proj_id));
+extern key_t ftok (__const char *__pathname, int __proj_id) __THROW;
__END_DECLS
diff --git a/sysvipc/sys/msg.h b/sysvipc/sys/msg.h
index 5f8f761cca..2a726dc654 100644
--- a/sysvipc/sys/msg.h
+++ b/sysvipc/sys/msg.h
@@ -42,18 +42,18 @@ struct msgbuf
__BEGIN_DECLS
/* Message queue control operation. */
-extern int msgctl __P ((int __msqid, int __cmd, struct msqid_ds *__buf));
+extern int msgctl (int __msqid, int __cmd, struct msqid_ds *__buf) __THROW;
/* Get messages queue. */
-extern int msgget __P ((key_t __key, int __msgflg));
+extern int msgget (key_t __key, int __msgflg) __THROW;
/* Receive message from message queue. */
-extern int msgrcv __P ((int __msqid, void *__msgp, size_t __msgsz,
- long int __msgtyp, int __msgflg));
+extern int msgrcv (int __msqid, void *__msgp, size_t __msgsz,
+ long int __msgtyp, int __msgflg) __THROW;
/* Send message to message queue. */
-extern int msgsnd __P ((int __msqid, __const void *__msgp, size_t __msgsz,
- int __msgflg));
+extern int msgsnd (int __msqid, __const void *__msgp, size_t __msgsz,
+ int __msgflg) __THROW;
__END_DECLS
diff --git a/sysvipc/sys/sem.h b/sysvipc/sys/sem.h
index b44194520e..9657a14bfe 100644
--- a/sysvipc/sys/sem.h
+++ b/sysvipc/sys/sem.h
@@ -45,14 +45,13 @@ struct sembuf
__BEGIN_DECLS
/* Semaphore control operation. */
-extern int semctl __P ((int __semid, int __semnum, int __cmd, ...));
+extern int semctl (int __semid, int __semnum, int __cmd, ...) __THROW;
/* Get semaphore. */
-extern int semget __P ((key_t __key, int __nsems, int __semflg));
+extern int semget (key_t __key, int __nsems, int __semflg) __THROW;
/* Operate on semaphore. */
-extern int semop __P ((int __semid, struct sembuf *__sops,
- size_t __nsops));
+extern int semop (int __semid, struct sembuf *__sops, size_t __nsops) __THROW;
__END_DECLS
diff --git a/sysvipc/sys/shm.h b/sysvipc/sys/shm.h
index 6dce0a8155..4f30ad8f92 100644
--- a/sysvipc/sys/shm.h
+++ b/sysvipc/sys/shm.h
@@ -33,7 +33,7 @@
/* Segment low boundary address multiple. */
#define SHMLBA (__getpagesize ())
-extern int __getpagesize __P ((void));
+extern int __getpagesize (void) __THROW;
/* The following System V style IPC functions implement a shared memory
@@ -42,16 +42,17 @@ extern int __getpagesize __P ((void));
__BEGIN_DECLS
/* Shared memory control operation. */
-extern int shmctl __P ((int __shmid, int __cmd, struct shmid_ds *__buf));
+extern int shmctl (int __shmid, int __cmd, struct shmid_ds *__buf) __THROW;
/* Get shared memory segment. */
-extern int shmget __P ((key_t __key, size_t __size, int __shmflg));
+extern int shmget (key_t __key, size_t __size, int __shmflg) __THROW;
/* Attach shared memory segment. */
-extern void *shmat __P ((int __shmid, __const void *__shmaddr, int __shmflg));
+extern void *shmat (int __shmid, __const void *__shmaddr, int __shmflg)
+ __THROW;
/* Detach shared memory segment. */
-extern int shmdt __P ((__const void *__shmaddr));
+extern int shmdt (__const void *__shmaddr) __THROW;
__END_DECLS