mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-10 05:52:21 +08:00
Added macros for the 'type' part of an fopen, freopen or fdopen.
<Read|Write>[Update]<Binary file>|<text file> eg: fopen("foo", FOPEN_WB) to open for writing binary. Usefull for vms, dos and who knows what else.
This commit is contained in:
@ -43,3 +43,18 @@ typedef short int16_type;
|
||||
typedef unsigned short uint16_type;
|
||||
typedef int int32_type;
|
||||
typedef unsigned int uint32_type;
|
||||
/* Macros for the 'type' part of an fopen, freopen or fdopen.
|
||||
<Read|Write>[Update]<Binary file><text file>
|
||||
*/
|
||||
#define FOPEN_RB "r"
|
||||
#define FOPEN_WB "w"
|
||||
#define FOPEN_AB "a"
|
||||
#define FOPEN_RUB "r+"
|
||||
#define FOPEN_WUB "w+"
|
||||
#define FOPEN_AUB "a+"
|
||||
#define FOPEN_RT "r"
|
||||
#define FOPEN_WT "w"
|
||||
#define FOPEN_AT "a"
|
||||
#define FOPEN_RUT "r+"
|
||||
#define FOPEN_WUT "w+"
|
||||
#define FOPEN_AUT "a+"
|
||||
|
Reference in New Issue
Block a user