Function: user-uid

user-uid is a function defined in editfns.c.

Signature

(user-uid)

Documentation

Return the effective uid of Emacs.

Value is a fixnum, if it's small enough, otherwise a bignum.

Probably introduced at or before Emacs version 18.

Source Code

// Defined in /usr/src/emacs/src/editfns.c
{
  uid_t euid = geteuid ();
  return INT_TO_INTEGER (euid);
}