ZenWINX Logo ZenWINX

Architecture - Reference Manual - Guides

File

Functions

WINX_FILE *__stdcall winx_fopen (const char *filename, const char *mode)
 fopen() native equivalent.
size_t __stdcall winx_fread (void *buffer, size_t size, size_t count, WINX_FILE *f)
 fread() native equivalent.
size_t __stdcall winx_fwrite (const void *buffer, size_t size, size_t count, WINX_FILE *f)
 fwrite() native equivalent.
int __stdcall winx_ioctl (WINX_FILE *f, int code, char *description, void *in_buffer, int in_size, void *out_buffer, int out_size, int *pbytes_returned)
 Sends an I/O control code to the specified device.
int __stdcall winx_fflush (WINX_FILE *f)
 fflush() native equivalent.
void __stdcall winx_fclose (WINX_FILE *f)
 fclose() native equivalent.
int __stdcall winx_create_directory (const char *path)
 Creates a directory.
int __stdcall winx_delete_file (const char *filename)
 Deletes a file.

Function Documentation

WINX_FILE* __stdcall winx_fopen ( const char *  filename,
const char *  mode 
)

fopen() native equivalent.

Note:
Only r, w, a, r+, w+, a+ modes are supported.

Definition at line 34 of file file.c.

References winx_heap_alloc().

int __stdcall winx_ioctl ( WINX_FILE *  f,
int  code,
char *  description,
void *  in_buffer,
int  in_size,
void *  out_buffer,
int  out_size,
int *  pbytes_returned 
)

Sends an I/O control code to the specified device.

Parameters:
[in] f the file handle.
[in] code the IOCTL code.
[in] description the string explaining the meaning of the request, used by error handling code.
[in] in_buffer the input buffer pointer.
[in] in_size the input buffer size, in bytes.
[out] out_buffer the output buffer pointer.
[in] out_size the output buffer size, in bytes.
[out] pbytes_returned pointer to the variable receiving the number of bytes written to the output buffer.
Returns:
Zero for success, negative value otherwise.

Definition at line 176 of file file.c.

int __stdcall winx_fflush ( WINX_FILE *  f  ) 

fflush() native equivalent.

Returns:
Zero for success, negative value otherwise.

Definition at line 216 of file file.c.

int __stdcall winx_create_directory ( const char *  path  ) 

Creates a directory.

Parameters:
[in] path the native path to the directory.
Returns:
Zero for success, negative value otherwise.
Note:
If the requested directory already exists this function returns success.

Definition at line 248 of file file.c.

int __stdcall winx_delete_file ( const char *  filename  ) 

Deletes a file.

Parameters:
[in] filename the native path to the file.
Returns:
Zero for success, negative value otherwise.

Definition at line 294 of file file.c.


Generated on Sat May 29 23:06:45 2010 for ZenWINX by doxygen 1.6.2