~ubuntu-branches/ubuntu/hoary/binutils/hoary

« back to all changes in this revision

Viewing changes to include/fopen-bin.h

  • Committer: Bazaar Package Importer
  • Author(s): James Troup
  • Date: 2004-05-19 10:35:44 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040519103544-17h3o6e8pwndydrg
Tags: 2.14.90.0.7-8
debian/rules: don't use gcc-2.95 on m68k.  Thanks to Adam Conrad for
pointing this out.

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 "binary" systems, where text and binary files are
 
6
   different.  An example is Mess-Dose.  Many Unix systems could also
 
7
   cope with a "b" in 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        "rb"
 
16
#define FOPEN_WB        "wb"
 
17
#define FOPEN_AB        "ab"
 
18
#define FOPEN_RUB       "r+b"
 
19
#define FOPEN_WUB       "w+b"
 
20
#define FOPEN_AUB       "a+b"
 
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+"