Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
highuid.h File Reference
#include <linux/types.h>

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

#define __convert_gid (   size,
  gid 
)    (gid)

Definition at line 64 of file highuid.h.

#define __convert_uid (   size,
  uid 
)    (uid)

Definition at line 63 of file highuid.h.

#define DEFAULT_FS_OVERFLOWGID   65534

Definition at line 85 of file highuid.h.

#define DEFAULT_FS_OVERFLOWUID   65534

Definition at line 84 of file highuid.h.

#define DEFAULT_OVERFLOWGID   65534

Definition at line 41 of file highuid.h.

#define DEFAULT_OVERFLOWUID   65534

Definition at line 40 of file highuid.h.

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

Definition at line 92 of file highuid.h.

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

Definition at line 91 of file highuid.h.

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

Definition at line 95 of file highuid.h.

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

Definition at line 94 of file highuid.h.

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

Definition at line 70 of file highuid.h.

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

Definition at line 69 of file highuid.h.

Function Documentation

void __bad_gid ( void  )
void __bad_uid ( void  )

Variable Documentation

int fs_overflowgid

Definition at line 107 of file sys.c.

int fs_overflowuid

Definition at line 106 of file sys.c.

int overflowgid

Definition at line 96 of file sys.c.

int overflowuid

Definition at line 95 of file sys.c.