[LCP]typedefs in .h

Alton, Matthew Matthew.Alton at anheuser-busch.com
Sat Jan 19 07:51:11 UTC 2002


You can grep then out of /usr/include/sys/types.h or you can use gcc's typeof()
in a proglet.

-----Original Message-----
From: Emil Tantilov [mailto:emocom at yahoo.com]
Sent: Friday, January 18, 2002 2:36 PM
To: linuxcprogramming at lists.linux.org.au
Subject: [LCP]typedefs in .h


Hi All,

 I'm fairly new into C programming, in general I'm
doing it for fun (mostly). Anyway here's my question:

 "man fstat" returns for the structure below:
struct stat {
  dev_t               st_dev;   
  ino_t               st_ino;   
  mode_t              st_mode;  
  nlink_t             st_nlink; 
  uid_t               st_uid;   
  gid_t               st_gid;   
  dev_t               st_rdev;  
  off_t               st_size;  
  unsigned long       st_blksize;  
  unsigned long       st_blocks;   
  time_t              st_atime;    
  time_t              st_mtime;    
  time_t              st_ctime;    
};

Is there a fast and convinient way of finding the
actual type (int, long, char, struct ...) for uid_t,
dev_t, time_t, and all those types defined into the
headers (buried to be precise)?

Thanks in advance,

Emil

__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
_______________________________________________
This is the Linux C Programming List
:  http://lists.linux.org.au/listinfo/linuxcprogramming List



More information about the linuxCprogramming mailing list