
The methodology used to generate this CL is documented in https://crbug.com/1098010#c34. No-Try: true No-Presubmit: true Bug: 1098010 Change-Id: I8c0f009d16350271f07d8e5e561085822cc9dd27 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3895935 Owners-Override: Avi Drissman <avi@chromium.org> Reviewed-by: Mark Mentovai <mark@chromium.org> Commit-Queue: Mark Mentovai <mark@chromium.org> Auto-Submit: Avi Drissman <avi@chromium.org> Cr-Commit-Position: refs/heads/main@{#1047456}
23 lines
1002 B
C
23 lines
1002 B
C
// Copyright 2012 The Chromium Authors
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef CONTENT_COMMON_SET_PROCESS_TITLE_LINUX_H_
|
|
#define CONTENT_COMMON_SET_PROCESS_TITLE_LINUX_H_
|
|
|
|
// Set the process title that will show in "ps" and similar tools. Takes
|
|
// printf-style format string and arguments. After calling setproctitle()
|
|
// the original main() argv[] array should not be used. By default, the
|
|
// original argv[0] is prepended to the format; this can be disabled by
|
|
// including a '-' as the first character of the format string.
|
|
//
|
|
// This signature and naming is to be compatible with most other Unix
|
|
// implementations of setproctitle().
|
|
void setproctitle(const char* fmt, ...);
|
|
|
|
// Initialize state needed for setproctitle() on Linux. Pass the argv pointer
|
|
// from main() to setproctitle_init() before calling setproctitle().
|
|
void setproctitle_init(const char** main_argv);
|
|
|
|
#endif // CONTENT_COMMON_SET_PROCESS_TITLE_LINUX_H_
|