Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(374)

Side by Side Diff: chrome/common/set_process_title_linux.h

Issue 6002013: Move the SetProcTitle code out of base and into chrome/common. This is only... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/set_process_title.cc ('k') | chrome/common/set_process_title_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 BASE_SETPROCTITLE_LINUX_H_ 5 #ifndef CHROME_COMMON_SET_PROCESS_TITLE_LINUX_H_
6 #define BASE_SETPROCTITLE_LINUX_H_ 6 #define CHROME_COMMON_SET_PROCESS_TITLE_LINUX_H_
7 #pragma once 7 #pragma once
8 8
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12
13 // 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
14 // printf-style format string and arguments. After calling setproctitle() 10 // printf-style format string and arguments. After calling setproctitle()
15 // 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
16 // 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
17 // including a '-' as the first character of the format string. 13 // including a '-' as the first character of the format string.
14 //
15 // This signature and naming is to be compatible with most other Unix
16 // implementations of setproctitle().
18 void setproctitle(const char* fmt, ...); 17 void setproctitle(const char* fmt, ...);
19 18
20 // Initialize state needed for setproctitle() on Linux. Pass the argv pointer 19 // Initialize state needed for setproctitle() on Linux. Pass the argv pointer
21 // from main() to setproctitle_init() before calling setproctitle(). 20 // from main() to setproctitle_init() before calling setproctitle().
22 void setproctitle_init(char** main_argv); 21 void setproctitle_init(char** main_argv);
23 22
24 #ifdef __cplusplus 23 #endif // CHROME_COMMON_SET_PROCESS_TITLE_LINUX_H_
25 }
26 #endif
27
28 #endif // BASE_SETPROCTITLE_LINUX_H_
OLDNEW
« no previous file with comments | « chrome/common/set_process_title.cc ('k') | chrome/common/set_process_title_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698