]>
Commit | Line | Data |
---|---|---|
9385eb3d | 1 | /* |
59e0d9fe | 2 | * Copyright (c) 2003-2004 Apple Computer, Inc. All rights reserved. |
9385eb3d A |
3 | * |
4 | * @APPLE_LICENSE_HEADER_START@ | |
5 | * | |
59e0d9fe A |
6 | * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved. |
7 | * | |
9385eb3d A |
8 | * This file contains Original Code and/or Modifications of Original Code |
9 | * as defined in and that are subject to the Apple Public Source License | |
10 | * Version 2.0 (the 'License'). You may not use this file except in | |
11 | * compliance with the License. Please obtain a copy of the License at | |
12 | * http://www.opensource.apple.com/apsl/ and read it before using this | |
13 | * file. | |
14 | * | |
15 | * The Original Code and all software distributed under the License are | |
16 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
17 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, | |
18 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
19 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. | |
20 | * Please see the License for the specific language governing rights and | |
21 | * limitations under the License. | |
22 | * | |
23 | * @APPLE_LICENSE_HEADER_END@ | |
24 | */ | |
e9ce8d39 A |
25 | /* |
26 | * Copyright 1996 1995 by Open Software Foundation, Inc. 1997 1996 1995 1994 1993 1992 1991 | |
27 | * All Rights Reserved | |
28 | * | |
29 | * Permission to use, copy, modify, and distribute this software and | |
30 | * its documentation for any purpose and without fee is hereby granted, | |
31 | * provided that the above copyright notice appears in all copies and | |
32 | * that both the copyright notice and this permission notice appear in | |
33 | * supporting documentation. | |
34 | * | |
35 | * OSF DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE | |
36 | * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | |
37 | * FOR A PARTICULAR PURPOSE. | |
38 | * | |
39 | * IN NO EVENT SHALL OSF BE LIABLE FOR ANY SPECIAL, INDIRECT, OR | |
40 | * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | |
41 | * LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT, | |
42 | * NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION | |
43 | * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
44 | */ | |
45 | /* | |
46 | * MkLinux | |
47 | */ | |
48 | ||
49 | /* Machine-dependent definitions for pthread internals. */ | |
50 | ||
9385eb3d A |
51 | #ifndef _POSIX_PTHREAD_MACHDEP_H |
52 | #define _POSIX_PTHREAD_MACHDEP_H | |
53 | ||
59e0d9fe A |
54 | #ifdef __LP64__ |
55 | #define _PTHREAD_TSD_OFFSET 0x68 | |
56 | #else | |
9385eb3d | 57 | #define _PTHREAD_TSD_OFFSET 0x48 |
59e0d9fe A |
58 | #endif /* __LP64__ */ |
59 | ||
9385eb3d | 60 | #ifndef __ASSEMBLER__ |
59e0d9fe | 61 | typedef int32_t pthread_lock_t; |
9385eb3d | 62 | #endif |
e9ce8d39 A |
63 | |
64 | #define LOCK_INIT(l) ((l) = 0) | |
65 | #define LOCK_INITIALIZER 0 | |
66 | ||
9385eb3d | 67 | #endif /* _POSIX_PTHREAD_MACHDEP_H */ |