OSAPI  0.29
Open System API
fs_posix_type_file.h
1 // *****************************************************************************************
2 //
3 // File description:
4 //
5 // Author: Joao Costa
6 // Purpose: FS type declarations
7 //
8 // *****************************************************************************************
9 
10 #ifndef OSAPI_FS_POSIX_TYPE_FILE_H_
11 #define OSAPI_FS_POSIX_TYPE_FILE_H_
12 
13 // *****************************************************************************************
14 //
15 // Section: Import headers
16 //
17 // *****************************************************************************************
18 
19 // Import POSIX type headers
20 #include <stdio.h>
21 #include <stdbool.h>
22 
23 // Import module types
24 #include "fs/type/fs_type_ostate.h"
25 
26 // *****************************************************************************************
27 //
28 // Section: Define POSIX specific types
29 //
30 // *****************************************************************************************
31 
32 
35 {
36  t_fs_ostate state;
37  bool isBuffered;
38  int descriptor;
39  FILE * handle;
41 };
42 
43 typedef struct osapi_fs_file_info_S t_fs_fileInfo;
44 
45 
46 
47 #endif /* OSAPI_FS_POSIX_TYPE_FILE_H_ */
osapi_fs_file_info_S::state
t_fs_ostate state
Current state.
Definition: fs_posix_type_file.h:36
osapi_fs_file_info_S::block_size
t_size block_size
File block size for buffered operations.
Definition: fs_posix_type_file.h:40
t_size
uint64_t t_size
Definition of OSAPI size type.
Definition: general_types.h:52
osapi_fs_file_info_S
Structure containing the C/POSIX file pointer/handler information.
Definition: fs_posix_type_file.h:34
osapi_fs_file_info_S::handle
FILE * handle
File descriptor (stream oriented)
Definition: fs_posix_type_file.h:39
osapi_fs_file_info_S::isBuffered
bool isBuffered
Which open was used? Buffered or not?
Definition: fs_posix_type_file.h:37
osapi_fs_file_info_S::descriptor
int descriptor
File descriptor (raw)
Definition: fs_posix_type_file.h:38