Commit | Line | Data |
---|---|---|
a33962ba | 1 | /* |
9028e234 IJ |
2 | * Copyright 1996-2013 Ian Jackson <ijackson@chiark.greenend.org.uk> |
3 | * Copyright 1998 David Damerell <damerell@chiark.greenend.org.uk> | |
4 | * Copyright 1999,2003 | |
5 | * Chancellor Masters and Scholars of the University of Cambridge | |
6 | * Copyright 2010 Tony Finch <fanf@dotat.at> | |
a33962ba | 7 | * |
8 | * This is free software; you can redistribute it and/or modify it | |
9 | * under the terms of the GNU General Public License as published by | |
9028e234 | 10 | * the Free Software Foundation; either version 3 of the License, or |
a33962ba | 11 | * (at your option) any later version. |
12 | * | |
13 | * This program is distributed in the hope that it will be useful, but | |
14 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
16 | * General Public License for more details. | |
17 | * | |
18 | * You should have received a copy of the GNU General Public License | |
9028e234 | 19 | * along with userv-utils; if not, see http://www.gnu.org/licenses/. |
a33962ba | 20 | */ |
6a580c17 | 21 | |
22 | #ifndef UCGI_H | |
23 | #define UCGI_H | |
24 | ||
25 | #include <stdlib.h> | |
26 | ||
27 | #define MAX_ARGS 1024 | |
28 | #define MAX_USERNAME_LEN 1024 | |
29 | #define MAX_SCRIPTPATH_LEN 1024 | |
30 | #define MAX_ENVVAR_VALUE (1024*1024) | |
31 | ||
32 | void syserror(const char *m); | |
33 | void error(const char *m); | |
34 | void *xmalloc(size_t sz); | |
35 | void xsetenv(const char *en, const char *ev, int overwrite); | |
36 | ||
37 | extern const char *const envok[]; | |
38 | extern const int nenvok; | |
39 | extern int debugmode; | |
40 | ||
41 | #endif |