Diff for /freem/src/global_bltin.h between versions 1.6 and 1.8

version 1.6, 2025/04/08 20:00:56 version 1.8, 2025/04/09 00:43:07
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.8  2025/04/09 00:43:07  snw
    *   Exit with fatal error if a header mismatch found
    *
    *   Revision 1.7  2025/04/08 21:41:13  snw
    *   Make insert, update, and splitp global handler functions take a ptr to a global_handle instead of a file descriptor
    *
  *   Revision 1.6  2025/04/08 20:00:56  snw   *   Revision 1.6  2025/04/08 20:00:56  snw
  *   Global handler now uses a header file and maintains the last journaling transaction ID   *   Global handler now uses a header file and maintains the last journaling transaction ID
  *   *
Line 60  typedef struct global_header { Line 66  typedef struct global_header {
     char magic[5]; /* FRMGL */      char magic[5]; /* FRMGL */
     int format_version;      int format_version;
     char host_triplet[40];      char host_triplet[40];
       char host_id[256];
       
     unsigned long block_size;      unsigned long block_size;
     unsigned long last_transaction_id;      unsigned long last_transaction_id;
   
Line 92  typedef struct global_handle { Line 99  typedef struct global_handle {
   
 extern global_handle *global_handles_head;  extern global_handle *global_handles_head;
   
   
   extern inline long gbl_path(char *key, char *buf);
   extern int gbl_lock(global_handle *g, int type);
   extern int gbl_unlock(global_handle *g);
   extern void gbl_close(global_handle *g);
   extern void gbl_close_all(void);
   extern int gbl_write_initial_header(global_handle *g);
   extern int gbl_write_header(global_handle *g, global_header *hdr);
   extern int gbl_read_header(global_handle *g, global_header *h);
   extern int gbl_update_tid(global_handle *g);
   extern int gbl_create(global_handle *g);
   extern short gbl_open(global_handle *g, short action);
   extern global_handle *gbl_handle(char *key);
   
 #endif  #endif

Removed from v.1.6  
changed lines
  Added in v.1.8


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>