Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2006-11-23 19:44:55 +0300
committerCorinna Vinschen <corinna@vinschen.de>2006-11-23 19:44:55 +0300
commit124b187f16e39511d8829bb7eed44b2c76a4c59a (patch)
treec623751e934a6d65539f5ade2cfa9365467bd742 /winsup/cygwin/security.h
parent23f710014dabadd94cbaabe5fe0fe4d765c04d3d (diff)
* security.h (DBGSID): Define for debugging purposes.
(MKSID): Rename from SID so as to not hide SID definition from winnt.h. * sec_helper.cc: Change SID to MKSID throughout.
Diffstat (limited to 'winsup/cygwin/security.h')
-rw-r--r--winsup/cygwin/security.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/winsup/cygwin/security.h b/winsup/cygwin/security.h
index fd52b93cc..0f0fdb049 100644
--- a/winsup/cygwin/security.h
+++ b/winsup/cygwin/security.h
@@ -23,8 +23,16 @@ details. */
#define ACL_DEFAULT_SIZE 3072
#define NO_SID ((PSID)NULL)
+/* Added for debugging purposes. */
+typedef struct {
+ BYTE Revision;
+ BYTE SubAuthorityCount;
+ SID_IDENTIFIER_AUTHORITY IdentifierAuthority;
+ DWORD SubAuthority[8];
+} DBGSID, *PDBGSID;
+
/* Macro to define variable length SID structures */
-#define SID(name, comment, authority, count, rid...) \
+#define MKSID(name, comment, authority, count, rid...) \
static NO_COPY struct { \
BYTE Revision; \
BYTE SubAuthorityCount; \