Back to index

wims  3.65+svn20090927
wimsshm.h
Go to the documentation of this file.
00001 /*    Copyright (C) 1998-2003 XIAO, Gang of Universite de Nice - Sophia Antipolis
00002  *
00003  *  This program is free software; you can redistribute it and/or modify
00004  *  it under the terms of the GNU General Public License as published by
00005  *  the Free Software Foundation; either version 2 of the License, or
00006  *  (at your option) any later version.
00007  *
00008  *  This program is distributed in the hope that it will be useful,
00009  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011  *  GNU General Public License for more details.
00012  *
00013  *  You should have received a copy of the GNU General Public License
00014  *  along with this program; if not, write to the Free Software
00015  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00016  */
00017 
00018 /* WWW interactive multipurpose server, shared memory definitions */
00019 
00020 #ifndef wimsshm_h
00021 
00022 #define SHM_NAME "/wims.shm"
00023 #define SHM_SIZE 4096
00024 
00025 typedef struct shm_struct {
00026     int dm_pid, dm_time, dm_lock;
00027     char loadavg[64];
00028     int haschroot;
00029     char myip[32];
00030     
00031     char *cf_commonpath;
00032     char *cf_aliased_cgi;
00033     char *cf_aliased_getfile;
00034     int   cf_backup_hour;
00035     char *cf_cgi_name;
00036     int   cf_class_limit;
00037     int   cf_class_quota;
00038     int   cf_superclass_quota;
00039     char *cf_class_regpass;
00040     int   cf_class_user_limit;
00041     char *cf_css;
00042     char *cf_default_anim_format;
00043     char *cf_default_ins_format;
00044     char *cf_default_insplot_font;
00045     int   cf_default_texposition;
00046     char *cf_devel_modules;
00047     int   cf_doc_quota;
00048     char *cf_doc_regpass;
00049     int   cf_examlog_limit;
00050     
00051     int fcachecnt;
00052 } shm_struct;
00053 
00054 struct shm_struct *shmptr;
00055 
00056 #define wimsshm_h
00057 #endif
00058