/* Set the title of a process.
- Copyright (C) 2010 Free Software Foundation, Inc.
+ Copyright (C) 2010-2019 Free Software Foundation, Inc.
This file is part of the libiberty library.
Libiberty is free software; you can redistribute it and/or
/*
-@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.
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
}