mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
introduce missing/setproctitle.c
* include/ruby/missing.h: add setproctitle() declaration. * missing/setproctitle.c: added. * configure.in: add check for missing/setproctitle.c. * ruby.c (ruby_process_options): add to call compat_init_setproctitle(). * ruby.c (set_arg0): remove all platform specific code. it's moved to missing/setproctitle.c. * ruby.c (origarg): remove len field. It's no longer used. * ruby.c (get_arglen): removed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
537a293669
commit
3ad44e0aa1
5 changed files with 197 additions and 97 deletions
|
@ -191,6 +191,10 @@ RUBY_EXTERN int ruby_shutdown(int, int);
|
|||
RUBY_EXTERN int ruby_close(int);
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_SETPROCTITLE
|
||||
RUBY_EXTERN void setproctitle(const char *fmt, ...);
|
||||
#endif
|
||||
|
||||
#if defined __GNUC__ && __GNUC__ >= 4
|
||||
#pragma GCC visibility pop
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue