Barracuda Application Server C/C++ Reference
Native APIs, integration guides, and platform interfaces
BaFile.h
Go to the documentation of this file.
1/*
2 * ____ _________ __ _
3 * / __ \___ ____ _/ /_ __(_)___ ___ ___ / / ____ ____ _(_)____
4 * / /_/ / _ \/ __ `/ / / / / / __ `__ \/ _ \/ / / __ \/ __ `/ / ___/
5 * / _, _/ __/ /_/ / / / / / / / / / / / __/ /___/ /_/ / /_/ / / /__
6 * /_/ |_|\___/\__,_/_/ /_/ /_/_/ /_/ /_/\___/_____/\____/\__, /_/\___/
7 * /____/
8 *
9 * Barracuda Embedded Web-Server
10 *
11 ****************************************************************************
12 * HEADER
13 *
14 * $Id: BaFile.h 5978 2026-09-11 16:13:48Z 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 */
40#ifndef __BaFile_h
41#define __BaFile_h
42
56#include <IoIntf.h>
57
58#ifdef __cplusplus
59extern "C" {
60#endif
61
72BA_API DirIntfPtr baOpenDir(const char* dirname, int* status, const char** ecode);
73
78BA_API int baCloseDir(DirIntfPtr* dirIntf);
79
84BA_API int baStat(const char* name, IoStat* st);
85
97BA_API ResIntfPtr baOpenRes(const char* name,U32 mode,int* status,const char** ecode);
98
103BA_API int baCloseRes(ResIntfPtr* fp);
104
110BA_API int baMkDir(const char* dname, const char** ecode);
111
117BA_API int baRmdDir(const char* dname, const char** ecode);
118
124BA_API int baRemove(const char* fname, const char** ecode);
125
133BA_API int baRename(const char* from, const char* to, const char** ecode);
134
135#ifdef __cplusplus
136}
137#endif
138 /* end of BaFile */
140
141#endif
BA_API int baCloseRes(ResIntfPtr *fp)
Close a resource handle, including when the underlying close reports failure.
BA_API int baRename(const char *from, const char *to, const char **ecode)
Rename a file or directory.
BA_API int baCloseDir(DirIntfPtr *dirIntf)
Close a directory iterator.
BA_API int baStat(const char *name, IoStat *st)
Read file or directory metadata.
BA_API ResIntfPtr baOpenRes(const char *name, U32 mode, int *status, const char **ecode)
Open a binary file for reading or writing.
BA_API int baMkDir(const char *dname, const char **ecode)
Create a directory.
BA_API int baRemove(const char *fname, const char **ecode)
Remove a file.
BA_API int baRmdDir(const char *dname, const char **ecode)
Remove an empty directory.
BA_API DirIntfPtr baOpenDir(const char *dirname, int *status, const char **ecode)
Open a directory through the platform's default DiskIo.
uint32_t U32
Unsigned 32-bit integer.
Definition: GenPrimT.h:93
Resource information.
Definition: IoIntf.h:170