Tweak/Wontfix a few tests that we could care less about.
[chromium-blink-merge.git] / base / setproctitle_linux.h
blobc1cf68962dfb1fc79878d99ae2a1eec780e261b7
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.
5 #ifndef BASE_SETPROCTITLE_LINUX_H_
6 #define BASE_SETPROCTITLE_LINUX_H_
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
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. By default, the
15 // original argv[0] is prepended to the format; this can be disabled by
16 // including a '-' as the first character of the format string.
17 void setproctitle(const char* fmt, ...);
19 // Initialize state needed for setproctitle() on Linux. Pass the argv pointer
20 // from main() to setproctitle_init() before calling setproctitle().
21 void setproctitle_init(char** main_argv);
23 #ifdef __cplusplus
25 #endif
27 #endif // BASE_SETPROCTITLE_LINUX_H_