KInit
setproctitle.cpp File Reference
#include "setproctitle.h"#include <stdio.h>#include <stdarg.h>#include <sys/ioctl.h>#include <sys/param.h>#include <limits.h>#include <stdlib.h>#include <string.h>#include <unistd.h>

Go to the source code of this file.
Defines | |
| #define | _PATH_KMEM "/dev/kmem" |
| #define | SETPROC_STATIC |
| #define | SPACELEFT(buf, ptr) (sizeof buf - ((ptr) - buf)) |
| #define | SPT_BUFSIZE 2048 |
| #define | SPT_BUILTIN 2 |
| #define | SPT_CHANGEARGV 7 |
| #define | SPT_NONE 0 |
| #define | SPT_PADCHAR ' ' |
| #define | SPT_PSSTRINGS 4 |
| #define | SPT_PSTAT 3 |
| #define | SPT_REUSEARGV 1 |
| #define | SPT_SCO 6 |
| #define | SPT_SYSMIPS 5 |
| #define | SPT_TYPE SPT_REUSEARGV |
Functions | |
| void | kdeinit_initsetproctitle (int argc, char **argv, char **envp) |
| void | kdeinit_setproctitle (const char *fmt,...) |
| static void | setproctitle (const char *fmt,...) |
Variables | |
| char ** | Argv = NULL |
| char * | LastArgv = NULL |
Define Documentation
| #define _PATH_KMEM "/dev/kmem" |
Definition at line 38 of file setproctitle.cpp.
| #define SETPROC_STATIC |
Definition at line 96 of file setproctitle.cpp.
| #define SPACELEFT | ( | buf, | |||
| ptr | ) | (sizeof buf - ((ptr) - buf)) |
Definition at line 41 of file setproctitle.cpp.
| #define SPT_BUFSIZE 2048 |
Definition at line 125 of file setproctitle.cpp.
| #define SPT_BUILTIN 2 |
Definition at line 61 of file setproctitle.cpp.
| #define SPT_CHANGEARGV 7 |
Definition at line 66 of file setproctitle.cpp.
| #define SPT_NONE 0 |
Definition at line 59 of file setproctitle.cpp.
| #define SPT_PADCHAR ' ' |
Definition at line 118 of file setproctitle.cpp.
| #define SPT_PSSTRINGS 4 |
Definition at line 63 of file setproctitle.cpp.
| #define SPT_PSTAT 3 |
Definition at line 62 of file setproctitle.cpp.
| #define SPT_REUSEARGV 1 |
Definition at line 60 of file setproctitle.cpp.
| #define SPT_SCO 6 |
Definition at line 65 of file setproctitle.cpp.
| #define SPT_SYSMIPS 5 |
Definition at line 64 of file setproctitle.cpp.
| #define SPT_TYPE SPT_REUSEARGV |
Definition at line 69 of file setproctitle.cpp.
Function Documentation
| void kdeinit_initsetproctitle | ( | int | argc, | |
| char ** | argv, | |||
| char ** | envp | |||
| ) |
Definition at line 137 of file setproctitle.cpp.
| void kdeinit_setproctitle | ( | const char * | fmt, | |
| ... | ||||
| ) |
Definition at line 290 of file setproctitle.cpp.
| static void setproctitle | ( | const char * | fmt, | |
| ... | ||||
| ) | [static] |
Definition at line 199 of file setproctitle.cpp.
Variable Documentation
| char** Argv = NULL |
Definition at line 133 of file setproctitle.cpp.
| char* LastArgv = NULL |
Definition at line 134 of file setproctitle.cpp.
KDE 3.5 API Reference