1/*************************************************************************** 2 * LPRng - An Extended Print Spooler System 3 * 4 * Copyright 1988-2003, Patrick Powell, San Diego, CA 5 * papowell@lprng.com 6 * See LICENSE for conditions of use. 7 * $Id: fileopen.h,v 1.1.1.1 2008/10/15 03:28:27 james26_jang Exp $ 8 ***************************************************************************/ 9 10 11 12#ifndef _FILEOPEN_H_ 13#define _FILEOPEN_H_ 1 14 15/***************************************************************** 16 * File open functions 17 * These perform extensive checking for permissions and types 18 * see fileopen.c for details 19 *****************************************************************/ 20 21/* PROTOTYPES */ 22int Checkread( const char *file, struct stat *statb ); 23int Checkwrite( const char *file, struct stat *statb, int rw, int create, 24 int nodelay ); 25int Checkwrite_timeout(int timeout, 26 const char *file, struct stat *statb, int rw, int create, int nodelay ); 27 28#endif 29