ReactOS 0.4.16-dev-424-ge4748fe
mtdll.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2002, TransGaming Technologies Inc.
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19#ifndef WINE_MTDLL_H
20#define WINE_MTDLL_H
21
22void __cdecl _unlock( int locknum );
23void __cdecl _lock( int locknum );
24
25#define _SIGNAL_LOCK 1
26#define _IOB_SCAN_LOCK 2
27#define _TMPNAM_LOCK 3
28#define _INPUT_LOCK 4
29#define _OUTPUT_LOCK 5
30#define _CSCANF_LOCK 6
31#define _CPRINTF_LOCK 7
32#define _CONIO_LOCK 8
33#define _HEAP_LOCK 9
34#define _BHEAP_LOCK 10 /* No longer used? */
35#define _TIME_LOCK 11
36#define _ENV_LOCK 12
37#define _EXIT_LOCK1 13
38#define _EXIT_LOCK2 14
39#define _THREADDATA_LOCK 15 /* No longer used? */
40#define _POPEN_LOCK 16
41#define _LOCKTAB_LOCK 17
42#define _OSFHND_LOCK 18
43#define _SETLOCALE_LOCK 19
44#define _LC_COLLATE_LOCK 20 /* No longer used? */
45#define _LC_CTYPE_LOCK 21 /* No longer used? */
46#define _LC_MONETARY_LOCK 22 /* No longer used? */
47#define _LC_NUMERIC_LOCK 23 /* No longer used? */
48#define _LC_TIME_LOCK 24 /* No longer used? */
49#define _MB_CP_LOCK 25
50#define _NLG_LOCK 26
51#define _TYPEINFO_LOCK 27
52#define _STREAM_LOCKS 28
53
54/* Must match definition in msvcrt/stdio.h */
55#define _IOB_ENTRIES 20
56
57#define _LAST_STREAM_LOCK (_STREAM_LOCKS+_IOB_ENTRIES-1)
58
59#define _TOTAL_LOCKS (_LAST_STREAM_LOCK+1)
60
61#endif /* WINE_MTDLL_H */
#define __cdecl
Definition: accygwin.h:79
void _unlock(int locknum)
Definition: lock.c:126
void _lock(int locknum)
Definition: lock.c:97