OSDN Git Service

* select.cc (select_stuff::wait): Temporarily disallow APCS.
[pf3gnuchains/pf3gnuchains4x.git] / winsup / cygwin / tls_pbuf.h
1 /* tls_pbuf.h
2
3    Copyright 2008 Red Hat, Inc.
4
5 This software is a copyrighted work licensed under the terms of the
6 Cygwin license.  Please consult the file "CYGWIN_LICENSE" for
7 details. */
8
9 class tmp_pathbuf
10 {
11   int c_buf_old;
12   int w_buf_old;
13 public:
14   tmp_pathbuf ();
15   ~tmp_pathbuf ();
16
17   char *c_get ();  /* Create temporary TLS path buf of size NT_MAX_PATH. */
18   PWCHAR w_get (); /* Create temporary TLS path buf of size 2 * NT_MAX_PATH. */
19   inline char *t_get () { return (char *) w_get (); }
20   inline PUNICODE_STRING u_get (PUNICODE_STRING up)
21     {
22       up->Length = 0;
23       up->MaximumLength = (NT_MAX_PATH - 1) * sizeof (WCHAR);
24       up->Buffer = w_get ();
25       return up;
26     }
27 };