Subversion Repositories Kolibri OS

Rev

Rev 5191 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5191 Rev 6324
1
/* Macros for the 'type' part of an fopen, freopen or fdopen. 
1
/* Macros for the 'type' part of an fopen, freopen or fdopen. 
2
 
2
 
3
	[Update]
3
	[Update]
4
 
4
 
5
   This version is for "same" systems, where text and binary files are
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
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
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?).
8
   (and thereby don't conform to ANSI C, but what else is new?).
9
 
9
 
10
   Copyright 1996-2012 Free Software Foundation, Inc.
10
   Copyright (C) 1996-2015 Free Software Foundation, Inc.
11
   
11
   
12
   This program is free software; you can redistribute it and/or modify
12
   This program is free software; you can redistribute it and/or modify
13
   it under the terms of the GNU General Public License as published by
13
   it under the terms of the GNU General Public License as published by
14
   the Free Software Foundation; either version 2, or (at your option)
14
   the Free Software Foundation; either version 2, or (at your option)
15
   any later version.
15
   any later version.
16
 
16
 
17
   This program is distributed in the hope that it will be useful,
17
   This program is distributed in the hope that it will be useful,
18
   but WITHOUT ANY WARRANTY; without even the implied warranty of
18
   but WITHOUT ANY WARRANTY; without even the implied warranty of
19
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20
   GNU General Public License for more details.
20
   GNU General Public License for more details.
21
 
21
 
22
   You should have received a copy of the GNU General Public License
22
   You should have received a copy of the GNU General Public License
23
   along with this program; if not, write to the Free Software
23
   along with this program; if not, write to the Free Software
24
   Foundation, Inc., 51 Franklin Street - Fifth Floor,
24
   Foundation, Inc., 51 Franklin Street - Fifth Floor,
25
   Boston, MA 02110-1301, USA.  */
25
   Boston, MA 02110-1301, USA.  */
26
 
26
 
27
/* This file is designed for inclusion by host-dependent .h files.  No
27
/* This file is designed for inclusion by host-dependent .h files.  No
28
   user application should include it directly, since that would make
28
   user application should include it directly, since that would make
29
   the application unable to be configured for both "same" and "binary"
29
   the application unable to be configured for both "same" and "binary"
30
   variant systems.  */
30
   variant systems.  */
31
 
31
 
32
#define FOPEN_RB	"r"
32
#define FOPEN_RB	"r"
33
#define FOPEN_WB 	"w"
33
#define FOPEN_WB 	"w"
34
#define FOPEN_AB 	"a"
34
#define FOPEN_AB 	"a"
35
#define FOPEN_RUB 	"r+"
35
#define FOPEN_RUB 	"r+"
36
#define FOPEN_WUB 	"w+"
36
#define FOPEN_WUB 	"w+"
37
#define FOPEN_AUB 	"a+"
37
#define FOPEN_AUB 	"a+"
38
 
38
 
39
#define FOPEN_RT	"r"
39
#define FOPEN_RT	"r"
40
#define FOPEN_WT 	"w"
40
#define FOPEN_WT 	"w"
41
#define FOPEN_AT 	"a"
41
#define FOPEN_AT 	"a"
42
#define FOPEN_RUT 	"r+"
42
#define FOPEN_RUT 	"r+"
43
#define FOPEN_WUT 	"w+"
43
#define FOPEN_WUT 	"w+"
44
#define FOPEN_AUT 	"a+"
44
#define FOPEN_AUT 	"a+"