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.

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

mercurial