diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-02 03:12:04 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-02 03:12:04 +0000 |
commit | 6db56c86c9eecc4075d3a281be28e4fcdfacd5e4 (patch) | |
tree | a8a043588ab5e8f03ffdee44fd125ca6c45e9e71 /process.c | |
parent | eb5f361937c6e4307ac34afa93a4ffbd447ef4e0 (diff) | |
download | ruby-6db56c86c9eecc4075d3a281be28e4fcdfacd5e4.tar.gz |
fill rdocs
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r-- | process.c | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -4787,6 +4787,17 @@ obj2uid(VALUE id } # ifdef p_uid_from_name +/* + * call-seq: + * Process::UID.from_name(name) -> uid + * + * Get the user ID by the _name_. + * If the user is not found, +ArgumentError+ will be raised. + * + * Process::UID.from_name("root") #=> 0 + * Process::UID.from_name("nosuchuser") #=> can't find user for nosuchuser (ArgumentError) + */ + static VALUE p_uid_from_name(VALUE self, VALUE id) { @@ -4835,6 +4846,17 @@ obj2gid(VALUE id } # ifdef p_gid_from_name +/* + * call-seq: + * Process::GID.from_name(name) -> gid + * + * Get the group ID by the _name_. + * If the group is not found, +ArgumentError+ will be raised. + * + * Process::GID.from_name("wheel") #=> 0 + * Process::GID.from_name("nosuchgroup") #=> can't find group for nosuchgroup (ArgumentError) + */ + static VALUE p_gid_from_name(VALUE self, VALUE id) { |