~ubuntu-branches/ubuntu/quantal/gclcvs/quantal

« back to all changes in this revision

Viewing changes to binutils/include/fopen-same.h

  • Committer: Bazaar Package Importer
  • Author(s): Camm Maguire
  • Date: 2004-06-24 15:13:46 UTC
  • Revision ID: james.westby@ubuntu.com-20040624151346-xh0xaaktyyp7aorc
Tags: 2.7.0-26
C_GC_OFFSET is 2 on m68k-linux

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Macros for the 'type' part of an fopen, freopen or fdopen. 
 
2
 
 
3
        <Read|Write>[Update]<Binary file|text file>
 
4
 
 
5
   This version is for "same" systems, where text and binary files are
 
6
   the same.  An example is Unix.  Many Unix systems could also add a
 
7
   "b" to the string, indicating binary files, but some reject this
 
8
   (and thereby don't conform to ANSI C, but what else is new?).
 
9
 
 
10
   This file is designed for inclusion by host-dependent .h files.  No
 
11
   user application should include it directly, since that would make
 
12
   the application unable to be configured for both "same" and "binary"
 
13
   variant systems.  */
 
14
 
 
15
#define FOPEN_RB        "r"
 
16
#define FOPEN_WB        "w"
 
17
#define FOPEN_AB        "a"
 
18
#define FOPEN_RUB       "r+"
 
19
#define FOPEN_WUB       "w+"
 
20
#define FOPEN_AUB       "a+"
 
21
 
 
22
#define FOPEN_RT        "r"
 
23
#define FOPEN_WT        "w"
 
24
#define FOPEN_AT        "a"
 
25
#define FOPEN_RUT       "r+"
 
26
#define FOPEN_WUT       "w+"
 
27
#define FOPEN_AUT       "a+"