View the definition of a macro for a Linux system (alternative)

Source: Internet
Author: User

Once I wanted to see the definition of the time_t type, and initially wanted to find it directly in the/usr/include/time.h, but instead of going to the other one: __time_t (2 underscores),

The result goes to: __std_type __time_t_type __time_t;

Keep looking for: #define __TIME_T_TYPE __syscall_slong_type

Continue: # define __syscall_slong_type __squad_type

Last: # define __squad_type Long int

I faint: just want to check a time_t type, the result has been jumping so many times, is it necessary?

Depressed, suddenly thought, since the back is a macro, then I directly write a small program, and then, with GCC-E to see the final shape is not OK?

So:

#include <stdio.h><time.h>int  main () {    time_t hello;     return 0 ;}

Then: gcc-e t.c > T.I

Then: Vim t.i

Haha: Direct search: time_t

Results: # define __squad_type Long int

Personal feeling relatively fast,:)

View the definition of a macro for a Linux system (alternative)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.