aboutsummaryrefslogtreecommitdiff
path: root/sysvipc/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sysvipc/sys')
-rw-r--r--sysvipc/sys/ipc.h54
-rw-r--r--sysvipc/sys/msg.h82
-rw-r--r--sysvipc/sys/sem.h67
-rw-r--r--sysvipc/sys/shm.h63
4 files changed, 0 insertions, 266 deletions
diff --git a/sysvipc/sys/ipc.h b/sysvipc/sys/ipc.h
deleted file mode 100644
index 9d724a8884..0000000000
--- a/sysvipc/sys/ipc.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/* Copyright (C) 1995-2017 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_IPC_H
-#define _SYS_IPC_H 1
-
-#include <features.h>
-
-/* Get system dependent definition of `struct ipc_perm' and more. */
-#include <bits/ipctypes.h>
-#include <bits/ipc.h>
-
-#ifndef __uid_t_defined
-typedef __uid_t uid_t;
-# define __uid_t_defined
-#endif
-
-#ifndef __gid_t_defined
-typedef __gid_t gid_t;
-# define __gid_t_defined
-#endif
-
-#ifndef __mode_t_defined
-typedef __mode_t mode_t;
-# define __mode_t_defined
-#endif
-
-#ifndef __key_t_defined
-typedef __key_t key_t;
-# define __key_t_defined
-#endif
-
-__BEGIN_DECLS
-
-/* Generates key for System V style IPC. */
-extern key_t ftok (const char *__pathname, int __proj_id) __THROW;
-
-__END_DECLS
-
-#endif /* sys/ipc.h */
diff --git a/sysvipc/sys/msg.h b/sysvipc/sys/msg.h
deleted file mode 100644
index 3610050014..0000000000
--- a/sysvipc/sys/msg.h
+++ /dev/null
@@ -1,82 +0,0 @@
-/* Copyright (C) 1995-2017 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_MSG_H
-#define _SYS_MSG_H
-
-#include <features.h>
-
-#define __need_size_t
-#include <stddef.h>
-
-/* Get common definition of System V style IPC. */
-#include <sys/ipc.h>
-
-/* Get system dependent definition of `struct msqid_ds' and more. */
-#include <bits/msq.h>
-
-/* Define types required by the standard. */
-#include <bits/types/time_t.h>
-
-#ifndef __pid_t_defined
-typedef __pid_t pid_t;
-# define __pid_t_defined
-#endif
-
-#ifndef __ssize_t_defined
-typedef __ssize_t ssize_t;
-# define __ssize_t_defined
-#endif
-
-/* The following System V style IPC functions implement a message queue
- system. The definition is found in XPG2. */
-
-#ifdef __USE_GNU
-/* Template for struct to be used as argument for `msgsnd' and `msgrcv'. */
-struct msgbuf
- {
- __syscall_slong_t mtype; /* type of received/sent message */
- char mtext[1]; /* text of the message */
- };
-#endif
-
-
-__BEGIN_DECLS
-
-/* Message queue control operation. */
-extern int msgctl (int __msqid, int __cmd, struct msqid_ds *__buf) __THROW;
-
-/* Get messages queue. */
-extern int msgget (key_t __key, int __msgflg) __THROW;
-
-/* Receive message from message queue.
-
- This function is a cancellation point and therefore not marked with
- __THROW. */
-extern ssize_t msgrcv (int __msqid, void *__msgp, size_t __msgsz,
- long int __msgtyp, int __msgflg);
-
-/* Send message to message queue.
-
- This function is a cancellation point and therefore not marked with
- __THROW. */
-extern int msgsnd (int __msqid, const void *__msgp, size_t __msgsz,
- int __msgflg);
-
-__END_DECLS
-
-#endif /* sys/msg.h */
diff --git a/sysvipc/sys/sem.h b/sysvipc/sys/sem.h
deleted file mode 100644
index 1fa58c5f09..0000000000
--- a/sysvipc/sys/sem.h
+++ /dev/null
@@ -1,67 +0,0 @@
-/* Copyright (C) 1995-2017 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SEM_H
-#define _SYS_SEM_H 1
-
-#include <features.h>
-
-#define __need_size_t
-#include <stddef.h>
-
-/* Get common definition of System V style IPC. */
-#include <sys/ipc.h>
-
-/* Get system dependent definition of `struct semid_ds' and more. */
-#include <bits/sem.h>
-
-#ifdef __USE_GNU
-# include <bits/types/struct_timespec.h>
-#endif
-
-/* The following System V style IPC functions implement a semaphore
- handling. The definition is found in XPG2. */
-
-/* Structure used for argument to `semop' to describe operations. */
-struct sembuf
-{
- unsigned short int sem_num; /* semaphore number */
- short int sem_op; /* semaphore operation */
- short int sem_flg; /* operation flag */
-};
-
-
-__BEGIN_DECLS
-
-/* Semaphore control operation. */
-extern int semctl (int __semid, int __semnum, int __cmd, ...) __THROW;
-
-/* Get semaphore. */
-extern int semget (key_t __key, int __nsems, int __semflg) __THROW;
-
-/* Operate on semaphore. */
-extern int semop (int __semid, struct sembuf *__sops, size_t __nsops) __THROW;
-
-#ifdef __USE_GNU
-/* Operate on semaphore with timeout. */
-extern int semtimedop (int __semid, struct sembuf *__sops, size_t __nsops,
- const struct timespec *__timeout) __THROW;
-#endif
-
-__END_DECLS
-
-#endif /* sys/sem.h */
diff --git a/sysvipc/sys/shm.h b/sysvipc/sys/shm.h
deleted file mode 100644
index c83fd4c3d5..0000000000
--- a/sysvipc/sys/shm.h
+++ /dev/null
@@ -1,63 +0,0 @@
-/* Copyright (C) 1995-2017 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SHM_H
-#define _SYS_SHM_H 1
-
-#include <features.h>
-
-#define __need_size_t
-#include <stddef.h>
-
-/* Get common definition of System V style IPC. */
-#include <sys/ipc.h>
-
-/* Get system dependent definition of `struct shmid_ds' and more. */
-#include <bits/shm.h>
-
-/* Define types required by the standard. */
-#include <bits/types/time_t.h>
-
-#ifdef __USE_XOPEN
-# ifndef __pid_t_defined
-typedef __pid_t pid_t;
-# define __pid_t_defined
-# endif
-#endif /* X/Open */
-
-
-__BEGIN_DECLS
-
-/* The following System V style IPC functions implement a shared memory
- facility. The definition is found in XPG4.2. */
-
-/* Shared memory control operation. */
-extern int shmctl (int __shmid, int __cmd, struct shmid_ds *__buf) __THROW;
-
-/* Get shared memory segment. */
-extern int shmget (key_t __key, size_t __size, int __shmflg) __THROW;
-
-/* Attach shared memory segment. */
-extern void *shmat (int __shmid, const void *__shmaddr, int __shmflg)
- __THROW;
-
-/* Detach shared memory segment. */
-extern int shmdt (const void *__shmaddr) __THROW;
-
-__END_DECLS
-
-#endif /* sys/shm.h */