"Fossies" - the Fresh Open Source Software Archive 
Member "cgiwrap-4.1/util.h" (16 Jun 2008, 2689 Bytes) of package /linux/www/old/cgiwrap-4.1.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
1 /*
2 * CGIWrap is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 2 of the License, or
5 * (at your option) any later version.
6 *
7 * CGIWrap is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * along with CGIWrap; if not, write to the Free Software
14 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
15 *
16 * Copyright 2003-2005, Nathan Neulinger <nneul@neulinger.org>
17 *
18 */
19
20 /* rcsid: $Id: util.h 306 2008-06-13 14:02:02Z nneul $ */
21
22 /**
23 ** File: util.h
24 ** Purpose: Prototypes and defines for routines in util.c
25 **/
26
27 char *HTMLEncode( char *what );
28 char *SafeMalloc( size_t size, char *what );
29 void SafePutenv( char * string, char *what );
30 char **CreateARGV( char *scrStr, int argc, char *argv[]);
31 char **CreateInterpreterARGV( char *interp, char *scrStr, int argc, char *argv[]);
32 void ChangeID(struct passwd *user);
33 void ChangeAuxGroups(struct passwd *user);
34 void SetResourceLimits(void);
35 void SetEnvironmentVariables(void);
36 void SetSignals(void);
37 char *GetValue(char *keyword, char *string);
38 int CountSubDirs(char *path);
39 int CheckPath(char *path);
40 void ChangeToCgiDir(struct passwd *user);
41 void OutputEnvironment(void);
42 void SaveEnvironment(void);
43 void CheckUser(struct passwd *user);
44 void CheckAccess_Helper(struct passwd *user, char *allowfile, char *denyfile);
45 void CheckUserAccess(struct passwd *user);
46 void CheckVHostUserAccess(struct passwd *user);
47 char *CondenseSlashes(char *path);
48 void CheckScriptFile(void);
49 void VerifyExecutingUser(void);
50 char *BuildScriptPath(char *basedir, char *scrStr);
51 char *GetPathComponents(int count, char *path);
52 char *StripPathComponents(int count, char *path);
53 void ChangeID ( struct passwd *user);
54 void ChangeAuxGroups(struct passwd *user);
55 int UserInFile(char *filename, char *user);
56 void DoPError (char *msg);
57 void ChangeToCGIDir(char *scriptPath);
58 void DoError (char *msg);
59 void Log (char *user, char *script, char *msg);
60 void SetScriptName(char *userStr, char *scrStr );
61 void SetScriptFilename(char *scriptPath );
62 void SetPathTranslated(char *cgiBaseDir, char *scriptPath);
63 void Create_AFS_PAG(void);
64 char *GetUserDir(char *user);
65 char *GetBaseDirectory(struct passwd *user);
66 int StringEndsWith(char *string, char *ending);
67
68 int FileExists(char *path);
69 int DirExists(char *path);
70 void LogInit (void);
71 void LogEnd (void);