* libc/include/sys/reent.h (_reent): Adjust _REENT_SMALL to be
binary compatible with normal layout. (_REENT_INIT): Adjust to match struct layout.
This commit is contained in:
parent
03c991fed4
commit
492efa069b
|
@ -1,3 +1,9 @@
|
||||||
|
2010-06-09 Paul Brook <paul@codesourcery.com>
|
||||||
|
|
||||||
|
* libc/include/sys/reent.h (_reent): Adjust _REENT_SMALL to be
|
||||||
|
binary compatible with normal layout.
|
||||||
|
(_REENT_INIT): Adjust to match struct layout.
|
||||||
|
|
||||||
2010-06-08 Jeff Johnston <jjohnstn@redhat.com>
|
2010-06-08 Jeff Johnston <jjohnstn@redhat.com>
|
||||||
|
|
||||||
* libc/include/wordexp.h: Add __cplusplus wrapper.
|
* libc/include/wordexp.h: Add __cplusplus wrapper.
|
||||||
|
|
|
@ -357,14 +357,15 @@ struct _misc_reent
|
||||||
* ports with 16-bit int's but 32-bit pointers, align nicely. */
|
* ports with 16-bit int's but 32-bit pointers, align nicely. */
|
||||||
struct _reent
|
struct _reent
|
||||||
{
|
{
|
||||||
|
/* As an exception to the above put _errno first for binary
|
||||||
|
compatibility with non _REENT_SMALL targets. */
|
||||||
|
int _errno; /* local copy of errno */
|
||||||
|
|
||||||
/* FILE is a big struct and may change over time. To try to achieve binary
|
/* FILE is a big struct and may change over time. To try to achieve binary
|
||||||
compatibility with future versions, put stdin,stdout,stderr here.
|
compatibility with future versions, put stdin,stdout,stderr here.
|
||||||
These are pointers into member __sf defined below. */
|
These are pointers into member __sf defined below. */
|
||||||
__FILE *_stdin, *_stdout, *_stderr; /* XXX */
|
__FILE *_stdin, *_stdout, *_stderr; /* XXX */
|
||||||
|
|
||||||
int _errno; /* local copy of errno */
|
|
||||||
|
|
||||||
int _inc; /* used by tmpnam */
|
int _inc; /* used by tmpnam */
|
||||||
|
|
||||||
char *_emergency;
|
char *_emergency;
|
||||||
|
@ -406,11 +407,11 @@ extern const struct __sFILE_fake __sf_fake_stdout;
|
||||||
extern const struct __sFILE_fake __sf_fake_stderr;
|
extern const struct __sFILE_fake __sf_fake_stderr;
|
||||||
|
|
||||||
# define _REENT_INIT(var) \
|
# define _REENT_INIT(var) \
|
||||||
{ (__FILE *)&__sf_fake_stdin, \
|
{ 0, \
|
||||||
|
(__FILE *)&__sf_fake_stdin, \
|
||||||
(__FILE *)&__sf_fake_stdout, \
|
(__FILE *)&__sf_fake_stdout, \
|
||||||
(__FILE *)&__sf_fake_stderr, \
|
(__FILE *)&__sf_fake_stderr, \
|
||||||
0, \
|
0, \
|
||||||
0, \
|
|
||||||
_NULL, \
|
_NULL, \
|
||||||
0, \
|
0, \
|
||||||
0, \
|
0, \
|
||||||
|
|
Loading…
Reference in New Issue