:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[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/stddef.h>
7
8 typedef struct _ThreadData
9 {
10   int terrno;                                   /* *nix error code */
11   unsigned long tdoserrno;                      /* Win32 error code (for I/O only) */
12   unsigned long long tnext;                     /* used by rand/srand */
13
14   char *lasttoken;                              /* used by strtok */
15   wchar_t *wlasttoken;                          /* used by wcstok */
16
17
18   int fpecode;                                  /* fp exception code */
19
20   /* qsort variables */
21   int (*qcmp)(const void *, const void *);      /* the comparison routine */
22   int qsz;                                      /* size of each record */
23   int thresh;                                   /* THRESHold in chars */
24   int mthresh;                                  /* MTHRESHold in chars */
25
26 } THREADDATA, *PTHREADDATA;
27
28
29 int CreateThreadData(void);
30 void DestroyThreadData(void);
31
32 void FreeThreadData(PTHREADDATA ptd);
33 PTHREADDATA GetThreadData(void);
34
35 #endif /* __MSVCRT_INTERNAL_TLS_H */
36
37 /* EOF */
38