-
- BlackBerry Dynamics
- Runtime library for iOS applications
- 12.0.1.79
Go to the documentation of this file.
5 #ifndef GD_C_FILESYSTEM_H
6 #define GD_C_FILESYSTEM_H
36 # define GD_C_API __attribute__((visibility("default")))
47 # define GD_ATTRIBUTE(ignore)
49 # define GD_ATTRIBUTE __attribute__
124 GD_C_API
size_t GD_fread(
void* ptr,
size_t size,
size_t count,
GD_FILE* filePointer);
152 GD_C_API
size_t GD_fwrite(
const void* ptr,
size_t size,
size_t count,
GD_FILE* filePointer);
161 GD_C_API
int GD_remove(
const char* filename);
195 GD_C_API
int GD_fseek(
GD_FILE* filePointer,
long int offset,
int origin);
281 GD_C_API
int GD_truncate(const
char* filename, off_t length);
488 GD_C_API
int GD_rename(const
char* oldname, const
char* newname);
638 GD_C_API
int GD_mkdir(const
char* dirname, mode_t mode);
691 GD_C_API
int GD_readdir_r(
GD_DIR* dirp, struct dirent* entry, struct dirent** result);
736 GD_C_API
int GD_stat(const
char* path, struct stat* buf);
785 #endif // GD_C_FILESYSTEM_H
int GD_setvbuf(GD_FILE *filePointer, char *buf, int mode, size_t size)
Change stream buffering.
struct dirent * GD_readdir(GD_DIR *dirp)
Read next directory entry.
void GD_rewinddir(GD_DIR *dirp)
Reset directory stream.
int GD_vfprintf(GD_FILE *filePointer, const char *format, va_list args)
Write formatted data from variable argument list to stream.
int GD_fputc(int character, GD_FILE *filePointer)
Write character to stream.
int GD_rename(const char *oldname, const char *newname)
Rename file.
char * GD_tmpnam(char *str)
Generate a unique file name.
int GD_fgetc(GD_FILE *filePointer)
Get character from stream.
int GD_fsetpos(GD_FILE *filePointer, const fpos_t *pos)
Set position indicator of stream.
off_t GD_ftello(GD_FILE *filePointer)
Get the current position of the file pointer.
int GD_mkdir(const char *dirname, mode_t mode)
Create a directory at the specified path.
#define GD_ATTRIBUTE
Definition: GD_C_FileSystem.h:49
int GD_stat(const char *path, struct stat *buf)
File statistics.
int GD_fscanf(GD_FILE *filePointer, const char *format,...)
Read formatted data from stream.
int GD_truncate(const char *filename, off_t length)
Truncate a file that is in the secure store.
size_t GD_fread(void *ptr, size_t size, size_t count, GD_FILE *filePointer)
Read from a file that is in the secure store, previously opened in read mode with GD_fopen.
void GD_setbuf(GD_FILE *filePointer, char *buf)
Change stream buffering.
long int GD_ftell(GD_FILE *filePointer)
Get the current position of the file pointer.
int GD_fseek(GD_FILE *filePointer, long int offset, int origin)
Set the position of the file pointer.
int GD_getc(GD_FILE *filePointer)
Get character from stream.
int GD_fprintf(GD_FILE *filePointer, const char *format,...)
Write formatted data to stream.
int GD_ftruncate(GD_FILE *filePointer, off_t length)
Truncate a file that is in the secure store.
int GD_fflush(GD_FILE *filePointer)
Flush stream.
void GD_clearerr(GD_FILE *filePointer)
Clear error indicators.
int GD_fsync(GD_FILE *filePointer)
Flush stream and synchronize.
size_t GD_FILE
C API file structure, for accessing secure storage.
Definition: GD_C_FileSystem.h:20
long GD_telldir(GD_DIR *dirp)
Current location of a directory stream.
char * GD_fgets(char *buf, int count, GD_FILE *filePointer)
Get string from stream.
size_t GD_fwrite(const void *ptr, size_t size, size_t count, GD_FILE *filePointer)
Write to a file that is in the secure store, previously opened in write mode with GD_fopen.
int GD_fputs(const char *buf, GD_FILE *filePointer)
Write string to stream.
GD_FILE * GD_freopen(const char *filename, const char *mode, GD_FILE *filePointer)
Reopen stream with different file or mode.
int GD_fclose(GD_FILE *filePointer)
Close a file that was previously opened.
int GD_fgetpos(GD_FILE *filePointer, fpos_t *pos)
Get current position in stream.
GD_DIR * GD_opendir(const char *dirname)
Open a directory at specified path.
int GD_feof(GD_FILE *filePointer)
Test if the file pointer is at the end of the file.
int GD_fseeko(GD_FILE *filePointer, off_t offset, int origin)
Set the position of the file pointer.
int GD_vfscanf(GD_FILE *filePointer, const char *format, va_list args)
Read formatted data from stream into variable argument list.
void GD_rewind(GD_FILE *filePointer)
Set position of stream to the beginning.
int GD_ferror(GD_FILE *filePointer)
Check error indicator.
int GD_closedir(GD_DIR *dirp)
Close an already opened directory stream.
int GD_ungetc(int character, GD_FILE *filePointer)
Push character back onto stream.
void GD_setbuffer(GD_FILE *filePointer, char *buf, int size)
Change stream buffering.
void GD_seekdir(GD_DIR *dirp, long loc)
Set the position of a directory stream.
size_t GD_DIR
C API directory structure, for accessing secure storage.
Definition: GD_C_FileSystem.h:25
GD_FILE * GD_fopen(const char *filename, const char *mode)
Open a file that is in the secure store, for reading or writing.
int GD_remove(const char *filename)
Delete a file.
int GD_readdir_r(GD_DIR *dirp, struct dirent *entry, struct dirent **result)
Read next directory entry into a buffer.
int GD_statdir(GD_DIR *dirp, const char *name, struct stat *buf)
Obtain information about the directory or file associated with the named directory stream.