* 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.
This commit is contained in:
Christopher Faylor 2005-03-16 21:52:06 +00:00
parent 38a1953cfc
commit 29acee4020
4 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,12 @@
2005-03-16 Christopher Faylor <cgf@timesys.com>
* 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.
2005-03-16 Christopher Faylor <cgf@timesys.com>
* dir.cc: Rename opendir_* to dirent_* throughout.

View File

@ -36,9 +36,6 @@ details. */
part (partition)->initialize (0); \
}
/* Convert LARGE_INTEGER into long long */
#define get_ll(pl) (((long long) (pl).HighPart << 32) | (pl).LowPart)
#define IS_BOT(err) ((err) == ERROR_BEGINNING_OF_MEDIA)
#define IS_EOF(err) ((err) == ERROR_FILEMARK_DETECTED \

View File

@ -534,7 +534,7 @@ get_token_group_sidlist (cygsidlist &grp_list, PTOKEN_GROUPS my_grps,
grp_list += well_known_local_sid;
grp_list += well_known_interactive_sid;
}
if (auth_luid.QuadPart != 999) /* != SYSTEM_LUID */
if (get_ll (auth_luid) != 999LL) /* != SYSTEM_LUID */
{
char buf[64];
__small_sprintf (buf, "S-1-5-5-%u-%u", auth_luid.HighPart,

View File

@ -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);