|
Ruby
2.0.0p481(2014-05-08revision45883)
|
#include "ruby.h"#include "ruby/util.h"#include <stdarg.h>#include <stdlib.h>#include <string.h>
Go to the source code of this file.
Defines | |
| #define | compat_init_setproctitle ruby_init_setproctitle |
| #define | SPT_NONE 0 /* don't use it at all */ |
| #define | SPT_PSTAT 1 /* use pstat(PSTAT_SETCMD, ...) */ |
| #define | SPT_REUSEARGV 2 /* cover argv with title information */ |
| #define | SPT_TYPE SPT_NONE |
| #define | SPT_PADCHAR '\0' |
Functions | |
| void | compat_init_setproctitle (int argc, char *argv[]) |
| void | setproctitle (const char *fmt,...) |
| #define compat_init_setproctitle ruby_init_setproctitle |
Definition at line 37 of file setproctitle.c.
| #define SPT_NONE 0 /* don't use it at all */ |
Definition at line 61 of file setproctitle.c.
| #define SPT_PADCHAR '\0' |
Definition at line 70 of file setproctitle.c.
Referenced by setproctitle().
| #define SPT_PSTAT 1 /* use pstat(PSTAT_SETCMD, ...) */ |
Definition at line 62 of file setproctitle.c.
| #define SPT_REUSEARGV 2 /* cover argv with title information */ |
Definition at line 63 of file setproctitle.c.
Definition at line 66 of file setproctitle.c.
| void compat_init_setproctitle | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 82 of file setproctitle.c.
References argc, calloc, environ, NULL, ruby_strdup(), and strlen().
| void setproctitle | ( | const char * | fmt, |
| ... | |||
| ) |
Definition at line 135 of file setproctitle.c.
References NULL, SPT_PADCHAR, strlcpy(), strlen(), and vsnprintf.
Referenced by set_arg0().
1.7.6.1