Re: How to look up a system type?
- From: "Maxim Yegorushkin" <maxim.yegorushkin@xxxxxxxxx>
- Date: 29 Aug 2006 13:53:51 -0700
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.
.
- References:
- How to look up a system type?
- From: Leo.Hou
- Re: How to look up a system type?
- From: Paul Pluzhnikov
- How to look up a system type?
- Prev by Date: Re: How can I interrupt blocking accept() to get errno=EINTR
- Next by Date: Re: How can I interrupt blocking accept() to get errno=EINTR
- Previous by thread: Re: How to look up a system type?
- Next by thread: Re: How to look up a system type?
- Index(es):
Relevant Pages
|