Back to index

lightning-sunbird  0.9+nobinonly
Functions
w16stdio.c File Reference
#include "primpl.h"

Go to the source code of this file.

Functions

PRInt32 _PL_W16StdioWrite (void *buf, PRInt32 amount)
PRInt32 _PL_W16StdioRead (void *buf, PRInt32 amount)
int PR_CALLBACK _PL_W16CallBackPuts (const char *outputString)
size_t PR_CALLBACK _PL_W16CallBackStrftime (char *s, size_t len, const char *fmt, const struct tm *p)
void *PR_CALLBACK _PL_W16CallBackMalloc (size_t size)
void *PR_CALLBACK _PL_W16CallBackCalloc (size_t n, size_t size)
void *PR_CALLBACK _PL_W16CallBackRealloc (void *old_blk, size_t size)
void PR_CALLBACK _PL_W16CallBackFree (void *ptr)
void *PR_CALLBACK _PL_W16CallBackGetenv (const char *name)
int PR_CALLBACK _PL_W16CallBackPutenv (const char *assoc)

Function Documentation

void* PR_CALLBACK _PL_W16CallBackCalloc ( size_t  n,
size_t  size 
)

Definition at line 126 of file w16stdio.c.

{
    return( calloc( n, size ));
} /* end _PL_W16CallBackCalloc()  */    

Here is the call graph for this function:

Definition at line 146 of file w16stdio.c.

{
    free( ptr );
    return;
} /* end _PL_W16CallBackFree()  */

Definition at line 156 of file w16stdio.c.

{
    return( getenv( name ));
} /* end _PL_W16CallBackGetenv  */

Definition at line 117 of file w16stdio.c.

{
    return( malloc( size ));
} /* end _PL_W16CallBackMalloc()  */    

Definition at line 166 of file w16stdio.c.

{
    return( putenv( assoc ));
} /* end _PL_W16CallBackGetenv  */
int PR_CALLBACK _PL_W16CallBackPuts ( const char *  outputString)

Definition at line 95 of file w16stdio.c.

{
    return( puts( outputString ));
} /* end _PL_W16CallBackPuts()  */    

Here is the call graph for this function:

void* PR_CALLBACK _PL_W16CallBackRealloc ( void old_blk,
size_t  size 
)

Definition at line 135 of file w16stdio.c.

{
    return( realloc( old_blk, size ));
} /* end _PL_W16CallBackRealloc()  */

Here is the call graph for this function:

size_t PR_CALLBACK _PL_W16CallBackStrftime ( char *  s,
size_t  len,
const char *  fmt,
const struct tm p 
)

Definition at line 104 of file w16stdio.c.

{
    return( strftime( s, len, fmt, p ));
} /* end _PL_W16CallBackStrftime()  */    
PRInt32 _PL_W16StdioRead ( void buf,
PRInt32  amount 
)

Definition at line 70 of file w16stdio.c.

{
    char *bp;

    bp = fgets( buf, (int) amount, stdin );
    if ( bp == NULL )
    {
        // something about errno
        return(PR_FAILURE);
    }
    
    return( strlen(buf));
} /* end _PL_fgets() */
PRInt32 _PL_W16StdioWrite ( void buf,
PRInt32  amount 
)

Definition at line 52 of file w16stdio.c.

{
    int   rc;
    
    rc = fputs( buf, stdout );
    if ( rc == EOF )
    {
        // something about errno
        return(PR_FAILURE);
    }
    return( strlen(buf));
} /* end _PL_fputs() */

Here is the call graph for this function: