source: src/router/proftpd/include/proctitle.h @ 17876

Last change on this file since 17876 was 17876, checked in by BrainSlayer, 19 months ago

update proftp

File size: 1.7 KB
Line 
1/*
2 * ProFTPD - FTP server daemon
3 * Copyright (c) 2007-2011 The ProFTPD Project team
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
18 *
19 * As a special exemption, The ProFTPD Project team and other respective
20 * copyright holders give permission to link this program with OpenSSL, and
21 * distribute the resulting executable, without including the source code for
22 * OpenSSL in the source distribution.
23 */
24
25/* Proctitle handling
26 * $Id: proctitle.h,v 1.5 2011/05/23 20:35:35 castaglia Exp $
27 */
28
29#ifndef PR_PROCTITLE_H
30#define PR_PROCTITLE_H
31
32/* For internal use only. */
33void pr_proctitle_free(void);
34void pr_proctitle_init(int, char *[], char *[]);
35
36int pr_proctitle_get(char *, size_t);
37
38void pr_proctitle_set(const char *, ...)
39#ifdef __GNUC__
40       __attribute__ ((format (printf, 1, 2)));
41#else
42       ;
43#endif
44
45void pr_proctitle_set_str(const char *);
46
47/* If this function is used, all subsquent calls to pr_proctitle_set() and
48 * pr_proctitle_set_str() will effectively be ignored.
49 */
50void pr_proctitle_set_static_str(const char *);
51
52#endif /* PR_PROCTITLE_H */
Note: See TracBrowser for help on using the repository browser.