summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/cygtls.h
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/cygtls.h')
-rw-r--r--winsup/cygwin/cygtls.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/winsup/cygwin/cygtls.h b/winsup/cygwin/cygtls.h
index 14ccffd41..43bdfee6a 100644
--- a/winsup/cygwin/cygtls.h
+++ b/winsup/cygwin/cygtls.h
@@ -33,7 +33,23 @@ details. */
#include "cygthread.h"
+#define TP_NUM_C_BUFS 10
+#define TP_NUM_W_BUFS 10
+
#pragma pack(push,4)
+/* Defined here to support auto rebuild of tlsoffsets.h. */
+class tls_pathbuf
+{
+ int c_cnt;
+ int w_cnt;
+ char *c_buf[TP_NUM_C_BUFS];
+ WCHAR *w_buf[TP_NUM_W_BUFS];
+
+public:
+ void destroy ();
+ friend class tmp_pathbuf;
+};
+
struct _local_storage
{
/*
@@ -96,6 +112,9 @@ struct _local_storage
/* syscalls.cc */
int setmode_file;
int setmode_mode;
+
+ /* All functions requiring temporary path buffers. */
+ tls_pathbuf pathbufs;
};
typedef struct struct_waitq