File: support_ext.h

package info (click to toggle)
ircd-irc2 2.11.2p2%2Bdfsg-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 3,288 kB
  • ctags: 3,280
  • sloc: ansic: 39,088; sh: 3,287; makefile: 379
file content (82 lines) | stat: -rw-r--r-- 3,116 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/************************************************************************
 *   IRC - Internet Relay Chat, common/support_ext.h
 *   Copyright (C) 1997 Alain Nissen
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 1, or (at your option)
 *   any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the Free Software
 *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

/*  This file contains external definitions for global variables and functions
    defined in common/support.c.
 */

/*  External definitions for global functions.
 */
#ifndef SUPPORT_C
#define EXTERN extern
#else /* SUPPORT_C */
#define EXTERN
#endif /* SUPPORT_C */
#ifdef INET6
EXTERN char ipv6string[INET6_ADDRSTRLEN];
#endif
EXTERN char *mystrdup (char *s);
#if !defined(HAVE_STRTOKEN)
EXTERN char *strtoken (char **save, char *str, char *fs);
#endif /* HAVE_STRTOKEN */
#if !defined(HAVE_STRTOK)
EXTERN char *strtok (char *str, char *fs);
#endif /* HAVE_STRTOK */
#if !defined(HAVE_STRERROR)
EXTERN char *strerror (int err_no);
#endif /* HAVE_STRERROR */
EXTERN char *myctime (time_t value);
EXTERN char *mybasename (char *);
#ifdef INET6
EXTERN char *inetntop(int af, const void *in, char *local_dummy, size_t the_size);
EXTERN int inetpton(int af, const char *src, void *dst);
#endif
#if !defined(HAVE_INET_NTOA)
EXTERN char *inetntoa (char *in);
#endif /* HAVE_INET_NTOA */
#if !defined(HAVE_INET_NETOF)
EXTERN int inetnetof (struct in_addr in);
#endif /* HAVE_INET_NETOF */
#if !defined(HAVE_INET_ADDR)
EXTERN u_long inetaddr (register const char *cp);
#endif /* HAVE_INET_ADDR */
#if !defined(HAVE_INET_ATON)
EXTERN int inetaton (register const char *cp, struct in_addr *addr);
#endif /* HAVE_INET_ATON */
#if defined(DEBUGMODE) && !defined(CLIENT_COMPILE)
EXTERN void dumpcore (char *msg, ...);
#endif /* DEBUGMODE && !CLIENT_COMPILE */
#if defined(DEBUGMODE) && !defined(CLIENT_COMPILE) && defined(DO_DEBUG_MALLOC)
EXTERN char *MyMalloc (size_t x);
EXTERN char *MyRealloc (char *x, size_t y);
EXTERN void MyFree (void *x);
#else /* DEBUGMODE && !CLIENT_COMPILE && !DO_DEBUG_MALLOC */
EXTERN char *MyMalloc (size_t x);
EXTERN char *MyRealloc (char *x, size_t y);
#endif /* DEBUGMODE && !CLIENT_COMPILE && !DO_DEBUG_MALLOC */
EXTERN int dgets (int fd, char *buf, int num);
EXTERN char *make_version(void);
EXTERN char **make_isupport(void);
#ifdef SOLARIS_2_3
EXTERN struct hostent *solaris_gethostbyname (const char *name);
#endif /* SOLARIS_2_3 */
#if defined(HAVE_MEMCMP) && defined(MEMCMP_BROKEN)
EXTERN int irc_memcmp (const __ptr_t s1, const __ptr_t s2, size_t len);
#endif /* HAVE_MEMCMP && MEMCMP_BROKEN */
#undef EXTERN