mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
* process.c (proc_setuid): use rb_f_notimplement if not implemented.
(proc_setgid): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
05a278b4cd
commit
1e96c9817e
2 changed files with 13 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
Sun Apr 19 01:03:56 2009 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* process.c (proc_setuid): use rb_f_notimplement if not implemented.
|
||||
(proc_setgid): ditto.
|
||||
|
||||
Sat Apr 18 23:07:18 2009 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/readline/readline.c: use rb_f_notimplement for methods not
|
||||
|
|
12
process.c
12
process.c
|
@ -3921,6 +3921,7 @@ proc_getuid(VALUE obj)
|
|||
}
|
||||
|
||||
|
||||
#if defined(HAVE_SETRESUID) || defined(HAVE_SETREUID) || defined(HAVE_SETRUID) || defined(HAVE_SETUID)
|
||||
/*
|
||||
* call-seq:
|
||||
* Process.uid= integer => numeric
|
||||
|
@ -3952,11 +3953,12 @@ proc_setuid(VALUE obj, VALUE id)
|
|||
rb_notimplement();
|
||||
}
|
||||
}
|
||||
#else
|
||||
rb_notimplement();
|
||||
#endif
|
||||
return id;
|
||||
}
|
||||
#else
|
||||
#define proc_setuid rb_f_notimplement
|
||||
#endif
|
||||
|
||||
|
||||
/********************************************************************
|
||||
|
@ -4299,6 +4301,7 @@ proc_getgid(VALUE obj)
|
|||
}
|
||||
|
||||
|
||||
#if defined(HAVE_SETRESGID) || defined(HAVE_SETREGID) || defined(HAVE_SETRGID) || defined(HAVE_SETGID)
|
||||
/*
|
||||
* call-seq:
|
||||
* Process.gid= fixnum => fixnum
|
||||
|
@ -4329,11 +4332,12 @@ proc_setgid(VALUE obj, VALUE id)
|
|||
rb_notimplement();
|
||||
}
|
||||
}
|
||||
#else
|
||||
rb_notimplement();
|
||||
#endif
|
||||
return GIDT2NUM(gid);
|
||||
}
|
||||
#else
|
||||
#define proc_setgid rb_f_notimplement
|
||||
#endif
|
||||
|
||||
|
||||
static size_t maxgroups = 32;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue