mirror of https://gitee.com/Nocallback/glibc.git
Browse Source
2003-09-08 Jakub Jelinek <jakub@redhat.com> * sysdeps/generic/bits/types.h (__quad_t): Make long int if 64-bit. (__u_quad_t): Make unsigned long int if 64-bit. (__SQUAD_TYPE): Make long int if 64-bit. (__UQUAD_TYPE): Make unsigned long int if 64-bit. * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Remove. 2003-09-08 Ulrich Drepper <drepper@redhat.com> * Makefile (tests): Run check-c++-types.sh if possible. * scripts/check-c++-types.h: New file. * scripts/data/c++-ctypes-i386-linux-gnu.data: New file. contiguous case. Bug report from Prem Gopalan <prem@mazunetworks.com>.cvs/fedora-2_3-branch
18 changed files with 130 additions and 161 deletions
@ -1,66 +0,0 @@ |
|||
/* bits/typesizes.h -- underlying types for *_t. Linux/s390 version.
|
|||
Copyright (C) 2003 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, write to the Free |
|||
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA |
|||
02111-1307 USA. */ |
|||
|
|||
#ifndef _BITS_TYPES_H |
|||
# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead." |
|||
#endif |
|||
|
|||
#ifndef _BITS_TYPESIZES_H |
|||
#define _BITS_TYPESIZES_H 1 |
|||
|
|||
/* See <bits/types.h> for the meaning of these macros. This file exists so
|
|||
that <bits/types.h> need not vary across different GNU platforms. */ |
|||
|
|||
#define __DEV_T_TYPE __UQUAD_TYPE |
|||
#define __UID_T_TYPE __U32_TYPE |
|||
#define __GID_T_TYPE __U32_TYPE |
|||
#define __INO_T_TYPE __ULONGWORD_TYPE |
|||
#define __INO64_T_TYPE __UQUAD_TYPE |
|||
#define __MODE_T_TYPE __U32_TYPE |
|||
#define __NLINK_T_TYPE __UWORD_TYPE |
|||
#define __OFF_T_TYPE __SLONGWORD_TYPE |
|||
#define __OFF64_T_TYPE __SQUAD_TYPE |
|||
#define __PID_T_TYPE __S32_TYPE |
|||
#define __RLIM_T_TYPE __ULONGWORD_TYPE |
|||
#define __RLIM64_T_TYPE __UQUAD_TYPE |
|||
#define __BLKCNT_T_TYPE __SLONGWORD_TYPE |
|||
#define __BLKCNT64_T_TYPE __SQUAD_TYPE |
|||
#define __FSBLKCNT_T_TYPE __ULONGWORD_TYPE |
|||
#define __FSBLKCNT64_T_TYPE __UQUAD_TYPE |
|||
#define __FSFILCNT_T_TYPE __ULONGWORD_TYPE |
|||
#define __FSFILCNT64_T_TYPE __UQUAD_TYPE |
|||
#define __ID_T_TYPE __U32_TYPE |
|||
#define __CLOCK_T_TYPE __SLONGWORD_TYPE |
|||
#define __TIME_T_TYPE __SLONGWORD_TYPE |
|||
#define __USECONDS_T_TYPE __U32_TYPE |
|||
#define __SUSECONDS_T_TYPE __SLONGWORD_TYPE |
|||
#define __DADDR_T_TYPE __S32_TYPE |
|||
#define __SWBLK_T_TYPE __SLONGWORD_TYPE |
|||
#define __KEY_T_TYPE __S32_TYPE |
|||
#define __CLOCKID_T_TYPE __S32_TYPE |
|||
#define __TIMER_T_TYPE __S32_TYPE |
|||
#define __BLKSIZE_T_TYPE __SLONGWORD_TYPE |
|||
#define __FSID_T_TYPE struct { int __val[2]; } |
|||
#define __SSIZE_T_TYPE __SLONGWORD_TYPE |
|||
|
|||
/* Number of descriptors that can fit in an `fd_set'. */ |
|||
#define __FD_SETSIZE 1024 |
|||
|
|||
|
|||
#endif /* bits/typesizes.h */ |
|||
@ -0,0 +1,58 @@ |
|||
blkcnt64_t:x |
|||
blkcnt_t:l |
|||
blksize_t:l |
|||
caddr_t:Pc |
|||
clockid_t:i |
|||
clock_t:l |
|||
daddr_t:i |
|||
dev_t:y |
|||
fd_mask:l |
|||
fsblkcnt64_t:y |
|||
fsblkcnt_t:m |
|||
fsfilcnt64_t:y |
|||
fsfilcnt_t:m |
|||
fsid_t:8__fsid_t |
|||
gid_t:j |
|||
id_t:j |
|||
ino64_t:y |
|||
ino_t:m |
|||
int16_t:s |
|||
int32_t:i |
|||
int64_t:x |
|||
int8_t:a |
|||
intptr_t:i |
|||
key_t:i |
|||
loff_t:x |
|||
mode_t:j |
|||
nlink_t:j |
|||
off64_t:x |
|||
off_t:l |
|||
pid_t:i |
|||
pthread_key_t:j |
|||
pthread_once_t:i |
|||
pthread_spinlock_t:i |
|||
pthread_t:m |
|||
quad_t:x |
|||
register_t:i |
|||
rlim64_t:y |
|||
rlim_t:m |
|||
sigset_t:10__sigset_t |
|||
size_t:j |
|||
socklen_t:j |
|||
ssize_t:i |
|||
suseconds_t:l |
|||
time_t:l |
|||
u_char:h |
|||
uid_t:j |
|||
uint:j |
|||
u_int:j |
|||
u_int16_t:t |
|||
u_int32_t:j |
|||
u_int64_t:y |
|||
u_int8_t:h |
|||
ulong:m |
|||
u_long:m |
|||
u_quad_t:y |
|||
useconds_t:j |
|||
ushort:t |
|||
u_short:t |
|||
@ -1,66 +0,0 @@ |
|||
/* bits/typesizes.h -- underlying types for *_t. Linux/s390 version.
|
|||
Copyright (C) 2003 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, write to the Free |
|||
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA |
|||
02111-1307 USA. */ |
|||
|
|||
#ifndef _BITS_TYPES_H |
|||
# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead." |
|||
#endif |
|||
|
|||
#ifndef _BITS_TYPESIZES_H |
|||
#define _BITS_TYPESIZES_H 1 |
|||
|
|||
/* See <bits/types.h> for the meaning of these macros. This file exists so
|
|||
that <bits/types.h> need not vary across different GNU platforms. */ |
|||
|
|||
#define __DEV_T_TYPE __UQUAD_TYPE |
|||
#define __UID_T_TYPE __U32_TYPE |
|||
#define __GID_T_TYPE __U32_TYPE |
|||
#define __INO_T_TYPE __ULONGWORD_TYPE |
|||
#define __INO64_T_TYPE __UQUAD_TYPE |
|||
#define __MODE_T_TYPE __U32_TYPE |
|||
#define __NLINK_T_TYPE __UWORD_TYPE |
|||
#define __OFF_T_TYPE __SLONGWORD_TYPE |
|||
#define __OFF64_T_TYPE __SQUAD_TYPE |
|||
#define __PID_T_TYPE __S32_TYPE |
|||
#define __RLIM_T_TYPE __ULONGWORD_TYPE |
|||
#define __RLIM64_T_TYPE __UQUAD_TYPE |
|||
#define __BLKCNT_T_TYPE __SLONGWORD_TYPE |
|||
#define __BLKCNT64_T_TYPE __SQUAD_TYPE |
|||
#define __FSBLKCNT_T_TYPE __ULONGWORD_TYPE |
|||
#define __FSBLKCNT64_T_TYPE __UQUAD_TYPE |
|||
#define __FSFILCNT_T_TYPE __ULONGWORD_TYPE |
|||
#define __FSFILCNT64_T_TYPE __UQUAD_TYPE |
|||
#define __ID_T_TYPE __U32_TYPE |
|||
#define __CLOCK_T_TYPE __SLONGWORD_TYPE |
|||
#define __TIME_T_TYPE __SLONGWORD_TYPE |
|||
#define __USECONDS_T_TYPE __U32_TYPE |
|||
#define __SUSECONDS_T_TYPE __SLONGWORD_TYPE |
|||
#define __DADDR_T_TYPE __S32_TYPE |
|||
#define __SWBLK_T_TYPE __SLONGWORD_TYPE |
|||
#define __KEY_T_TYPE __S32_TYPE |
|||
#define __CLOCKID_T_TYPE __S32_TYPE |
|||
#define __TIMER_T_TYPE void * |
|||
#define __BLKSIZE_T_TYPE __SLONGWORD_TYPE |
|||
#define __FSID_T_TYPE struct { int __val[2]; } |
|||
#define __SSIZE_T_TYPE __SLONGWORD_TYPE |
|||
|
|||
/* Number of descriptors that can fit in an `fd_set'. */ |
|||
#define __FD_SETSIZE 1024 |
|||
|
|||
|
|||
#endif /* bits/typesizes.h */ |
|||
Loading…
Reference in new issue