SMOLNET PORTAL home about changes
/********************************************************************
 * wilkinson
 * 3.5VMS
 * 1995/09/08 15:50   
 * gopher_root1:[gopher.g2.vms2_13.gopherd]openers.h,v
 * 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:
 * openers.h,v
 * Revision 3.5VMS 1995/09/08 15:50    wilkinson
 * Consolodate VMS/Unix source code for server as well as client
 *
 * 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_SERVER
#  include <sys/types.h>
#  include <sys/stat.h>
#else
#  define _XOPEN_SOURCE	    /*	to get time_t definitions in st_*time	*/
#  include <stat.h>
#endif

/* restricted versions */
extern	int	ropen();
extern	FILE	*rfopen();
extern  FILE    *rfopenz();
extern	int	rstat();
extern	DIR	*ropendir();
extern	int	rchdir();

/* unrestricted versions */
extern	int	uopen();
extern	FILE	*ufopen();
extern	int	ustat();
extern	DIR	*uopendir();
extern	int	uchdir();

#ifdef VMS_SERVER
/*  OpenVMS-specific emulations */
#define readdir(a) VMS$Wild_Search(NULL)
#define opendir(a) VMS$Wild_Search(a)
char *VMS$Wild_Search(char *);
#endif
.
Response: text/plain
Original URLgopher://bitreich.org/9/gopher2007/2007-gopher-mirror/gop...
Content-Typetext/plain; charset=utf-8