This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

glibc 2.1.93


There seems to be a problem with limits.h in glibc 2.1.93. Compiling

#include <limits.h>
LONG_BIT

with -D_GNU_SOURCE on i586-pc-linux-gnu gives the output file attached
below (which was also compiled with -dD). Essentially, LONG_BIT is
defined as 64.

Any help appreciated,
Martin

# 1 "a.c"
# 1 "/usr/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/include/limits.h" 1 3
 


 


#define _GCC_LIMITS_H_


 
# 1 "/usr/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/include/syslimits.h" 1 3
 




#define _GCC_NEXT_LIMITS_H		
# 1 "/usr/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/include/limits.h" 1 3
 


 

# 114 "/usr/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/include/limits.h" 3



# 1 "/usr/include/limits.h" 1 3
 

















 




#define _LIBC_LIMITS_H_	1

# 1 "/usr/include/features.h" 1 3
 


















#define	_FEATURES_H	1

 





























































 




















 


#define __KERNEL_STRICT_NAMES


 
#define	__USE_ANSI	1


 







 


#define _ISOC99_SOURCE	1

#define _POSIX_SOURCE	1

#define _POSIX_C_SOURCE	199506L

#define _XOPEN_SOURCE	600

#define _XOPEN_SOURCE_EXTENDED	1

#define _LARGEFILE64_SOURCE	1

#define _BSD_SOURCE	1

#define _SVID_SOURCE	1


 









 





#define __USE_ISOC99	1


 

# 172 "/usr/include/features.h" 3



#define __USE_POSIX	1



#define __USE_POSIX2	1



#define __USE_POSIX199309	1



#define __USE_POSIX199506	1



#define __USE_XOPEN	1

#define __USE_XOPEN_EXTENDED	1
#define __USE_UNIX98	1

#define _LARGEFILE_SOURCE	1

#define __USE_XOPEN2K	1

#define __USE_ISOC99		1









#define __USE_LARGEFILE	1



#define __USE_LARGEFILE64	1







#define __USE_MISC	1



#define __USE_BSD	1



#define __USE_SVID	1



#define __USE_GNU	1






 
#define __STDC_IEC_559__		1
#define __STDC_IEC_559_COMPLEX__	1

 
#define __STDC_ISO_10646__		200001L

 






#define __GNU_LIBRARY__ 6

 

#define	__GLIBC__	2
#define	__GLIBC_MINOR__	2

 







#define __GNUC_PREREQ(maj, min) ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))





#define __GLIBC_PREREQ(maj, min) ((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min))


 


# 1 "/usr/include/sys/cdefs.h" 1 3
 


















#define	_SYS_CDEFS_H	1

 




 






 





 





#define __THROW

#define __P(args)	args __THROW
 

#define __PMT(args)	args

# 64 "/usr/include/sys/cdefs.h" 3


 


#define __CONCAT(x,y)	x ## y
#define __STRING(x)	#x

 
#define __ptr_t void *
#define __long_double_t  long double


 




#define __BEGIN_DECLS
#define __END_DECLS



 

#define __bounded	
#define __unbounded	
#define __ptrvalue	



 











#define __REDIRECT(name, proto, alias) name proto __asm__ (__ASMNAME (#alias))
#define __ASMNAME(cname)  __ASMNAME2 (__USER_LABEL_PREFIX__, cname)
#define __ASMNAME2(prefix, cname) __STRING (prefix) cname

 







 






 





#define __attribute_malloc__ 


 





#define __attribute_pure__ 


 



#define __attribute_format_arg__(x) __attribute__ ((__format_arg__ (x)))




 







 




 



#define __restrict_arr


# 282 "/usr/include/features.h" 2 3



 








 




 

 








# 1 "/usr/include/gnu/stubs.h" 1 3
 



#define __stub___kernel_cosl
#define __stub___kernel_sinl
#define __stub___kernel_tanl
#define __stub_chflags
#define __stub_erfcl
#define __stub_erfl
#define __stub_fattach
#define __stub_fchflags
#define __stub_fdetach
#define __stub_fexecve
#define __stub_getcontext
#define __stub_gtty
#define __stub_j0l
#define __stub_j1l
#define __stub_jnl
#define __stub_lgammal
#define __stub_lgammal_r
#define __stub_makecontext
#define __stub_posix_fadvise
#define __stub_posix_fadvise64
#define __stub_revoke
#define __stub_setcontext
#define __stub_setlogin
#define __stub_sigreturn
#define __stub_sstk
#define __stub_stty
#define __stub_swapcontext
#define __stub_y0l
#define __stub_y1l
#define __stub_ynl
# 310 "/usr/include/features.h" 2 3




# 26 "/usr/include/limits.h" 2 3



 
# 1 "/usr/include/bits/posix1_lim.h" 1 3
 

















 






#define	_BITS_POSIX1_LIM_H	1


 

 
#define _POSIX_AIO_LISTIO_MAX	2

 
#define _POSIX_AIO_MAX		1

 
#define	_POSIX_ARG_MAX		4096

 
#define	_POSIX_CHILD_MAX	6

 
#define _POSIX_DELAYTIMER_MAX	32

 
#define	_POSIX_LINK_MAX		8

 
#define	_POSIX_MAX_CANON	255

 

#define	_POSIX_MAX_INPUT	255

 
#define _POSIX_MQ_OPEN_MAX	8

 
#define _POSIX_MQ_PRIO_MAX	32

 
#define	_POSIX_NGROUPS_MAX	0

 
#define	_POSIX_OPEN_MAX		16

 

#define	_POSIX_FD_SETSIZE	_POSIX_OPEN_MAX

 
#define	_POSIX_NAME_MAX		14

 
#define	_POSIX_PATH_MAX		256

 
#define	_POSIX_PIPE_BUF		512

 
#define _POSIX_RTSIG_MAX	8

 
#define _POSIX_SEM_NSEMS_MAX	256

 
#define _POSIX_SEM_VALUE_MAX	32767

 
#define _POSIX_SIGQUEUE_MAX	32

 
#define	_POSIX_SSIZE_MAX	32767

 
#define	_POSIX_STREAM_MAX	8

 
#define	_POSIX_TZNAME_MAX	3

 
#define	_POSIX_QLIMIT		1

 

#define	_POSIX_HIWAT		_POSIX_PIPE_BUF

 
#define	_POSIX_UIO_MAXIOV	16

 
#define	_POSIX_TTY_NAME_MAX	9

 
#define _POSIX_TIMER_MAX	32

 
#define	_POSIX_LOGIN_NAME_MAX	9

 
#define _POSIX_CLOCKRES_MIN	20000000


 
# 1 "/usr/include/bits/local_lim.h" 1 3
 


















 





#define __undef_NR_OPEN


#define __undef_LINK_MAX


#define __undef_OPEN_MAX


 
# 1 "/usr/include/linux/limits.h" 1 3

#define _LINUX_LIMITS_H

#define NR_OPEN	        1024

#define NGROUPS_MAX       32	
#define ARG_MAX       131072	
#define CHILD_MAX        999    
#define OPEN_MAX         256	
#define LINK_MAX         127	
#define MAX_CANON        255	
#define MAX_INPUT        255	
#define NAME_MAX         255	
#define PATH_MAX        4095	
#define PIPE_BUF        4096	

#define RTSIG_MAX	  32


# 36 "/usr/include/bits/local_lim.h" 2 3


 




 




 





 
#define _POSIX_THREAD_KEYS_MAX	128
 
#define PTHREAD_KEYS_MAX	1024

 
#define _POSIX_THREAD_DESTRUCTOR_ITERATIONS	4
 
#define PTHREAD_DESTRUCTOR_ITERATIONS	_POSIX_THREAD_DESTRUCTOR_ITERATIONS

 
#define _POSIX_THREAD_THREADS_MAX	64
 
#define PTHREAD_THREADS_MAX	1024

 

#define AIO_PRIO_DELTA_MAX	20

 
#define PTHREAD_STACK_MIN	16384

 
#define TIMER_MAX	256
# 126 "/usr/include/bits/posix1_lim.h" 2 3




#define SSIZE_MAX	INT_MAX



 







# 30 "/usr/include/limits.h" 2 3




# 1 "/usr/include/bits/posix2_lim.h" 1 3
 

















 




#define	_BITS_POSIX2_LIM_H	1


 
#define	_POSIX2_BC_BASE_MAX		99

 
#define	_POSIX2_BC_DIM_MAX		2048

 
#define	_POSIX2_BC_SCALE_MAX		99

 
#define	_POSIX2_BC_STRING_MAX		1000

 


#define	_POSIX2_COLL_WEIGHTS_MAX	255

 

#define	_POSIX2_EXPR_NEST_MAX		32

 
#define	_POSIX2_LINE_MAX		2048

 

#define	_POSIX2_RE_DUP_MAX		255

 

#define	_POSIX2_CHARCLASS_NAME_MAX	2048


 




#define	BC_BASE_MAX		_POSIX2_BC_BASE_MAX


#define	BC_DIM_MAX		_POSIX2_BC_DIM_MAX


#define	BC_SCALE_MAX		_POSIX2_BC_SCALE_MAX


#define	BC_STRING_MAX		_POSIX2_BC_STRING_MAX


#define	COLL_WEIGHTS_MAX	_POSIX2_COLL_WEIGHTS_MAX


#define	EQUIV_CLASS_MAX		_POSIX2_EQUIV_CLASS_MAX


#define	EXPR_NEST_MAX		_POSIX2_EXPR_NEST_MAX


#define	LINE_MAX		_POSIX2_LINE_MAX


#define	CHARCLASS_NAME_MAX	_POSIX2_CHARCLASS_NAME_MAX


 
#define	RE_DUP_MAX (0x7fff)


# 34 "/usr/include/limits.h" 2 3




# 1 "/usr/include/bits/xopen_lim.h" 1 3
 

















 



 







#define _XOPEN_LIM_H	1

#define __need_FOPEN_MAX
#define __need_IOV_MAX
# 1 "/usr/include/bits/stdio_lim.h" 1 3
 





















# 32 "/usr/include/bits/stdio_lim.h" 3




#define FOPEN_MAX 16



#define IOV_MAX 1024 

# 35 "/usr/include/bits/xopen_lim.h" 2 3


 



























 

#define	_XOPEN_IOV_MAX	_POSIX_UIO_MAXIOV


 

#define NL_ARGMAX	_POSIX_ARG_MAX

 
#define NL_LANGMAX	_POSIX2_LINE_MAX

 
#define NL_MSGMAX	INT_MAX

 

#define NL_NMAX		INT_MAX

 
#define NL_SETMAX	INT_MAX

 
#define NL_TEXTMAX	INT_MAX

 
#define NZERO		20


 






 
#define WORD_BIT	64



 



 
#define LONG_BIT	64



# 38 "/usr/include/limits.h" 2 3




 


#define MB_LEN_MAX	16


 

# 124 "/usr/include/limits.h" 3




  








# 117 "/usr/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/include/limits.h" 2 3




# 7 "/usr/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/include/syslimits.h" 2 3


# 11 "/usr/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/include/limits.h" 2 3





 
#define _LIMITS_H___
#define _MACH_MACHLIMITS_H_

 

#define CHAR_BIT 8

 




 

#define SCHAR_MIN (-128)

#define SCHAR_MAX 127

 

#define UCHAR_MAX 255

 







#define CHAR_MIN (-128)

#define CHAR_MAX 127


 

 
#define SHRT_MIN (-32767-1)

#define SHRT_MAX 32767

 

#define USHRT_MAX 65535

 

#define __INT_MAX__ 2147483647


#define INT_MIN (-INT_MAX-1)

#define INT_MAX __INT_MAX__

 

#define UINT_MAX (INT_MAX * 2U + 1)

 





#define __LONG_MAX__ 2147483647L



#define LONG_MIN (-LONG_MAX-1)

#define LONG_MAX __LONG_MAX__

 

#define ULONG_MAX (LONG_MAX * 2UL + 1)


 

#define __LONG_LONG_MAX__ 9223372036854775807LL


#define LONG_LONG_MIN (-LONG_LONG_MAX-1)

#define LONG_LONG_MAX __LONG_LONG_MAX__

 

#define ULONG_LONG_MAX (LONG_LONG_MAX * 2ULL + 1)




 









# 1 "a.c" 2

64 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]