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

Diff of /lbbs/src/menu_proc.c

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

Revision 1.21 by sysadm, Fri May 30 12:51:00 2025 UTC Revision 1.26 by sysadm, Tue Jun 17 13:17:04 2025 UTC
# Line 27  Line 27 
27  #include <errno.h>  #include <errno.h>
28  #include <signal.h>  #include <signal.h>
29  #include <string.h>  #include <string.h>
 #include <sys/types.h>  
30  #include <time.h>  #include <time.h>
31  #include <unistd.h>  #include <unistd.h>
32    #include <sys/types.h>
33    
34  int list_section(void *param)  int list_section(void *param)
35  {  {
# Line 86  int exec_mbem(void *param) Line 86  int exec_mbem(void *param)
86          return REDRAW;          return REDRAW;
87  }  }
88    
89  int exitbbs(void *param)  int exit_bbs(void *param)
90  {  {
91          return EXITBBS;          return EXITBBS;
92  }  }
93    
94  int license(void *param)  int license(void *param)
95  {  {
96          display_file(DATA_LICENSE, 1, 0);          display_file(DATA_LICENSE, 0);
97    
98          return REDRAW;          return REDRAW;
99  }  }
100    
101  int copyright(void *param)  int copyright(void *param)
102  {  {
103          display_file(DATA_COPYRIGHT, 1, 1);          display_file(DATA_COPYRIGHT, 1);
104    
105          return REDRAW;          return REDRAW;
106  }  }
107    
108  int reloadbbsmenu(void *param)  int reload_bbs_conf(void *param)
109  {  {
110          clearscr();          clearscr();
111    
# Line 125  int reloadbbsmenu(void *param) Line 125  int reloadbbsmenu(void *param)
125          return REDRAW;          return REDRAW;
126  }  }
127    
128  int shutdownbbs(void *param)  int shutdown_bbs(void *param)
129  {  {
130          log_std("Notify main process to exit\n");          log_common("Notify main process to exit\n");
131    
132          if (kill(getppid(), SIGTERM) < 0)          if (kill(getppid(), SIGTERM) < 0)
133          {          {


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

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