Lines Matching full:uid
26 * This is the "overflow" UID and GID. They are used to signify uid/gid
27 * overflow to old programs when they request uid/gid information but are
30 * processes are owned by this uid/gid.
46 /* prevent uid mod 65536 effect by returning a default value for high UIDs */
47 #define high2lowuid(uid) ((uid) & ~0xFFFF ? (old_uid_t)overflowuid : (old_uid_t)(uid)) argument
53 #define low2highuid(uid) ((uid) == (old_uid_t)-1 ? (uid_t)-1 : (uid_t)(uid)) argument
56 #define __convert_uid(size, uid) \ argument
57 (size >= sizeof(uid) ? (uid) : high2lowuid(uid))
64 #define __convert_uid(size, uid) (uid) argument
69 /* uid/gid input should be always 32bit uid_t */
70 #define SET_UID(var, uid) do { (var) = __convert_uid(sizeof(var), (uid)); } while (0) argument
75 * filesystems that only store 16 bits of the UID/GID, etc.
79 * This is the UID and GID that will get written to disk if a filesystem
80 * only supports 16-bit UIDs and the kernel has a high UID/GID to write
90 * 16-bit UID back compatibility, we won't use old_uid_t and old_gid_t
92 #define fs_high2lowuid(uid) ((uid) & ~0xFFFF ? (uid16_t)fs_overflowuid : (uid16_t)(uid)) argument