/*
* UCW Library -- Setting of Process Title
*
- * (c) 2001 Martin Mares <mj@ucw.cz>
+ * (c) 2001--2006 Martin Mares <mj@ucw.cz>
*
* This software may be freely distributed and used according to the terms
* of the GNU Lesser General Public License.
void
setproctitle_init(int argc, char **argv)
{
-#ifdef linux
+#ifdef CONFIG_LINUX
int i, len;
char **env, **oldenv, *t;
}
va_end(args);
}
+
+char *
+getproctitle(void)
+{
+ return (spt_start < spt_end) ? spt_start : NULL;
+}