version 1.9, 2025/04/09 14:34:30
|
version 1.10, 2025/04/11 00:52:40
|
Line 24
|
Line 24
|
* along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
* along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
* |
* |
* $Log$ |
* $Log$ |
|
* Revision 1.10 2025/04/11 00:52:40 snw |
|
* Replace all lseek/read calls in global handler to use gbl_read_block function |
|
* |
* Revision 1.9 2025/04/09 14:34:30 snw |
* Revision 1.9 2025/04/09 14:34:30 snw |
* Further work on global_bltin.c refactor |
* Further work on global_bltin.c refactor |
* |
* |
Line 91 typedef struct global_handle {
|
Line 94 typedef struct global_handle {
|
unsigned long last_block; |
unsigned long last_block; |
|
|
unsigned long use_count; /* how many times has it been accessed? */ |
unsigned long use_count; /* how many times has it been accessed? */ |
|
unsigned long read_ops; |
|
unsigned long write_ops; |
|
unsigned long splits; |
unsigned long cache_misses; |
unsigned long cache_misses; |
unsigned long cache_hits; |
unsigned long cache_hits; |
|
|
Line 121 extern int gbl_read_header(global_handle
|
Line 127 extern int gbl_read_header(global_handle
|
extern int gbl_update_tid(global_handle *g); |
extern int gbl_update_tid(global_handle *g); |
extern int gbl_create(global_handle *g); |
extern int gbl_create(global_handle *g); |
extern short gbl_open(global_handle *g, short action); |
extern short gbl_open(global_handle *g, short action); |
|
extern int gbl_read_block(global_handle *g, unsigned long blocknum, char *block); |
extern global_handle *gbl_handle(char *key); |
extern global_handle *gbl_handle(char *key); |
|
|
#endif |
#endif |