source: trunk/kernel/syscalls/shared_include/almos-mkh/stat.h @ 444

Last change on this file since 444 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 1.3 KB
Line 
1#ifndef _SHARED_STAT_H_
2#define _SHARED_STAT_H_
3
4/******************************************************************************************
5 * This structure define the informations associated to a file descriptor,
6 * returned to user space by the stat() system call.
7 *****************************************************************************************/
8
9typedef struct stat
10{
11        unsigned int    dev;        /*! ID of device containing file                             */
12        unsigned int    inum;       /*! inode number                                             */
13        unsigned int    mode;       /*! protection                                               */
14        unsigned int    nlink;      /*! number of hard links                                     */
15        unsigned int    uid;        /*! user ID of owner                                         */
16        unsigned int    gid;        /*! group ID of owner                                        */
17        unsigned int    rdev;       /*! device ID (if special file)                              */
18        unsigned int    size;       /*! total size, in bytes                                     */
19        unsigned int    blksize;    /*! blocksize for file system I/O                            */
20        unsigned int    blocks;     /*! number of 512B blocks allocated                          */
21}
22stat_t;
23
24#endif /* _STAT_H_ */
Note: See TracBrowser for help on using the repository browser.