OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef BASE_SETPROCTITLE_LINUX_H_ |
| 6 #define BASE_SETPROCTITLE_LINUX_H_ |
| 7 |
| 8 #ifdef __cplusplus |
| 9 extern "C" { |
| 10 #endif |
| 11 |
| 12 // Set the process title that will show in "ps" and similar tools. Takes |
| 13 // printf-style format string and arguments. After calling setproctitle() |
| 14 // the original main() argv[] array should not be used. |
| 15 void setproctitle(const char* fmt, ...); |
| 16 |
| 17 // Initialize state needed for setproctitle() on Linux. Pass the argv pointer |
| 18 // from main() to setproctitle_init() before calling setproctitle(). |
| 19 void setproctitle_init(char** main_argv); |
| 20 |
| 21 #ifdef __cplusplus |
| 22 } |
| 23 #endif |
| 24 |
| 25 #endif // BASE_SETPROCTITLE_LINUX_H_ |
OLD | NEW |