Re: How to look up a system type?

Paul Pluzhnikov wrote:
"Leo.Hou" <leo.hou@xxxxxxxxx> writes:

then '__STD_TYPE __SSIZE_T_TYPE __ssize_t;'
then '#define __SSIZE_T_TYPE __SWORD_TYPE'
and finally '# define __SWORD_TYPE int'.

So 'int' it is, but that took me about 10 minutes... What is a better
way to do so?

$ echo '#include <signal.h>' | gcc -E - | grep ssize_t
__extension__ typedef int __ssize_t;

Nice trick. To look up a macro as well gcc -E -dD can be used.