3 #ifndef __CRT_INTERNAL_TLS_H
4 #define __CRT_INTERNAL_TLS_H
12 #include <msvcrt/crttypes.h>
15 typedef struct _ThreadData
17 int terrno
; /* *nix error code */
18 unsigned long tdoserrno
; /* Win32 error code (for I/O only) */
19 unsigned LONGLONG tnext
; /* used by rand/srand */
21 char *lasttoken
; /* used by strtok */
22 wchar_t *wlasttoken
; /* used by wcstok */
25 int fpecode
; /* fp exception code */
28 int (*qcmp
)(const void *, const void *); /* the comparison routine */
29 int qsz
; /* size of each record */
30 int thresh
; /* THRESHold in chars */
31 int mthresh
; /* MTHRESHold in chars */
33 EXCEPTION_RECORD
*exc_record
; /* Head of exception record list */
35 } THREADDATA
, *PTHREADDATA
;
38 int CreateThreadData(void);
39 void DestroyThreadData(void);
41 void FreeThreadData(PTHREADDATA ptd
);
42 PTHREADDATA
GetThreadData(void);
44 #endif /* __MSVCRT_INTERNAL_TLS_H */