Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Side by Side Diff: bits/types.h

Issue 6026005: Fix __fxstat which is called from fstat. Remove obsolete fstat64. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-glibc.git@master
Patch Set: refactoring fxstat.c Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | bits/typesizes.h » ('j') | include/features.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* bits/types.h -- definitions of __*_t types underlying *_t types. 1 /* bits/types.h -- definitions of __*_t types underlying *_t types.
2 Copyright (C) 2002, 2003, 2004, 2005, 2007 Free Software Foundation, Inc. 2 Copyright (C) 2002, 2003, 2004, 2005, 2007 Free Software Foundation, Inc.
3 This file is part of the GNU C Library. 3 This file is part of the GNU C Library.
4 4
5 The GNU C Library is free software; you can redistribute it and/or 5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public 6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either 7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version. 8 version 2.1 of the License, or (at your option) any later version.
9 9
10 The GNU C Library is distributed in the hope that it will be useful, 10 The GNU C Library is distributed in the hope that it will be useful,
(...skipping 22 matching lines...) Expand all
33 typedef unsigned int __u_int; 33 typedef unsigned int __u_int;
34 typedef unsigned long int __u_long; 34 typedef unsigned long int __u_long;
35 35
36 /* Fixed-size types, underlying types depend on word size and compiler. */ 36 /* Fixed-size types, underlying types depend on word size and compiler. */
37 typedef signed char __int8_t; 37 typedef signed char __int8_t;
38 typedef unsigned char __uint8_t; 38 typedef unsigned char __uint8_t;
39 typedef signed short int __int16_t; 39 typedef signed short int __int16_t;
40 typedef unsigned short int __uint16_t; 40 typedef unsigned short int __uint16_t;
41 typedef signed int __int32_t; 41 typedef signed int __int32_t;
42 typedef unsigned int __uint32_t; 42 typedef unsigned int __uint32_t;
43 #if __WORDSIZE == 64 43 #if __WORDSIZE == 64 && !defined __native_client__
44 typedef signed long int __int64_t; 44 typedef signed long int __int64_t;
45 typedef unsigned long int __uint64_t; 45 typedef unsigned long int __uint64_t;
46 #elif defined __GLIBC_HAVE_LONG_LONG 46 #elif defined __GLIBC_HAVE_LONG_LONG
47 __extension__ typedef signed long long int __int64_t; 47 __extension__ typedef signed long long int __int64_t;
48 __extension__ typedef unsigned long long int __uint64_t; 48 __extension__ typedef unsigned long long int __uint64_t;
49 #endif 49 #endif
50 50
51 /* quad_t is also 64 bits. */ 51 /* quad_t is also 64 bits. */
52 #if __WORDSIZE == 64 52 #if __WORDSIZE == 64 && !defined __native_client__
53 typedef long int __quad_t; 53 typedef long int __quad_t;
54 typedef unsigned long int __u_quad_t; 54 typedef unsigned long int __u_quad_t;
55 #elif defined __GLIBC_HAVE_LONG_LONG 55 #elif defined __GLIBC_HAVE_LONG_LONG
56 __extension__ typedef long long int __quad_t; 56 __extension__ typedef long long int __quad_t;
57 __extension__ typedef unsigned long long int __u_quad_t; 57 __extension__ typedef unsigned long long int __u_quad_t;
58 #else 58 #else
59 typedef struct 59 typedef struct
60 { 60 {
61 long __val[2]; 61 long __val[2];
62 } __quad_t; 62 } __quad_t;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 Here we assume what is presently the case in all the GCC configurations 95 Here we assume what is presently the case in all the GCC configurations
96 we support: long long is always 64 bits, long is always word/address size, 96 we support: long long is always 64 bits, long is always word/address size,
97 and int is always 32 bits. */ 97 and int is always 32 bits. */
98 98
99 #define __S16_TYPE short int 99 #define __S16_TYPE short int
100 #define __U16_TYPE unsigned short int 100 #define __U16_TYPE unsigned short int
101 #define __S32_TYPE int 101 #define __S32_TYPE int
102 #define __U32_TYPE unsigned int 102 #define __U32_TYPE unsigned int
103 #define __SLONGWORD_TYPE long int 103 #define __SLONGWORD_TYPE long int
104 #define __ULONGWORD_TYPE unsigned long int 104 #define __ULONGWORD_TYPE unsigned long int
105 #if __WORDSIZE == 32 105
eaeltsin 2011/01/13 10:43:45 New empty line here? Please remove if so.
halyavin 2011/01/13 11:15:21 Done.
106 #if __WORDSIZE == 32 || defined __native_client__
106 # define __SQUAD_TYPE __quad_t 107 # define __SQUAD_TYPE __quad_t
107 # define __UQUAD_TYPE __u_quad_t 108 # define __UQUAD_TYPE __u_quad_t
108 # define __SWORD_TYPE int 109 # define __SWORD_TYPE int
109 # define __UWORD_TYPE unsigned int 110 # define __UWORD_TYPE unsigned int
110 # define __SLONG32_TYPE long int 111 # define __SLONG32_TYPE long int
111 # define __ULONG32_TYPE unsigned long int 112 # define __ULONG32_TYPE unsigned long int
112 # define __S64_TYPE __quad_t 113 # define __S64_TYPE __quad_t
113 # define __U64_TYPE __u_quad_t 114 # define __U64_TYPE __u_quad_t
114 /* We want __extension__ before typedef's that use nonstandard base types 115 /* We want __extension__ before typedef's that use nonstandard base types
115 such as `long long' in C89 mode. */ 116 such as `long long' in C89 mode. */
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 /* Duplicates info from stdint.h but this is used in unistd.h. */ 189 /* Duplicates info from stdint.h but this is used in unistd.h. */
189 __STD_TYPE __SWORD_TYPE __intptr_t; 190 __STD_TYPE __SWORD_TYPE __intptr_t;
190 191
191 /* Duplicate info from sys/socket.h. */ 192 /* Duplicate info from sys/socket.h. */
192 __STD_TYPE __U32_TYPE __socklen_t; 193 __STD_TYPE __U32_TYPE __socklen_t;
193 194
194 195
195 #undef __STD_TYPE 196 #undef __STD_TYPE
196 197
197 #endif /* bits/types.h */ 198 #endif /* bits/types.h */
OLDNEW
« no previous file with comments | « no previous file | bits/typesizes.h » ('j') | include/features.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698