3 #ifndef __MSVCRT_INTERNAL_TLS_H
4 #define __MSVCRT_INTERNAL_TLS_H
6 #include <msvcrt/crttypes.h>
7 #include <msvcrt/stddef.h>
9 typedef struct _ThreadData
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 */
15 char *lasttoken; /* used by strtok */
16 wchar_t *wlasttoken; /* used by wcstok */
19 int fpecode; /* fp exception code */
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 */
27 } THREADDATA, *PTHREADDATA;
30 int CreateThreadData(void);
31 void DestroyThreadData(void);
33 void FreeThreadData(PTHREADDATA ptd);
34 PTHREADDATA GetThreadData(void);
36 #endif /* __MSVCRT_INTERNAL_TLS_H */