XenevaOS
Loading...
Searching...
No Matches
Macros | Functions | Variables
highuid.h File Reference
#include <linux/types.h>
Include dependency graph for highuid.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEFAULT_OVERFLOWUID   65534
 
#define DEFAULT_OVERFLOWGID   65534
 
#define __convert_uid(size, uid)   (uid)
 
#define __convert_gid(size, gid)   (gid)
 
#define SET_UID(var, uid)   do { (var) = __convert_uid(sizeof(var), (uid)); } while (0)
 
#define SET_GID(var, gid)   do { (var) = __convert_gid(sizeof(var), (gid)); } while (0)
 
#define DEFAULT_FS_OVERFLOWUID   65534
 
#define DEFAULT_FS_OVERFLOWGID   65534
 
#define fs_high2lowuid(uid)   ((uid) & ~0xFFFF ? (uid16_t)fs_overflowuid : (uid16_t)(uid))
 
#define fs_high2lowgid(gid)   ((gid) & ~0xFFFF ? (gid16_t)fs_overflowgid : (gid16_t)(gid))
 
#define low_16_bits(x)   ((x) & 0xFFFF)
 
#define high_16_bits(x)   (((x) & 0xFFFF0000) >> 16)
 

Functions

void __bad_uid (void)
 
void __bad_gid (void)
 

Variables

int overflowuid
 
int overflowgid
 
int fs_overflowuid
 
int fs_overflowgid
 

Macro Definition Documentation

◆ __convert_gid

#define __convert_gid (   size,
  gid 
)    (gid)

◆ __convert_uid

#define __convert_uid (   size,
  uid 
)    (uid)

◆ DEFAULT_FS_OVERFLOWGID

#define DEFAULT_FS_OVERFLOWGID   65534

◆ DEFAULT_FS_OVERFLOWUID

#define DEFAULT_FS_OVERFLOWUID   65534

◆ DEFAULT_OVERFLOWGID

#define DEFAULT_OVERFLOWGID   65534

◆ DEFAULT_OVERFLOWUID

#define DEFAULT_OVERFLOWUID   65534

◆ fs_high2lowgid

#define fs_high2lowgid (   gid)    ((gid) & ~0xFFFF ? (gid16_t)fs_overflowgid : (gid16_t)(gid))

◆ fs_high2lowuid

#define fs_high2lowuid (   uid)    ((uid) & ~0xFFFF ? (uid16_t)fs_overflowuid : (uid16_t)(uid))

◆ high_16_bits

#define high_16_bits (   x)    (((x) & 0xFFFF0000) >> 16)

◆ low_16_bits

#define low_16_bits (   x)    ((x) & 0xFFFF)

◆ SET_GID

#define SET_GID (   var,
  gid 
)    do { (var) = __convert_gid(sizeof(var), (gid)); } while (0)

◆ SET_UID

#define SET_UID (   var,
  uid 
)    do { (var) = __convert_uid(sizeof(var), (uid)); } while (0)

Function Documentation

◆ __bad_gid()

void __bad_gid ( void  )
extern

◆ __bad_uid()

void __bad_uid ( void  )
extern

Variable Documentation

◆ fs_overflowgid

int fs_overflowgid
extern

◆ fs_overflowuid

int fs_overflowuid
extern

◆ overflowgid

int overflowgid
extern

◆ overflowuid

int overflowuid
extern