/[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.15 by sysadm, Thu Nov 20 01:09:27 2025 UTC Revision 1.18 by sysadm, Sat Jan 3 10:27:14 2026 UTC
# Line 3  Line 3 
3   * test_file_loader   * test_file_loader
4   *   - tester for shared memory based file loader   *   - tester for shared memory based file loader
5   *   *
6   * Copyright (C) 2004-2025  Leaflet <leaflet@leafok.com>   * Copyright (C) 2004-2026  Leaflet <leaflet@leafok.com>
7   */   */
8    
9  #ifdef HAVE_CONFIG_H  #ifdef HAVE_CONFIG_H
# Line 17  Line 17 
17  #include <stdio.h>  #include <stdio.h>
18  #include <string.h>  #include <string.h>
19  #include <unistd.h>  #include <unistd.h>
 #include <sys/shm.h>  
20    
21  const char *files[] = {  const char *files[] = {
22          "../data/welcome.txt",          "../data/welcome.txt",
# Line 74  int main(int argc, char *argv[]) Line 73  int main(int argc, char *argv[])
73    
74                          if (detach_file_shm(p_shm) < 0)                          if (detach_file_shm(p_shm) < 0)
75                          {                          {
76                                  log_error("detach_file_shm(%s) error\n", files[i]);                                  log_error("detach_file_shm(%s) error", files[i]);
77                          }                          }
78                  }                  }
79          }          }
# Line 124  int main(int argc, char *argv[]) Line 123  int main(int argc, char *argv[])
123    
124                                  if (detach_file_shm(p_shm) < 0)                                  if (detach_file_shm(p_shm) < 0)
125                                  {                                  {
126                                          log_error("detach_file_shm(%s) error\n", files[i]);                                          log_error("detach_file_shm(%s) error", files[i]);
127                                  }                                  }
128                          }                          }
129                  }                  }


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

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