Copy makefile
[reactos.git] / reactos / lib / crt / include / internal / tls.h
1 /* tls.h */
2
3 #ifndef __CRT_INTERNAL_TLS_H
4 #define __CRT_INTERNAL_TLS_H
5
6 #include <windows.h>
7 #include <msvcrt/crttypes.h>
8 #include <stddef.h>
9
10 typedef struct _ThreadData
11 {
12 int terrno; /* *nix error code */
13 unsigned long tdoserrno; /* Win32 error code (for I/O only) */
14 unsigned LONGLONG tnext; /* used by rand/srand */
15
16 char *lasttoken; /* used by strtok */
17 wchar_t *wlasttoken; /* used by wcstok */
18
19
20 int fpecode; /* fp exception code */
21
22 /* qsort variables */
23 int (*qcmp)(const void *, const void *); /* the comparison routine */
24 int qsz; /* size of each record */
25 int thresh; /* THRESHold in chars */
26 int mthresh; /* MTHRESHold in chars */
27
28 EXCEPTION_RECORD *exc_record; /* Head of exception record list */
29
30 } THREADDATA, *PTHREADDATA;
31
32
33 int CreateThreadData(void);
34 void DestroyThreadData(void);
35
36 void FreeThreadData(PTHREADDATA ptd);
37 PTHREADDATA GetThreadData(void);
38
39 #endif /* __MSVCRT_INTERNAL_TLS_H */
40
41 /* EOF */
42