/* 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.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
#ifndef _SYS_IPC_H
#define _SYS_IPC_H 1
-#include <sys/cdefs.h>
+#include <features.h>
/* Get system dependent definition of `struct ipc_perm' and more. */
#include <bits/ipc.h>
-/* 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.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
/* Get system dependent definition of `struct msqid_ds' and more. */
#include <bits/msq.h>
-__BEGIN_DECLS
-
/* The following System V style IPC functions implement a message queue
system. The definition is found in XPG2. */
/* Template for struct to be used as argument for `msgsnd' and `msgrcv'. */
struct msgbuf
-{
- long int mtype; /* type of received/sent message */
- char mtext[1]; /* text of the message */
-};
+ {
+ long int mtype; /* type of received/sent message */
+ char mtext[1]; /* text of the message */
+ };
+__BEGIN_DECLS
+
/* Message queue control operation. */
extern int msgctl __P ((int __msqid, int __cmd, struct msqid_ds *__buf));
-/* 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.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
/* Get system dependent definition of `struct semid_ds' and more. */
#include <bits/sem.h>
-__BEGIN_DECLS
-
/* The following System V style IPC functions implement a semaphore
handling. The definition is found in XPG2. */
};
+__BEGIN_DECLS
+
/* Semaphore control operation. */
extern int semctl __P ((int __semid, int __semnum, int __cmd,
union semun __arg));
/* 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.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
/* Segment low boundary address multiple. */
#define SHMLBA getpagesize ()
-__BEGIN_DECLS
-
/* The following System V style IPC functions implement a shared memory
facility. The definition is found in XPG4.2. */
+__BEGIN_DECLS
+
/* Shared memory control operation. */
extern int shmctl __P ((int __shmid, int __cmd, struct shmid_ds *__buf));