4
* The code in this file, setproctitle.h is heavily based on code from
5
* proftpd, please see the licening information below.
7
* This file added to the heartbeat tree by Horms <horms@vergenet.net>
9
* Code to portably change the title of a programme as displayed
12
* heartbeat: Linux-HA heartbeat code
14
* Copyright (C) 1999,2000,2001 Alan Robertson <alanr@unix.sh>
16
* This program is free software; you can redistribute it and/or
17
* modify it under the terms of the GNU General Public License
18
* as published by the Free Software Foundation; either version 2
19
* of the License, or (at your option) any later version.
21
* This program is distributed in the hope that it will be useful,
22
* but WITHOUT ANY WARRANTY; without even the implied warranty of
23
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24
* GNU General Public License for more details.
26
* You should have received a copy of the GNU General Public License
27
* along with this program; if not, write to the Free Software
28
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
32
* ProFTPD - FTP server daemon
33
* Copyright (c) 1997, 1998 Public Flood Software
34
* Copyright (C) 1999, 2000 MacGyver aka Habeeb J. Dihu <macgyver@tos.net>
36
* This program is free software; you can redistribute it and/or modify
37
* it under the terms of the GNU General Public License as published by
38
* the Free Software Foundation; either version 2 of the License, or
39
* (at your option) any later version.
41
* This program is distributed in the hope that it will be useful,
42
* but WITHOUT ANY WARRANTY; without even the implied warranty of
43
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
44
* GNU General Public License for more details.
46
* You should have received a copy of the GNU General Public License
47
* along with this program; if not, write to the Free Software
48
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
50
* As a special exemption, Public Flood Software/MacGyver aka Habeeb J. Dihu
51
* and other respective copyright holders give permission to link this program
52
* with OpenSSL, and distribute the resulting executable, without including
53
* the source code for OpenSSL in the source distribution.
56
#ifndef _HA_SETPROCTITLE_H
57
#define _HA_SETPROCTITLE_H
60
int init_set_proc_title(int argc, char *argv[], char *envp[]);
62
void set_proc_title(const char *fmt,...) G_GNUC_PRINTF(1,2);
64
#endif /* _HA_SETPROCTITLE_H */