summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/tls_pbuf.h
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/tls_pbuf.h')
-rw-r--r--winsup/cygwin/tls_pbuf.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/winsup/cygwin/tls_pbuf.h b/winsup/cygwin/tls_pbuf.h
new file mode 100644
index 000000000..b4a2a7a37
--- /dev/null
+++ b/winsup/cygwin/tls_pbuf.h
@@ -0,0 +1,20 @@
+/* tls_pbuf.h
+
+ Copyright 2008 Red Hat, Inc.
+
+This software is a copyrighted work licensed under the terms of the
+Cygwin license. Please consult the file "CYGWIN_LICENSE" for
+details. */
+
+class tmp_pathbuf
+{
+ int c_buf_old;
+ int w_buf_old;
+public:
+ tmp_pathbuf ();
+ ~tmp_pathbuf ();
+
+ char *c_get (); /* Create temporary TLS path buf of size NT_MAX_PATH. */
+ PWCHAR w_get (); /* Create temporary TLS path buf of size 2 * NT_MAX_PATH. */
+ inline char *t_get () { return (char *) w_get (); }
+};