File: openers.h

package info (click to toggle)
gopher 2.3-2
  • links: PTS
  • area: non-free
  • in suites: hamm
  • size: 2,364 kB
  • ctags: 2,030
  • sloc: ansic: 22,451; perl: 1,950; sh: 1,510; makefile: 397; asm: 1
file content (74 lines) | stat: -rw-r--r-- 2,082 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/********************************************************************
 * $Author: lindner $
 * $Revision: 3.7 $
 * $Date: 1996/01/04 18:30:14 $
 * $Source: /home/arcwelder/GopherSrc/CVS/gopher+/gopherd/openers.h,v $
 * $State: Exp $
 *
 * Paul Lindner, University of Minnesota CIS.
 *
 * Copyright 1991, 1992 by the Regents of the University of Minnesota
 * see the file "Copyright" in the distribution for conditions of use.
 *********************************************************************
 * MODULE: openers.c
 * Secure file access routines.
 *********************************************************************
 * Revision History:
 * $Log: openers.h,v $
 * Revision 3.7  1996/01/04  18:30:14  lindner
 * Fix for Ustat on Linux, autoconf changes
 *
 * Revision 3.6  1995/09/25  05:02:38  lindner
 * Convert to ANSI C
 *
 * Revision 3.5  1994/03/17  04:12:50  lindner
 * Fix for VMS
 *
 * Revision 3.4  1993/07/30  19:10:09  lindner
 * Fix for ultrix
 *
 * Revision 3.3  1993/07/23  03:17:10  lindner
 * added stat.h
 *
 * Revision 3.2  1993/03/24  20:29:45  lindner
 * Added Dirent.h, needed for those darn directory routines.
 *
 * Revision 3.1.1.1  1993/02/11  18:02:52  lindner
 * Gopher+1.2beta release
 *
 * Revision 1.1  1992/12/10  23:13:27  lindner
 * gopher 1.1 release
 *
 *
 *********************************************************************/

/*
 * Declarations for openers.c routines.
 */

#include <stdio.h>
#include "Dirent.h"

#ifndef VMS
#  include <sys/types.h>
#  include <sys/stat.h>
#else
#  include <stat.h>
#endif

/* restricted versions */
extern	int	ropen(char *path, int flags, int mode);
extern	FILE   *rfopen(char *filename, char *type);
extern	int	rstat(char *path, struct stat *buf);
extern	DIR    *ropendir(char *dirname);
extern	int	rchdir(char *path);

/* unrestricted versions */
extern	int	uopen(char *path, int flags, int mode);
extern	FILE   *ufopen(char *filename, char *type);
extern	int	Ustat(char *path, struct stat *buf);
extern	DIR    *uopendir(char *dirname);
extern	int	uchdir(char *path);

extern  char   *fixfile(char*);