зеркало из https://github.com/github/ruby.git
* signal.c (ruby_signal_name): adjust to the prototype.
* process.c (pst_inspect): ditto. * ext/etc/etc.c (Init_etc): typo. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
969f4d4c68
Коммит
5c547fd3e2
|
@ -1,3 +1,11 @@
|
||||||
|
Thu Oct 2 00:14:16 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* signal.c (ruby_signal_name): adjust to the prototype.
|
||||||
|
|
||||||
|
* process.c (pst_inspect): ditto.
|
||||||
|
|
||||||
|
* ext/etc/etc.c (Init_etc): typo.
|
||||||
|
|
||||||
Wed Oct 1 20:49:41 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Wed Oct 1 20:49:41 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* gc.c (heaps): manage slots and limits together. [ruby-dev:21453]
|
* gc.c (heaps): manage slots and limits together. [ruby-dev:21453]
|
||||||
|
|
|
@ -366,7 +366,7 @@ Init_etc()
|
||||||
rb_define_module_function(mEtc, "group", etc_group, 0);
|
rb_define_module_function(mEtc, "group", etc_group, 0);
|
||||||
rb_define_module_function(mEtc, "setgrent", etc_setgrent, 0);
|
rb_define_module_function(mEtc, "setgrent", etc_setgrent, 0);
|
||||||
rb_define_module_function(mEtc, "endgrent", etc_endgrent, 0);
|
rb_define_module_function(mEtc, "endgrent", etc_endgrent, 0);
|
||||||
rb_define_module_function(mEtc, "getgrent", etc_g,etgrent, 0);
|
rb_define_module_function(mEtc, "getgrent", etc_getgrent, 0);
|
||||||
|
|
||||||
sPasswd = rb_struct_define("Passwd",
|
sPasswd = rb_struct_define("Passwd",
|
||||||
"name", "passwd", "uid", "gid",
|
"name", "passwd", "uid", "gid",
|
||||||
|
|
|
@ -160,7 +160,7 @@ pst_inspect(st)
|
||||||
str = rb_str_new2(buf);
|
str = rb_str_new2(buf);
|
||||||
if (WIFSTOPPED(status)) {
|
if (WIFSTOPPED(status)) {
|
||||||
int stopsig = WSTOPSIG(status);
|
int stopsig = WSTOPSIG(status);
|
||||||
char *signame = ruby_signal_name(stopsig);
|
const char *signame = ruby_signal_name(stopsig);
|
||||||
if (signame) {
|
if (signame) {
|
||||||
snprintf(buf, sizeof(buf), ",stopped(SIG%s=%d)", signame, stopsig);
|
snprintf(buf, sizeof(buf), ",stopped(SIG%s=%d)", signame, stopsig);
|
||||||
}
|
}
|
||||||
|
@ -171,7 +171,7 @@ pst_inspect(st)
|
||||||
}
|
}
|
||||||
if (WIFSIGNALED(status)) {
|
if (WIFSIGNALED(status)) {
|
||||||
int termsig = WTERMSIG(status);
|
int termsig = WTERMSIG(status);
|
||||||
char *signame = ruby_signal_name(termsig);
|
const char *signame = ruby_signal_name(termsig);
|
||||||
if (signame) {
|
if (signame) {
|
||||||
snprintf(buf, sizeof(buf), ",signaled(SIG%s=%d)", signame, termsig);
|
snprintf(buf, sizeof(buf), ",signaled(SIG%s=%d)", signame, termsig);
|
||||||
}
|
}
|
||||||
|
|
2
signal.c
2
signal.c
|
@ -191,7 +191,7 @@ signo2signm(no)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *
|
const char *
|
||||||
ruby_signal_name(no)
|
ruby_signal_name(no)
|
||||||
int no;
|
int no;
|
||||||
{
|
{
|
||||||
|
|
Загрузка…
Ссылка в новой задаче