nsprpub/pr/src/bthreads/btmisc.c

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 /* -*- Mode: C++; c-basic-offset: 4 -*- */
     2 /* This Source Code Form is subject to the terms of the Mozilla Public
     3  * License, v. 2.0. If a copy of the MPL was not distributed with this
     4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     6 #include "primpl.h"
     7 #include <stdio.h>
     9 // void _PR_InitCPUs(void) {PT_LOG("_PR_InitCPUs")}
    10 // void _MD_StartInterrupts(void) {PT_LOG("_MD_StartInterrupts")}
    12 /* this is a total hack.. */
    14 struct protoent* getprotobyname(const char* name)
    15 {
    16     return 0;
    17 }
    19 struct protoent* getprotobynumber(int number)
    20 {
    21     return 0;
    22 }
    24 /* this is needed by prinit for some reason */
    25 void
    26 _PR_InitStacks (void)
    27 {
    28 }
    30 /* this is needed by prinit for some reason */
    31 void
    32 _PR_InitTPD (void)
    33 {
    34 }
    36 /*
    37 ** Create extra virtual processor threads. Generally used with MP systems.
    38 */
    39 PR_IMPLEMENT(void)
    40     PR_SetConcurrency (PRUintn numCPUs)
    41 {
    42 }
    44 /*
    45 ** Set thread recycle mode to on (1) or off (0)
    46 */
    47 PR_IMPLEMENT(void)
    48     PR_SetThreadRecycleMode (PRUint32 flag)
    49 {
    50 }
    52 /*
    53 ** Get context registers, return with error for now.
    54 */
    56 PR_IMPLEMENT(PRWord *)
    57 _MD_HomeGCRegisters( PRThread *t, int isCurrent, int *np )
    58 {
    59      return 0;
    60 }
    62 PR_IMPLEMENT(void *)
    63 PR_GetSP( PRThread *t )
    64 {
    65     return 0;
    66 }
    68 PR_IMPLEMENT(PRStatus)
    69 PR_EnumerateThreads( PREnumerator func, void *arg )
    70 {
    71     return PR_FAILURE;
    72 }

mercurial