summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/winsup.h
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-03-16 21:52:06 +0000
committerChristopher Faylor <me@cgf.cx>2005-03-16 21:52:06 +0000
commit29acee402001c0ca009c546432027f5ce5ea3584 (patch)
tree73b7f78af4eb1fc6dd9543dd151bdf44ae0b93ba /winsup/cygwin/winsup.h
parent38a1953cfc4a1fde51cf976b04bee8642fc0ef68 (diff)
downloadcygnal-29acee402001c0ca009c546432027f5ce5ea3584.tar.gz
cygnal-29acee402001c0ca009c546432027f5ce5ea3584.tar.bz2
cygnal-29acee402001c0ca009c546432027f5ce5ea3584.zip
* fhandler_tape.cc (get_ll): This is a generally useful function so move it
* winsup.h (get_ll): to here * security.cc (get_token_group_sidlist): Use get_ll to figure out the long long version of the luid since QuadPart is not part of the standard Windows API.
Diffstat (limited to 'winsup/cygwin/winsup.h')
-rw-r--r--winsup/cygwin/winsup.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/winsup/cygwin/winsup.h b/winsup/cygwin/winsup.h
index 794fa720f..f8c060bd7 100644
--- a/winsup/cygwin/winsup.h
+++ b/winsup/cygwin/winsup.h
@@ -214,6 +214,9 @@ void uinfo_init (void);
#define uid16touid32(u16) ((u16)==ILLEGAL_UID16?ILLEGAL_UID:(__uid32_t)(u16))
#define gid16togid32(g16) ((g16)==ILLEGAL_GID16?ILLEGAL_GID:(__gid32_t)(g16))
+/* Convert LARGE_INTEGER into long long */
+#define get_ll(pl) (((long long) (pl).HighPart << 32) | (pl).LowPart)
+
/* various events */
void events_init (void);
void events_terminate (void);