source: trunk/kernel/syscalls/shared_include/almos-mkh/dirent.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: 990 bytes
RevLine 
[444]1#ifndef _SHARED_DIRENT_H_
2#define _SHARED_DIRENT_H_
3
4/*******************************************************************************************
5 * These two structure defines the informations returned to user by the opendir()
6 * function, used by the readdir() function, and released by the closedir() function.
7 * - "DIR" describes the complete directory.
8 * - "dirent" describes one directory entry.
9 ******************************************************************************************/
10
11#define DIRENT_NAME_MAX_LENGTH  56
12#define DIRENT_MAX_NUMBER       63
13
14struct dirent
15{
16    unsigned int   inum;                                /*! inode identifier              */
17    unsigned int   type;                                /*! inode type                    */
18    char           name[DIRENT_NAME_MAX_LENGTH];        /*! directory entry name          */
19};
20
21typedef struct user_directory
22{
23    struct dirent   entry[DIRENT_MAX_NUMBER];
24    unsigned int    current;
25}
26DIR;
27
28#endif
Note: See TracBrowser for help on using the repository browser.