X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fproctitle.c;h=f605aef18b7b4b9f5aa3cd3fa29b02b0e9a81cce;hb=d047dae8f369ac5cbc3dedf8907b2c05694bb892;hp=ef985a2753319c9d72bdb3e66b267b8b65adfaed;hpb=d690455ffc9a909168a4d500215605690b916b7a;p=libucw.git diff --git a/lib/proctitle.c b/lib/proctitle.c index ef985a27..f605aef1 100644 --- a/lib/proctitle.c +++ b/lib/proctitle.c @@ -1,7 +1,10 @@ /* - * Sherlock Library -- Setting of Process Title + * UCW Library -- Setting of Process Title * - * (c) 2001 Martin Mares + * (c) 2001--2006 Martin Mares + * + * This software may be freely distributed and used according to the terms + * of the GNU Lesser General Public License. */ #include "lib/lib.h" @@ -17,7 +20,7 @@ static char *spt_start, *spt_end; void setproctitle_init(int argc, char **argv) { -#ifdef linux +#ifdef CONFIG_LINUX int i, len; char **env, **oldenv, *t; @@ -71,3 +74,9 @@ setproctitle(char *msg, ...) } va_end(args); } + +char * +getproctitle(void) +{ + return (spt_start < spt_end) ? spt_start : NULL; +}