Skip to content

Commit

Permalink
* process.c (proc_setuid): use rb_f_notimplement if not implemented.
Browse files Browse the repository at this point in the history
  (proc_setgid): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
akr committed Apr 18, 2009
1 parent 05a278b commit 1e96c98
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Sun Apr 19 01:03:56 2009 Tanaka Akira <[email protected]>

* process.c (proc_setuid): use rb_f_notimplement if not implemented.
(proc_setgid): ditto.

Sat Apr 18 23:07:18 2009 Tanaka Akira <[email protected]>

* ext/readline/readline.c: use rb_f_notimplement for methods not
Expand Down
12 changes: 8 additions & 4 deletions process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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


/********************************************************************
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 1e96c98

Please sign in to comment.