|
|
1.1.1.2 ! root 1: /* $Id: nopen.h,v 1.3 2007/05/10 00:54:32 rswindell Exp $ */ ! 2: ! 3: /* "Network-file Open" (nopen) and friends */ 1.1 root 4: 5: /**************************************************************************** 6: * @format.tab-size 4 (Plain Text/Source Code File Header) * 7: * @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) * 8: * * 1.1.1.2 ! root 9: * Copyright 2007 Rob Swindell - http://www.synchro.net/copyright.html * 1.1 root 10: * * 11: * This program is free software; you can redistribute it and/or * 12: * modify it under the terms of the GNU General Public License * 13: * as published by the Free Software Foundation; either version 2 * 14: * of the License, or (at your option) any later version. * 15: * See the GNU General Public License for more details: gpl.txt or * 16: * http://www.fsf.org/copyleft/gpl.html * 17: * * 18: * Anonymous FTP access to the most recent released source is available at * 19: * ftp://vert.synchro.net, ftp://cvs.synchro.net and ftp://ftp.synchro.net * 20: * * 21: * Anonymous CVS access to the development source and modification history * 22: * is available at cvs.synchro.net:/cvsroot/sbbs, example: * 23: * cvs -d :pserver:[email protected]:/cvsroot/sbbs login * 24: * (just hit return, no password is necessary) * 25: * cvs -d :pserver:[email protected]:/cvsroot/sbbs checkout src * 26: * * 27: * For Synchronet coding style and modification guidelines, see * 28: * http://www.synchro.net/source.html * 29: * * 30: * You are encouraged to submit any modifications (preferably in Unix diff * 31: * format) via e-mail to [email protected] * 32: * * 33: * Note: If this box doesn't appear square, then you need to fix your tabs. * 34: ****************************************************************************/ 35: 36: #ifndef _NOPEN_H 37: #define _NOPEN_H 38: 1.1.1.2 ! root 39: #include <stdio.h> /* FILE */ ! 40: #include "gen_defs.h" /* BOOL */ ! 41: 1.1 root 42: #ifdef __cplusplus 43: extern "C" { 44: #endif 45: 46: int nopen(const char* str, int access); 47: FILE * fnopen(int* file, const char* str, int access); 48: BOOL ftouch(const char* fname); 49: BOOL fmutex(const char* fname, const char* text, long max_age); 50: 51: #ifdef __cplusplus 52: } 53: #endif 54: 55: #endif /* Don't add anything after this line */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.