Back to index

lightning-sunbird  0.9+nobinonly
Functions
process.cpp File Reference
#include "mozce_internal.h"
#include "kfuncs.h"

Go to the source code of this file.

Functions

MOZCE_SHUNT_API void mozce_abort (void)
MOZCE_SHUNT_API char * mozce_getenv (const char *inName)
MOZCE_SHUNT_API int mozce_putenv (const char *a)
MOZCE_SHUNT_API int mozce_getpid (void)

Function Documentation

Definition at line 51 of file process.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_abort called\n");
#endif

#if defined(DEBUG)
    DebugBreak();
#endif
    TerminateProcess((HANDLE) GetCurrentProcessId(), 3);
}

Here is the call graph for this function:

Here is the caller graph for this function:

MOZCE_SHUNT_API char* mozce_getenv ( const char *  inName)

Definition at line 66 of file process.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_getenv called (%s)\n", inName);
#endif

    char* retval = NULL;

#ifdef DEBUG_NSPR_ALL
    if (!strcmp(inName, "NSPR_LOG_MODULES"))
        return "all:5";

    if (!strcmp(inName, "NSPR_LOG_FILE"))
        return "nspr.log";
#endif  

#ifdef TIMELINE
    if (!strcmp(inName, "NS_TIMELINE_LOG_FILE"))
        return "\\bin\\timeline.log";
    
    if (!strcmp(inName, "NS_TIMELINE_ENABLE"))
        return "1";
#endif

       if (!_stricmp(inName, "tmp"))
        return "/Temp";
    return retval;
}

Here is the call graph for this function:

Definition at line 108 of file process.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_getpid called\n");
#endif

    int retval = 0;

    retval = (int)GetCurrentProcessId();

    return retval;
}

Here is the call graph for this function:

Definition at line 97 of file process.cpp.

{
    MOZCE_PRECHECK

#ifdef DEBUG
    mozce_printf("mozce_putenv called\n");
#endif

    return 0;
}

Here is the call graph for this function: