• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeinit
 

tdeinit

  • tdeinit
setproctitle.h
1 /*
2  * Copyright (c) 1998 Sendmail, Inc. All rights reserved.
3  * Copyright (c) 1983, 1995-1997 Eric P. Allman. All rights reserved.
4  * Copyright (c) 1988, 1993
5  * The Regents of the University of California. All rights reserved.
6  *
7  * By using this file, you agree to the terms and conditions set
8  * forth in the LICENSE file which can be found at the top level of
9  * the sendmail distribution.
10  *
11  * A copy of the above mentioned LICENSE file can be found in
12  * LICENSE.setproctitle.
13  *
14  * Ported for use with KDE by Waldo Bastian <bastian@kde.org>
15  */
16 
17 #ifndef _SETPROCTITLE_H_
18 #define _SETPROCTITLE_H_
19 
20 #ifdef __hpux
21 # define SPT_TYPE SPT_PSTAT
22 #endif
23 
24 #ifdef _AIX3
25 # define SPT_PADCHAR '\0' /* pad process title with nulls */
26 #endif
27 
28 #ifdef _AIX4
29 # define SPT_PADCHAR '\0' /* pad process title with nulls */
30 #endif
31 
32 #ifdef AIX /* AIX/RT compiler pre-defines this */
33 # define SPT_PADCHAR '\0' /* pad process title with nulls */
34 #endif
35 
36 #ifdef DGUX_5_4_2
37 # define DGUX 1
38 #endif
39 
40 #ifdef DGUX
41 # define SPT_TYPE SPT_NONE /* don't use setproctitle */
42 #endif
43 
44 /*
45 ** Apple Rhapsody
46 ** Contributed by Wilfredo Sanchez <wsanchez@apple.com>
47 */
48 
49 #ifdef __APPLE__
50 # define SPT_TYPE SPT_PSSTRINGS
51 # define SPT_PADCHAR '\0' /* pad process title with nulls */
52 #endif
53 
54 #if defined(BSD4_4) && !defined(__bsdi__) && !defined(__GNU__)
55 # define SPT_TYPE SPT_PSSTRINGS /* use PS_STRINGS pointer */
56 #endif
57 
58 #ifdef __bsdi__
59 # if defined(_BSDI_VERSION) && _BSDI_VERSION >= 199312
60 /* version 1.1 or later */
61 # undef SPT_TYPE
62 # define SPT_TYPE SPT_BUILTIN /* setproctitle is in libc */
63 # else
64 /* version 1.0 or earlier */
65 # define SPT_PADCHAR '\0' /* pad process title with nulls */
66 # endif
67 #endif
68 
69 #if defined(__QNX__)
70 # define SPT_TYPE SPT_REUSEARGV
71 # define SPT_PADCHAR '\0' /* pad process title with nulls */
72 #endif
73 
74 #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
75 # if defined(__NetBSD__) || defined(__DragonFly__)
76 # undef SPT_TYPE
77 # define SPT_TYPE SPT_BUILTIN /* setproctitle is in libc */
78 # endif
79 # if defined(__FreeBSD__)
80 # undef SPT_TYPE
81 # if __FreeBSD__ >= 2
82 # include <osreldate.h>
83 # if __FreeBSD_version >= 199512 /* 2.2-current when it appeared */
84 # include <sys/types.h>
85 # include <libutil.h>
86 # define SPT_TYPE SPT_BUILTIN
87 # endif
88 # endif
89 # ifndef SPT_TYPE
90 # define SPT_TYPE SPT_REUSEARGV
91 # define SPT_PADCHAR '\0' /* pad process title with nulls */
92 # endif
93 # endif
94 # if defined(__OpenBSD__)
95 # undef SPT_TYPE
96 # define SPT_TYPE SPT_BUILTIN /* setproctitle is in libc */
97 # endif
98 #endif
99 
100 #ifdef __GNU_HURD__
101 # define SPT_TYPE SPT_CHANGEARGV
102 #endif
103 
104 /* SCO UNIX 3.2v4.2/Open Desktop 3.0 */
105 #ifdef _SCO_unix_4_2
106 # define _SCO_unix_
107 #endif
108 
109 /* SCO UNIX 3.2v4.0 Open Desktop 2.0 and earlier */
110 #ifdef _SCO_unix_
111 # define SPT_TYPE SPT_SCO /* write kernel u. area */
112 #endif
113 
114 
115 #ifdef __linux__
116 # define SPT_PADCHAR '\0' /* pad process title with nulls */
117 #endif
118 
119 #ifdef _SEQUENT_
120 # define SPT_TYPE SPT_NONE /* don't use setproctitle */
121 #endif
122 
123 #ifdef apollo
124 # define SPT_TYPE SPT_NONE /* don't use setproctitle */
125 #endif
126 
127 #ifdef __svr5__
128 # define SPT_PADCHAR '\0' /* pad process title with nulls */
129 #endif
130 
131 #ifdef NCR_MP_RAS2
132 # define SPT_TYPE SPT_NONE
133 #endif
134 
135 #ifdef NCR_MP_RAS3
136 # define SPT_TYPE SPT_NONE
137 #endif
138 
139 #ifdef sony_news
140 # ifndef __svr4
141 # ifndef SPT_TYPE
142 # define SPT_TYPE SPT_SYSMIPS /* use sysmips() (OS 6.0.2 or later) */
143 # endif
144 # endif
145 #endif
146 
147 
148 extern void tdeinit_initsetproctitle(int, char **, char **);
149 extern void tdeinit_setproctitle(const char *, ...)
150 #ifdef __GNUC__
151  __attribute__ (( format ( printf, 1, 2 ) ) )
152 #endif
153 ;
154 
155 #endif
156 

tdeinit

Skip menu "tdeinit"
  • Main Page
  • File List
  • Related Pages

tdeinit

Skip menu "tdeinit"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeinit by doxygen 1.9.1
This website is maintained by Timothy Pearson.