OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_COMMON_SET_PROCESS_TITLE_LINUX_H_ | 5 #ifndef CONTENT_COMMON_SET_PROCESS_TITLE_LINUX_H_ |
6 #define CHROME_COMMON_SET_PROCESS_TITLE_LINUX_H_ | 6 #define CONTENT_COMMON_SET_PROCESS_TITLE_LINUX_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 // Set the process title that will show in "ps" and similar tools. Takes | 9 // Set the process title that will show in "ps" and similar tools. Takes |
10 // printf-style format string and arguments. After calling setproctitle() | 10 // printf-style format string and arguments. After calling setproctitle() |
11 // the original main() argv[] array should not be used. By default, the | 11 // the original main() argv[] array should not be used. By default, the |
12 // original argv[0] is prepended to the format; this can be disabled by | 12 // original argv[0] is prepended to the format; this can be disabled by |
13 // including a '-' as the first character of the format string. | 13 // including a '-' as the first character of the format string. |
14 // | 14 // |
15 // This signature and naming is to be compatible with most other Unix | 15 // This signature and naming is to be compatible with most other Unix |
16 // implementations of setproctitle(). | 16 // implementations of setproctitle(). |
17 void setproctitle(const char* fmt, ...); | 17 void setproctitle(const char* fmt, ...); |
18 | 18 |
19 // Initialize state needed for setproctitle() on Linux. Pass the argv pointer | 19 // Initialize state needed for setproctitle() on Linux. Pass the argv pointer |
20 // from main() to setproctitle_init() before calling setproctitle(). | 20 // from main() to setproctitle_init() before calling setproctitle(). |
21 void setproctitle_init(char** main_argv); | 21 void setproctitle_init(char** main_argv); |
22 | 22 |
23 #endif // CHROME_COMMON_SET_PROCESS_TITLE_LINUX_H_ | 23 #endif // CONTENT_COMMON_SET_PROCESS_TITLE_LINUX_H_ |
OLD | NEW |