OpenCores
URL https://opencores.org/ocsvn/mb-jpeg/mb-jpeg/trunk

Subversion Repositories mb-jpeg

[/] [mb-jpeg/] [tags/] [STEP1_1/] [microblaze_0/] [include/] [sysace_stdio.h] - Blame information for rev 66

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 quickwayne
/////////////////////////////////////////////////////////////////////////////
2
//
3
// Copyright (c) 2002-2004 Xilinx, Inc.  All rights reserved.
4
//
5
// Xilinx, Inc.
6
//
7
// XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS" AS A 
8
// COURTESY TO YOU.  BY PROVIDING THIS DESIGN, CODE, OR INFORMATION AS
9
// ONE POSSIBLE   IMPLEMENTATION OF THIS FEATURE, APPLICATION OR 
10
// STANDARD, XILINX IS MAKING NO REPRESENTATION THAT THIS IMPLEMENTATION
11
// IS FREE FROM ANY CLAIMS OF INFRINGEMENT, AND YOU ARE RESPONSIBLE 
12
// FOR OBTAINING ANY RIGHTS YOU MAY REQUIRE FOR YOUR IMPLEMENTATION.  
13
// XILINX EXPRESSLY DISCLAIMS ANY WARRANTY WHATSOEVER WITH RESPECT TO 
14
// THE ADEQUACY OF THE IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO 
15
// ANY WARRANTIES OR REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE 
16
// FROM CLAIMS OF INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY 
17
// AND FITNESS FOR A PARTICULAR PURPOSE.
18
/////////////////////////////////////////////////////////////////////////////
19
 
20
 
21
#ifndef _SYSACE_STDIO_H_
22
#define _SYSACE_STDIO_H_
23
 
24
 
25
#define SYSACE_FILE   void 
26
#include <stdio.h>
27
 
28
// IF YOU WANT TO USE fopen instead of sysace_fopen, 
29
// and fclose, fread and fwrite instead of the corresponding
30
// sysace_ prefixed function names uncomment the following few lines
31
// and comment out the preceding two lines of code
32
// WARNING: This will cause link time failures for functions
33
// such as printf and scanf that depend on standard definitions of fwrite/fread
34
// so use with caution
35
// #define SYSACE_FILE    FILE
36
// typedef void FILE;
37
// 
38
// #define fopen  sysace_fopen
39
// #define fclose sysace_fclose
40
// #define fread  sysace_fread
41
// #define fwrite sysace_fwrite
42
 
43
 
44
SYSACE_FILE *sysace_fopen(const char *file, const char *mode );
45
int sysace_fclose(SYSACE_FILE *stream );
46
int sysace_fread(void *buffer, int size, int count, SYSACE_FILE *stream );
47
int sysace_fwrite(void *buffer, int size, int count, SYSACE_FILE *stream );
48
int sysace_mkdir(const char *path);
49
int sysace_chdir(const char *path);
50
 
51
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.