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