/[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.5 by sysadm, Tue Oct 19 02:08:35 2004 UTC Revision 1.18 by sysadm, Sat May 3 06:24:54 2025 UTC
# Line 1  Line 1 
1  /***************************************************************************  /***************************************************************************
2                            common.h  -  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_
 #include <unistd.h>  
 #include <sys/param.h>  
 #include <sys/types.h>  
 #include <sys/stat.h>  
 #include <sys/socket.h>  
 #include <netinet/in.h>  
 #include <netdb.h>  
20    
21    #include <stddef.h>
22    
23    #define LINE_BUFFER_LEN 1024
24    #define FILE_PATH_LEN 1024
25    #define MAX_FILE_LINES 65536
26    
27    // Version
28    extern char app_version[256];
29    
30    // Enviroment
31  extern char app_home_dir[256];  extern char app_home_dir[256];
32    extern char app_temp_dir[256];
33    
34    // Network
35  extern int socket_server;  extern int socket_server;
36  extern int socket_client;  extern int socket_client;
37  extern char hostaddr_server[50];  extern char hostaddr_server[50];
38  extern char hostaddr_client[50];  extern char hostaddr_client[50];
39  extern int port_server;  extern int port_server;
40  extern int port_client;  extern int port_client;
41    
42    // Signal
43    #define SIG_RELOAD_MENU 0x22
44    
45    extern const char *str_space(char *string, int length);
46    extern const char *get_time_str(char *string, size_t length);
47    
48    // Signal handler
49    extern void reload_bbs_menu(int);
50    extern void system_exit(int);
51    extern void child_exit(int);
52    
53    // System
54    extern int SYS_exit;
55    extern int SYS_child_process_count;
56    
57    #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