APIdock / Ruby
/
method

setuid

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

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

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

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