/[LeafOK_CVS]/lbbs/src/test_file_loader.c
ViewVC logotype

Diff of /lbbs/src/test_file_loader.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.6 by sysadm, Tue May 27 07:21:43 2025 UTC Revision 1.9 by sysadm, Sat Jun 21 02:15:18 2025 UTC
# Line 1  Line 1 
1  /***************************************************************************  /***************************************************************************
2                                                  file_loader.c  -  description                                          test_file_loader.c  -  description
3                                                           -------------------                                                           -------------------
4          Copyright            : (C) 2004-2025 by Leaflet          Copyright            : (C) 2004-2025 by Leaflet
5          Email                : leaflet@leafok.com          Email                : leaflet@leafok.com
# Line 15  Line 15 
15   ***************************************************************************/   ***************************************************************************/
16    
17  #include "file_loader.h"  #include "file_loader.h"
 #include "trie_dict.h"  
18  #include "log.h"  #include "log.h"
19    #include "trie_dict.h"
20    #include <errno.h>
21  #include <stdio.h>  #include <stdio.h>
22  #include <unistd.h>  #include <unistd.h>
 #include <errno.h>  
23  #include <sys/shm.h>  #include <sys/shm.h>
24    
25  #define TRIE_DICT_SHM_FILE "~trie_dict_shm.dat"  #define TRIE_DICT_SHM_FILE "~trie_dict_shm.dat"
# Line 51  int main(int argc, char *argv[]) Line 51  int main(int argc, char *argv[])
51                  return -1;                  return -1;
52          }          }
53    
54          log_std_redirect(STDOUT_FILENO);          log_common_redir(STDOUT_FILENO);
55          log_err_redirect(STDERR_FILENO);          log_error_redir(STDERR_FILENO);
56    
57          if ((fp = fopen(TRIE_DICT_SHM_FILE, "w")) == NULL)          if ((fp = fopen(TRIE_DICT_SHM_FILE, "w")) == NULL)
58          {          {


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1