/[LeafOK_CVS]/lbbs/include/common.h
ViewVC logotype

Diff of /lbbs/include/common.h

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

Revision 1.3 by sysadm, Mon Oct 18 08:17:50 2004 UTC Revision 1.19 by sysadm, Sun May 4 14:54:55 2025 UTC
# Line 1  Line 1 
1  /***************************************************************************  /***************************************************************************
2                            bbsd.c  -  description                                                    common.h  -  description
3                               -------------------                                                           -------------------
4      begin                : Mon Oct 18 2004          begin                : Mon Oct 18 2004
5      copyright            : (C) 2004 by Leaflet          copyright            : (C) 2004 by Leaflet
6      email                : leaflet@leafok.com          email                : leaflet@leafok.com
7   ***************************************************************************/   ***************************************************************************/
8    
9  /***************************************************************************  /***************************************************************************
# Line 15  Line 15 
15   *                                                                         *   *                                                                         *
16   ***************************************************************************/   ***************************************************************************/
17    
18  #include <stdio.h>  #ifndef _COMMON_H_
19  #include <time.h>  #define _COMMON_H_
20  #include <unistd.h>  
21  #include <sys/param.h>  #include <stddef.h>
22  #include <sys/types.h>  
23  #include <sys/stat.h>  #define LINE_BUFFER_LEN 1024
24    #define FILE_PATH_LEN 4096
25    #define MAX_FILE_LINES 65536
26    
27    // Version
28    extern char app_version[256];
29    
30    // Enviroment
31    #define CONF_BBSNET "conf/bbsnet.conf"
32    
33    #define LOG_FILE_INFO "log/bbsd.log"
34    #define LOG_FILE_ERROR "log/error.log"
35    
36    #define DATA_WELCOME "data/welcome.txt"
37    #define DATA_REGISTER "data/register.txt"
38    #define DATA_GOODBYE "data/goodbye.txt"
39    #define DATA_LICENSE "data/license.txt"
40    #define DATA_COPYRIGHT "data/copyright.txt"
41    #define DATA_LOGIN_ERROR "data/login_error.txt"
42    #define DATA_ACTIVE_BOARD "data/active_board.txt"
43    #define DATA_READ_HELP "data/read_help.txt"
44    
45    #define VAR_MAX_USER_ONLINE "var/max_user_online.dat"
46    
47    // Network
48    extern int socket_server;
49    extern int socket_client;
50    extern char hostaddr_server[50];
51    extern char hostaddr_client[50];
52    extern int port_server;
53    extern int port_client;
54    
55    // Signal
56    #define SIG_RELOAD_MENU 0x22
57    
58    extern const char *str_space(char *string, int length);
59    extern const char *get_time_str(char *string, size_t length);
60    
61    // Signal handler
62    extern void reload_bbs_menu(int);
63    extern void system_exit(int);
64    extern void child_exit(int);
65    
66    // System
67    extern int SYS_exit;
68    extern int SYS_child_process_count;
69    
70    #endif //_COMMON_H_


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

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