From c1422e5b7cdb4400f934c91bcefa3a1a96d789fb Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 9 Oct 1999 21:56:43 +0000 Subject: Update. Patch by khendricks@ivey.uwo.ca [libc/1382]. --- sysvipc/sys/ipc.h | 2 +- sysvipc/sys/msg.h | 12 ++++++------ sysvipc/sys/sem.h | 7 +++---- sysvipc/sys/shm.h | 11 ++++++----- 4 files changed, 16 insertions(+), 16 deletions(-) (limited to 'sysvipc') 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 -- cgit 1.4.1