Back to index

glibc  2.9
ipc_priv.h
Go to the documentation of this file.
00001 /* Copyright (C) 1995-1999, 2000, 2003 Free Software Foundation, Inc.
00002    This file is part of the GNU C Library.
00003 
00004    The GNU C Library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Lesser General Public
00006    License as published by the Free Software Foundation; either
00007    version 2.1 of the License, or (at your option) any later version.
00008 
00009    The GNU C Library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Lesser General Public License for more details.
00013 
00014    You should have received a copy of the GNU Lesser General Public
00015    License along with the GNU C Library; if not, write to the Free
00016    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00017    02111-1307 USA.  */
00018 
00019 #include <sys/ipc.h>
00020 
00021 #define __IPC_64     0x100
00022 
00023 struct __old_ipc_perm
00024 {
00025   __key_t __key;                   /* Key.  */
00026   unsigned int uid;                /* Owner's user ID.  */
00027   unsigned int gid;                /* Owner's group ID.  */
00028   unsigned int cuid;               /* Creator's user ID.  */
00029   unsigned int cgid;               /* Creator's group ID.  */
00030   unsigned int mode;               /* Read/write permission.  */
00031   unsigned short int __seq;        /* Sequence number.  */
00032 };
00033 
00034 
00035 /* The codes for the functions to use the ipc syscall multiplexer.  */
00036 #define IPCOP_semop   1
00037 #define IPCOP_semget  2
00038 #define IPCOP_semctl  3
00039 #define IPCOP_semtimedop 4
00040 #define IPCOP_msgsnd 11
00041 #define IPCOP_msgrcv 12
00042 #define IPCOP_msgget 13
00043 #define IPCOP_msgctl 14
00044 #define IPCOP_shmat  21
00045 #define IPCOP_shmdt  22
00046 #define IPCOP_shmget 23
00047 #define IPCOP_shmctl 24