APIdock / Ruby
/
method

setruid

ruby latest stable - Class: Process ::Sys
setruid(p1)
public

Set the real user ID of the calling process to user. Not available on all platforms.

static VALUE
p_sys_setruid(VALUE obj, VALUE id)
{
 check_uid_switch();
 if (setruid(OBJ2UID(id)) != 0) rb_sys_fail(0);
 return Qnil;
}

AltStyle によって変換されたページ (->オリジナル) /