projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mi_make_breakpoint: add "evaluated-by" option
[deliverable/binutils-gdb.git]
/
libiberty
/
setproctitle.c
diff --git
a/libiberty/setproctitle.c
b/libiberty/setproctitle.c
index b176b41f949874417c6118859f3cf37811fbc6d0..6a2fe8ce3a5b6fffa5bd0bd68c73b12f92a6b681 100644
(file)
--- a/
libiberty/setproctitle.c
+++ b/
libiberty/setproctitle.c
@@
-1,5
+1,5
@@
/* Set the title of a process.
/* 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
This file is part of the libiberty library.
Libiberty is free software; you can redistribute it and/or
@@
-20,14
+20,15
@@
Boston, MA 02110-1301, USA. */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
-#ifdef HAVE_PRCTL_SET_NAME
+#ifdef HAVE_SYS_PRCTL_H
+#include <sys/types.h>
#include <sys/prctl.h>
#endif
#include "ansidecl.h"
/*
#include <sys/prctl.h>
#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.
Set the title of a process to @var{fmt}. va args not supported for now,
but defined for compatibility with BSD.
@@
-39,9
+40,9
@@
but defined for compatibility with BSD.
void
setproctitle (const char *name ATTRIBUTE_UNUSED, ...)
{
void
setproctitle (const char *name ATTRIBUTE_UNUSED, ...)
{
-#ifdef
HAVE_PRCTL
_SET_NAME
- /* On
Linux this sets the top visible "comm", but not necessarily
- the name visible in ps. */
+#ifdef
PR
_SET_NAME
+ /* On
GNU/Linux this sets the top visible "comm", but not
+
necessarily
the name visible in ps. */
prctl (PR_SET_NAME, name);
#endif
}
prctl (PR_SET_NAME, name);
#endif
}
This page took
0.02405 seconds
and
4
git commands to generate.