Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <REENT.H>
Link against: estlib.lib

_SYS_REENT_H_

_SYS_REENT_H_

Description

[Top]


_ATEXIT_SIZE

_ATEXIT_SIZE 32

Description

atexit support

[Top]


_ASCTIME_SIZE

_ASCTIME_SIZE (26+8)

Description

struct _reent_reent

This structure contains *all* globals needed by the library. It's raison d'etre is to facilitate threads by making all library routines reentrant. IE: All state information is contained here.

[Top]


_MINNARROWBUFSIZE

_MINNARROWBUFSIZE 100

Description

[Top]


_REENT

_REENT (ImpurePtr())

Description

[Top]


_REENT2

_REENT2 (ImpurePtr2())

Description

[Top]


__errno_r

__errno_r (ptr) ((ptr)->_errno)

Description

Parameters

ptr

[Top]


_reclaim_reent(struct _reent *)

IMPORT_C void _reclaim_reent(struct _reent *);

Description

The struct _reent_reent is managed on a per-thread basis by EPOC32, so there is no global variable _impure_pointer and everyone has to use _REENT (panics in the event of an error) or REENT2 (which returns a NULL pointer in the event of an error).

Parameters

struct _reent_reent *

[Top]


_REENT_INIT(struct _reent *)

IMPORT_C void _REENT_INIT(struct _reent *);

Description

Parameters

struct _reent_reent *

[Top]


ImpurePtr(void)

IMPORT_C struct _reent* ImpurePtr(void);

Description

Allocates memory for the library globals struct and returns a pointer to it. If the memory has been allocated previously then it simply returns a pointer to the memory. Panics if any error/failure occurs.

Return value

struct _reent_reent *

On Success, a pointer to the memory containing the library globals.

[Top]


ImpurePtr2(void)

IMPORT_C struct _reent* ImpurePtr2(void);

Description

This is a panic free version of ImpurePtr. It allocates memory for the library globals struct and returns a pointer to it. If the memory has been allocated previously then it simply returns a pointer to the memory. If there is not enough memory available to set up the library globals or other error occurs, a NULL pointer will be returned.

Return value

struct _reent_reent *

On Success, a pointer to the memory containing the library globals. On Failure, a NULL pointer.

[Top]


_init_reent(struct _reent *,void *)

IMPORT_C void _init_reent(struct _reent *, void *);

Description

Parameters

struct _reent_reent *

void *

[Top]


CloseSTDLIB()

IMPORT_C void CloseSTDLIB();

Description

Support for explicit release of all STDLIB resources belonging to this thread