VirtualBox

source: vbox/trunk/src/libs/xpcom18a4/nsprpub/pr/include/md/_linux.h@ 102226

Last change on this file since 102226 was 102215, checked in by vboxsync, 18 months ago

libs/xpcom: Bury the NSPR thread code finally, there is no user left, bugref:10545

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.4 KB
Line 
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2/* ***** BEGIN LICENSE BLOCK *****
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 *
5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 * http://www.mozilla.org/MPL/
9 *
10 * Software distributed under the License is distributed on an "AS IS" basis,
11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 * for the specific language governing rights and limitations under the
13 * License.
14 *
15 * The Original Code is the Netscape Portable Runtime (NSPR).
16 *
17 * The Initial Developer of the Original Code is
18 * Netscape Communications Corporation.
19 * Portions created by the Initial Developer are Copyright (C) 1998-2000
20 * the Initial Developer. All Rights Reserved.
21 *
22 * Contributor(s):
23 *
24 * Alternatively, the contents of this file may be used under the terms of
25 * either the GNU General Public License Version 2 or later (the "GPL"), or
26 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27 * in which case the provisions of the GPL or the LGPL are applicable instead
28 * of those above. If you wish to allow use of your version of this file only
29 * under the terms of either the GPL or the LGPL, and not to allow others to
30 * use your version of this file under the terms of the MPL, indicate your
31 * decision by deleting the provisions above and replace them with the notice
32 * and other provisions required by the GPL or the LGPL. If you do not delete
33 * the provisions above, a recipient may use your version of this file under
34 * the terms of any one of the MPL, the GPL or the LGPL.
35 *
36 * ***** END LICENSE BLOCK ***** */
37
38#ifndef nspr_linux_defs_h___
39#define nspr_linux_defs_h___
40
41/*
42 * Internal configuration macros
43 */
44
45#define PR_LINKER_ARCH "linux"
46#define _PR_SI_SYSNAME "LINUX"
47#ifdef __powerpc__
48#define _PR_SI_ARCHITECTURE "ppc"
49#elif defined(__alpha)
50#define _PR_SI_ARCHITECTURE "alpha"
51#elif defined(__ia64__)
52#define _PR_SI_ARCHITECTURE "ia64"
53#elif defined(__x86_64__)
54#define _PR_SI_ARCHITECTURE "x86-64"
55#elif defined(__mc68000__)
56#define _PR_SI_ARCHITECTURE "m68k"
57#elif defined(__sparc__)
58#define _PR_SI_ARCHITECTURE "sparc"
59#elif defined(__i386__)
60#define _PR_SI_ARCHITECTURE "x86"
61#elif defined(__mips__)
62#define _PR_SI_ARCHITECTURE "mips"
63#elif defined(__arm__)
64#define _PR_SI_ARCHITECTURE "arm"
65#elif defined(__hppa__)
66#define _PR_SI_ARCHITECTURE "hppa"
67#elif defined(__s390__)
68#define _PR_SI_ARCHITECTURE "s390"
69#elif defined(__s390x__)
70#define _PR_SI_ARCHITECTURE "s390x"
71#else
72#error "Unknown CPU architecture"
73#endif
74#define PR_DLL_SUFFIX ".so"
75
76#define _PR_VMBASE 0x30000000
77#define _PR_STACK_VMBASE 0x50000000
78#define _MD_DEFAULT_STACK_SIZE 65536L
79#define _MD_MMAP_FLAGS MAP_PRIVATE
80
81#undef HAVE_STACK_GROWING_UP
82
83extern void _MD_CleanupBeforeExit(void);
84#define _MD_CLEANUP_BEFORE_EXIT _MD_CleanupBeforeExit
85
86extern void _MD_EarlyInit(void);
87extern PRIntervalTime _PR_UNIX_GetInterval(void);
88extern PRIntervalTime _PR_UNIX_TicksPerSecond(void);
89
90#define _MD_EARLY_INIT _MD_EarlyInit
91#define _MD_FINAL_INIT _PR_UnixInit
92#define _MD_GET_INTERVAL _PR_UNIX_GetInterval
93#define _MD_INTERVAL_PER_SEC _PR_UNIX_TicksPerSecond
94
95#endif /* nspr_linux_defs_h___ */
96
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette