diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-05-31 16:03:09 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-05-31 16:03:09 -0700 |
commit | b8dfdd92c7857fbb4a2418b9903b825b49d689c0 (patch) | |
tree | 87846ef4c789feffd4ae9489ccb23e1f4aad839d /sysdeps/unix/sysv/linux/x86 | |
parent | 578cd27008df53f87c1a4b3dbda8da94650205c3 (diff) | |
download | glibc-b8dfdd92c7857fbb4a2418b9903b825b49d689c0.tar glibc-b8dfdd92c7857fbb4a2418b9903b825b49d689c0.tar.gz glibc-b8dfdd92c7857fbb4a2418b9903b825b49d689c0.tar.bz2 glibc-b8dfdd92c7857fbb4a2418b9903b825b49d689c0.zip |
Use x86_64 bits/ipctypes.h for both i386 and x86-64
Diffstat (limited to 'sysdeps/unix/sysv/linux/x86')
-rw-r--r-- | sysdeps/unix/sysv/linux/x86/bits/ipctypes.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/x86/bits/ipctypes.h b/sysdeps/unix/sysv/linux/x86/bits/ipctypes.h new file mode 100644 index 0000000000..7c242adfa6 --- /dev/null +++ b/sysdeps/unix/sysv/linux/x86/bits/ipctypes.h @@ -0,0 +1,33 @@ +/* bits/ipctypes.h -- Define some types used by SysV IPC/MSG/SHM. + Copyright (C) 2012 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 +# error "Never use <bits/ipctypes.h> directly; include <sys/ipc.h> instead." +#endif + +#ifndef _BITS_IPCTYPES_H +#define _BITS_IPCTYPES_H 1 + +/* Used in `struct shmid_ds'. */ +# ifdef __x86_64__ +typedef int __ipc_pid_t; +# else +typedef unsigned short int __ipc_pid_t; +# endif + +#endif /* bits/ipctypes.h */ |