Barracuda Application Server C/C++ Reference
NO
BaFile.h
1/*
2 * ____ _________ __ _
3 * / __ \___ ____ _/ /_ __(_)___ ___ ___ / / ____ ____ _(_)____
4 * / /_/ / _ \/ __ `/ / / / / / __ `__ \/ _ \/ / / __ \/ __ `/ / ___/
5 * / _, _/ __/ /_/ / / / / / / / / / / / __/ /___/ /_/ / /_/ / / /__
6 * /_/ |_|\___/\__,_/_/ /_/ /_/_/ /_/ /_/\___/_____/\____/\__, /_/\___/
7 * /____/
8 *
9 * Barracuda Embedded Web-Server
10 *
11 ****************************************************************************
12 * HEADER
13 *
14 * $Id: BaFile.h 4915 2021-12-01 18:26:55Z wini $
15 *
16 * COPYRIGHT: Real Time Logic, 2006
17 *
18 * This software is copyrighted by and is the sole property of Real
19 * Time Logic LLC. All rights, title, ownership, or other interests in
20 * the software remain the property of Real Time Logic LLC. This
21 * software may only be used in accordance with the terms and
22 * conditions stipulated in the corresponding license agreement under
23 * which the software has been supplied. Any unauthorized use,
24 * duplication, transmission, distribution, or disclosure of this
25 * software is expressly forbidden.
26 *
27 * This Copyright notice may not be removed or modified without prior
28 * written consent of Real Time Logic LLC.
29 *
30 * Real Time Logic LLC. reserves the right to modify this software
31 * without notice.
32 *
33 * http://www.realtimelogic.com
34 ****************************************************************************
35 *
36 *
37 */
38#ifndef __BaFile_h
39#define __BaFile_h
40
54#include <IoIntf.h>
55
56#ifdef __cplusplus
57extern "C" {
58#endif
59
62BA_API DirIntfPtr baOpenDir(const char* dirname, int* status, const char** ecode);
63
66BA_API int baCloseDir(DirIntfPtr* dirIntf);
67
70BA_API int baStat(const char* name, IoStat* st);
71
72
75BA_API ResIntfPtr baOpenRes(const char* name,U32 mode,int* status,const char** ecode);
76
79BA_API int baCloseRes(ResIntfPtr* fp);
80
81
84BA_API int baMkDir(const char* dname, const char** ecode);
85
88BA_API int baRmdDir(const char* dname, const char** ecode);
89
90
93BA_API int baRemove(const char* fname, const char** ecode);
94
95
96/* Rename file or directory.
97 */
98BA_API int baRename(const char* from, const char* to, const char** ecode);
99
100#ifdef __cplusplus
101}
102#endif
103 /* end of BaFile */
105
106#endif
BA_API int baCloseRes(ResIntfPtr *fp)
Close a file descriptor.
BA_API int baCloseDir(DirIntfPtr *dirIntf)
Close a BaDir object.
BA_API int baStat(const char *name, IoStat *st)
Get information for a directory or file.
BA_API ResIntfPtr baOpenRes(const char *name, U32 mode, int *status, const char **ecode)
Open a file for binary read.
BA_API int baMkDir(const char *dname, const char **ecode)
Create directory.
BA_API int baRemove(const char *fname, const char **ecode)
Remove file.
BA_API int baRmdDir(const char *dname, const char **ecode)
Remove empty directory.
BA_API DirIntfPtr baOpenDir(const char *dirname, int *status, const char **ecode)
Opens a directory for reading.
Resource information.
Definition: IoIntf.h:168