Subversion Repositories wimsdev

Rev

Rev 15509 | Rev 16133 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 15509 Rev 15847
Line 61... Line 61...
61
#define sockfile "tmp/log/.wimslogd"
61
#define sockfile "tmp/log/.wimslogd"
62
#define debugfile "tmp/log/wimslogd.debug"
62
#define debugfile "tmp/log/wimslogd.debug"
63
 
63
 
64
/* from cache.c */
64
/* from cache.c */
65
typedef struct exodata {
65
typedef struct exodata {
66
    unsigned short int num;
66
    int active;
67
    float weight, require;
67
    float weight, require;
68
} exodata; /* General information of an exercise. Size: 10 bytes. */
68
} exodata; /* General information of an exercise. Size: 10 bytes. */
-
 
69
 
-
 
70
typedef struct sheetdata {
-
 
71
    unsigned short int start, indstart, exocnt, techcnt, techval, techoffset;
-
 
72
} sheetdata; /* General information of a sheet. Size: xx bytes. */
69
 
73
 
70
extern struct classdata {
74
extern struct classdata {
71
    char name[MAX_CLASSLEN+1];
75
    char name[MAX_CLASSLEN+1];
-
 
76
    char techs[MAX_LINELEN];
72
    time_t start, last, modif;
77
    time_t start, last, modif;
73
    int exocnt, examcnt, examstart, access;
78
    int sheetcnt, exocnt, examcnt, examstart, access;
74
    struct exodata exos[MAX_CLASSEXOS];
79
    struct exodata exos[MAX_CLASSEXOS];
75
    char ctbuf[CTBUFLEN];
80
    char ctbuf[CTBUFLEN];
76
    short int ctptr[MAX_EXOS];
81
    short int ctptr[MAX_EXOS];
-
 
82
    struct sheetdata exam, sheets[MAX_SHEETS];
77
} classdata[MAX_CLASSCACHE];
83
} classdata[MAX_CLASSCACHE];
78
int search_data(void *list, int items, size_t item_size, unsigned short int t);
84
int search_data(void *list, int items, size_t item_size, unsigned short int t);
79
struct classdata *getclasscache(char *cl);
85
struct classdata *getclasscache(char *cl);
80
extern char opt_class[MAX_CLASSLEN+1];
86
extern char opt_class[MAX_CLASSLEN+1];
81
extern char **environ;
87
extern char **environ;
Line 149... Line 155...
149
void wimslogd_error(char *msg);
155
void wimslogd_error(char *msg);
150
extern int commsock, answerlen, debugging;
156
extern int commsock, answerlen, debugging;
151
extern char commbuf[BUFFERLEN+1];
157
extern char commbuf[BUFFERLEN+1];
152
#define textbuf (commbuf+sizeof(int))
158
#define textbuf (commbuf+sizeof(int))
153
void debug(char *p,...);
159
void debug(char *p,...);
-
 
160
void my_debug(char *p,...);
154
extern char *textptr;
161
extern char *textptr;
155
void wlogdaccessfile(char *content, char *type, char *s,...);
162
void wlogdaccessfile(char *content, char *type, char *s,...);
156
int call_ssh(int wait,char *s,...);
163
int call_ssh(int wait,char *s,...);
157
int call_sh(int wait,char *s,...);
164
int call_sh(int wait,char *s,...);
158
extern int exec_wait;
165
extern int exec_wait;