My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
sw_syslibc.h
Go to the documentation of this file.
1 /*
2  * OpenVirtualization:
3  * For additional details and support contact developer@sierraware.com.
4  * Additional documentation can be found at www.openvirtualization.org
5  *
6  * Copyright (C) 2010-2014 SierraWare
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * as published by the Free Software Foundation; either version 2
11  * of the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21  *
22  */
23 /*
24  */
25 
26 /* This Header file for translate functions from libc to FAT filesystem
27  functions */
28 
29 
30 
31 #ifndef SW_SYSLIBC_H
32 #define SW_SYSLIBC_H
33 
34 #include <sw_types.h>
35 
49 int f_open(const unsigned char *name, int flags, ...);
50 
65 int f_read(int file, unsigned char *ptr, int len);
66 
78 int f_write(int file, unsigned char *ptr, int len);
79 
92 long f_lseek(int file, long offset, int flags);
93 
103 int f_close(int file);
104 
114 int f_remove(const char *rm_p);
115 
116 #endif
long f_lseek(int file, long offset, int flags)
f_lseek - Sets the position indicator associated with the stream to a new position ...
Definition: sw_syslibc.c:127
int f_close(int file)
f_close - function will flushes the stream pointed to by filepointer
Definition: sw_syslibc.c:150
int f_write(int file, unsigned char *ptr, int len)
f_write - Writes an array of count elements to an outputstream
Definition: sw_syslibc.c:100
int f_open(const unsigned char *name, int flags,...)
f_open-function shall open the file whose pathname is the string pointed to by filename, and associates a stream with it
Definition: sw_syslibc.c:47
int f_remove(const char *rm_p)
f_remove - Deletes the file whose name is specified in filename
Definition: sw_syslibc.c:173
int f_read(int file, unsigned char *ptr, int len)
f_read - Reads an array of count elements from an inputstream
Definition: sw_syslibc.c:75