~ubuntu-branches/ubuntu/vivid/curl/vivid

« back to all changes in this revision

Viewing changes to lib/memdebug.h

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Schuldei
  • Date: 2009-04-02 23:35:45 UTC
  • mto: (1.2.1 upstream) (3.2.3 sid)
  • mto: This revision was merged to the branch mainline in revision 38.
  • Revision ID: james.westby@ubuntu.com-20090402233545-geixkwhe3izccjt7
Tags: upstream-7.19.4
ImportĀ upstreamĀ versionĀ 7.19.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 *                            | (__| |_| |  _ <| |___
9
9
 *                             \___|\___/|_| \_\_____|
10
10
 *
11
 
 * Copyright (C) 1998 - 2006, Daniel Stenberg, <daniel@haxx.se>, et al.
 
11
 * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
12
12
 *
13
13
 * This software is licensed as described in the file COPYING, which
14
14
 * you should have received as part of this distribution. The terms
21
21
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
22
22
 * KIND, either express or implied.
23
23
 *
24
 
 * $Id: memdebug.h,v 1.34 2007-06-28 11:11:29 jehousley Exp $
 
24
 * $Id: memdebug.h,v 1.36 2008-10-30 19:02:23 yangtse Exp $
25
25
 ***************************************************************************/
26
26
 
27
27
/*
67
67
/* FILE functions */
68
68
CURL_EXTERN FILE *curl_fopen(const char *file, const char *mode, int line,
69
69
                             const char *source);
 
70
#ifdef HAVE_FDOPEN
70
71
CURL_EXTERN FILE *curl_fdopen(int filedes, const char *mode, int line,
71
72
                              const char *source);
 
73
#endif
72
74
CURL_EXTERN int curl_fclose(FILE *file, int line, const char *source);
73
75
 
74
76
#ifndef MEMDEBUG_NODEFINES
87
89
#define accept(sock,addr,len)\
88
90
 curl_accept(sock,addr,len,__LINE__,__FILE__)
89
91
 
 
92
#ifdef HAVE_GETADDRINFO
90
93
#if defined(getaddrinfo) && defined(__osf__)
91
94
/* OSF/1 and Tru64 have getaddrinfo as a define already, so we cannot define
92
95
   our macro as for other platforms. Instead, we redefine the new name they
98
101
#define getaddrinfo(host,serv,hint,res) \
99
102
  curl_dogetaddrinfo(host,serv,hint,res,__LINE__,__FILE__)
100
103
#endif
 
104
#endif /* HAVE_GETADDRINFO */
101
105
 
102
106
#ifdef HAVE_GETNAMEINFO
103
107
#undef getnameinfo
104
108
#define getnameinfo(sa,salen,host,hostlen,serv,servlen,flags) \
105
109
  curl_dogetnameinfo(sa,salen,host,hostlen,serv,servlen,flags, __LINE__, \
106
110
  __FILE__)
107
 
#endif
 
111
#endif /* HAVE_GETNAMEINFO */
108
112
 
 
113
#ifdef HAVE_FREEADDRINFO
109
114
#undef freeaddrinfo
110
115
#define freeaddrinfo(data) \
111
116
  curl_dofreeaddrinfo(data,__LINE__,__FILE__)
 
117
#endif /* HAVE_FREEADDRINFO */
112
118
 
113
119
/* sclose is probably already defined, redefine it! */
114
120
#undef sclose