| 1 | /*************************************************************************** |
|---|
| 2 | * Copyright (c) 2006-2008, Broadcom Corporation |
|---|
| 3 | * All Rights Reserved |
|---|
| 4 | * Confidential Property of Broadcom Corporation |
|---|
| 5 | * |
|---|
| 6 | * THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE |
|---|
| 7 | * AGREEMENT BETWEEN THE USER AND BROADCOM. YOU HAVE NO RIGHT TO USE OR |
|---|
| 8 | * EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT. |
|---|
| 9 | * |
|---|
| 10 | * $brcm_Workfile: bfile_stdio.h $ |
|---|
| 11 | * $brcm_Revision: 4 $ |
|---|
| 12 | * $brcm_Date: 8/21/08 4:18p $ |
|---|
| 13 | * |
|---|
| 14 | * Module Description: |
|---|
| 15 | * |
|---|
| 16 | * Revision History: |
|---|
| 17 | * |
|---|
| 18 | * $brcm_Log: /BSEAV/lib/bfile/bfile_stdio.h $ |
|---|
| 19 | * |
|---|
| 20 | * 4 8/21/08 4:18p rjlewis |
|---|
| 21 | * PR32813: vxworks too. |
|---|
| 22 | * |
|---|
| 23 | * 3 8/12/08 7:07p vsilyaev |
|---|
| 24 | * PR 32813: Fixed MINGW support |
|---|
| 25 | * |
|---|
| 26 | * 2 7/10/07 12:45p erickson |
|---|
| 27 | * PR32813: file compilation issues while integrating with Brutus |
|---|
| 28 | * |
|---|
| 29 | * 1 4/7/06 12:32p vsilyaev |
|---|
| 30 | * PR 20680: Added bfile library |
|---|
| 31 | * |
|---|
| 32 | * |
|---|
| 33 | ***************************************************************************/ |
|---|
| 34 | #ifndef __BFILE_STDIO_H__ |
|---|
| 35 | #define __BFILE_STDIO_H__ |
|---|
| 36 | #include "bfile_io.h" |
|---|
| 37 | #include <stdio.h> |
|---|
| 38 | |
|---|
| 39 | #if defined(_WIN32) || defined(__vxworks) |
|---|
| 40 | #define fopen64 fopen |
|---|
| 41 | #define fseeko fseek |
|---|
| 42 | #define ftello ftell |
|---|
| 43 | #endif |
|---|
| 44 | |
|---|
| 45 | #ifdef __cplusplus |
|---|
| 46 | extern "C" |
|---|
| 47 | { |
|---|
| 48 | #endif |
|---|
| 49 | |
|---|
| 50 | bfile_io_read_t bfile_stdio_read_attach(FILE *fin); |
|---|
| 51 | void bfile_stdio_read_detach(bfile_io_read_t file); |
|---|
| 52 | |
|---|
| 53 | bfile_io_write_t bfile_stdio_write_attach(FILE *fout); |
|---|
| 54 | void bfile_stdio_write_detach(bfile_io_read_t file); |
|---|
| 55 | |
|---|
| 56 | #ifdef __cplusplus |
|---|
| 57 | } |
|---|
| 58 | #endif |
|---|
| 59 | |
|---|
| 60 | #endif /* __BFILE_STDIO_H__ */ |
|---|
| 61 | |
|---|