• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KInit

  • kinit
Macros | Functions | Variables
proctitle.cpp File Reference
#include "proctitle.h"
#include <config.h>
#include <config-kdeinit.h>
#include <string.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>

Go to the source code of this file.

Macros

#define PF_ARGV_NEW   1
 
#define PF_ARGV_NONE   0
 
#define PF_ARGV_PSSTRINGS   4
 
#define PF_ARGV_PSTAT   3
 
#define PF_ARGV_TYPE   PF_ARGV_WRITEABLE
 
#define PF_ARGV_WRITEABLE   2
 

Functions

void proctitle_init (int argc, char *argv[], char *envp[])
 
void proctitle_set (const char *fmt,...)
 

Variables

static char ** Argv = NULL
 
static char * cleanUpTo = NULL
 
char ** environ
 
static char * LastArgv = NULL
 

Macro Definition Documentation

◆ PF_ARGV_NEW

#define PF_ARGV_NEW   1

Definition at line 32 of file proctitle.cpp.

◆ PF_ARGV_NONE

#define PF_ARGV_NONE   0

Definition at line 31 of file proctitle.cpp.

◆ PF_ARGV_PSSTRINGS

#define PF_ARGV_PSSTRINGS   4

Definition at line 35 of file proctitle.cpp.

◆ PF_ARGV_PSTAT

#define PF_ARGV_PSTAT   3

Definition at line 34 of file proctitle.cpp.

◆ PF_ARGV_TYPE

#define PF_ARGV_TYPE   PF_ARGV_WRITEABLE

Definition at line 50 of file proctitle.cpp.

◆ PF_ARGV_WRITEABLE

#define PF_ARGV_WRITEABLE   2

Definition at line 33 of file proctitle.cpp.

Function Documentation

◆ proctitle_init()

void proctitle_init ( int  argc,
char *  argv[],
char *  envp[] 
)

Set up the memory space for setting the proctitle.

Initialises the program data variables to allow the changing of the process title.

Definition at line 89 of file proctitle.cpp.

◆ proctitle_set()

void proctitle_set ( const char *  fmt,
  ... 
)

Change the process title.

It accepts a variable number of arguments (a va_list) in the manner of the printf family of functions. See the documentation for printf for a description of the format string.

Definition at line 142 of file proctitle.cpp.

Variable Documentation

◆ Argv

char** Argv = NULL
static

Definition at line 79 of file proctitle.cpp.

◆ cleanUpTo

char* cleanUpTo = NULL
static

Definition at line 83 of file proctitle.cpp.

◆ environ

char** environ
extern

◆ LastArgv

char* LastArgv = NULL
static

Definition at line 82 of file proctitle.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KInit

Skip menu "KInit"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal