chiark / gitweb /
Update statuses.
[userv-utils] / www-cgi / ucgi.h
CommitLineData
39c4ee86 1/*
2 * Copyright (C) 1998-1999 Ian Jackson
3 *
4 * This is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with userv-utils; if not, write to the Free Software
16 * Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 *
18 * $Id: ucgi.h,v 1.2 1999/11/09 23:04:32 ian Exp $
19 */
6a580c17 20
21#ifndef UCGI_H
22#define UCGI_H
23
24#include <stdlib.h>
25
26#define MAX_ARGS 1024
27#define MAX_USERNAME_LEN 1024
28#define MAX_SCRIPTPATH_LEN 1024
29#define MAX_ENVVAR_VALUE (1024*1024)
30
31void syserror(const char *m);
32void error(const char *m);
33void *xmalloc(size_t sz);
34void xsetenv(const char *en, const char *ev, int overwrite);
35
36extern const char *const envok[];
37extern const int nenvok;
38extern int debugmode;
39
40#endif