3 #ifndef __MSVCRT_INTERNAL_TLS_H
4 #define __MSVCRT_INTERNAL_TLS_H
6 #include <msvcrt/stddef.h>
8 typedef struct _ThreadData
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 */
14 char *lasttoken; /* used by strtok */
15 wchar_t *wlasttoken; /* used by wcstok */
18 int fpecode; /* fp exception code */
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 */
26 } THREADDATA, *PTHREADDATA;
29 int CreateThreadData(void);
30 void DestroyThreadData(void);
32 void FreeThreadData(PTHREADDATA ptd);
33 PTHREADDATA GetThreadData(void);
35 #endif /* __MSVCRT_INTERNAL_TLS_H */