setreuid(p1, p2)
public
Sets the (integer) real and/or effective user IDs of the current process to
rid and eid, respectively. A value of -1 for either means
to leave that ID unchanged. Not available on all platforms.
Show source
/*
* call-seq:
* Process::Sys.setreuid(rid, eid) => nil
*
* Sets the (integer) real and/or effective user IDs of the current
* process to _rid_ and _eid_, respectively. A value of
* <code>-1</code> for either means to leave that ID unchanged. Not
* available on all platforms.
*
*/
static VALUE
p_sys_setreuid(obj, rid, eid)
VALUE obj, rid, eid;
{
check_uid_switch();
if (setreuid(NUM2INT(rid),NUM2INT(eid)) != 0) rb_sys_fail(0);
rb_notimplement();
return Qnil;
}