X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=libiberty%2Fsetproctitle.c;h=6a2fe8ce3a5b6fffa5bd0bd68c73b12f92a6b681;hb=ef53be89160126f2fa5dec8f1ec3bd6d99fb0681;hp=ceb0a3894cce33ddfd033ba83d823794e2c2d083;hpb=62b06a9e17aacab20187632db20a98c4f2fe7f49;p=deliverable%2Fbinutils-gdb.git diff --git a/libiberty/setproctitle.c b/libiberty/setproctitle.c index ceb0a3894c..6a2fe8ce3a 100644 --- a/libiberty/setproctitle.c +++ b/libiberty/setproctitle.c @@ -1,5 +1,5 @@ /* Set the title of a process. - Copyright (C) 2010 Free Software Foundation, Inc. + Copyright (C) 2010, 2011 Free Software Foundation, Inc. This file is part of the libiberty library. Libiberty is free software; you can redistribute it and/or @@ -21,13 +21,14 @@ Boston, MA 02110-1301, USA. */ #include "config.h" #endif #ifdef HAVE_SYS_PRCTL_H +#include #include #endif #include "ansidecl.h" /* -@deftypefn Supplemental void setproctitle (const char *@var{fmt} ...) +@deftypefn Supplemental void setproctitle (const char *@var{fmt}, ...) Set the title of a process to @var{fmt}. va args not supported for now, but defined for compatibility with BSD. @@ -40,8 +41,8 @@ void setproctitle (const char *name ATTRIBUTE_UNUSED, ...) { #ifdef PR_SET_NAME - /* On Linux this sets the top visible "comm", but not necessarily - the name visible in ps. */ + /* On GNU/Linux this sets the top visible "comm", but not + necessarily the name visible in ps. */ prctl (PR_SET_NAME, name); #endif }