mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
Merged revisions 213559 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r213559 | tilghman | 2009-08-21 11:52:53 -0500 (Fri, 21 Aug 2009) | 7 lines Permit DEBUG_FD_LEAKS to be used with C++ source files. (closes issue #15698) Reported by: slavon Patches: 20090817__issue15698.diff.txt uploaded by tilghman (license 14) Tested by: slavon, tilghman ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@213560 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -75,6 +75,9 @@
|
|||||||
#define dup2(a,b) __ast_fdleak_dup2(a, b, __FILE__,__LINE__,__PRETTY_FUNCTION__)
|
#define dup2(a,b) __ast_fdleak_dup2(a, b, __FILE__,__LINE__,__PRETTY_FUNCTION__)
|
||||||
#define dup(a) __ast_fdleak_dup(a, __FILE__,__LINE__,__PRETTY_FUNCTION__)
|
#define dup(a) __ast_fdleak_dup(a, __FILE__,__LINE__,__PRETTY_FUNCTION__)
|
||||||
|
|
||||||
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
int __ast_fdleak_open(const char *file, int line, const char *func, const char *path, int flags, ...);
|
int __ast_fdleak_open(const char *file, int line, const char *func, const char *path, int flags, ...);
|
||||||
int __ast_fdleak_pipe(int *fds, const char *file, int line, const char *func);
|
int __ast_fdleak_pipe(int *fds, const char *file, int line, const char *func);
|
||||||
int __ast_fdleak_socket(int domain, int type, int protocol, const char *file, int line, const char *func);
|
int __ast_fdleak_socket(int domain, int type, int protocol, const char *file, int line, const char *func);
|
||||||
@@ -83,6 +86,9 @@ FILE *__ast_fdleak_fopen(const char *path, const char *mode, const char *file, i
|
|||||||
int __ast_fdleak_fclose(FILE *ptr);
|
int __ast_fdleak_fclose(FILE *ptr);
|
||||||
int __ast_fdleak_dup2(int oldfd, int newfd, const char *file, int line, const char *func);
|
int __ast_fdleak_dup2(int oldfd, int newfd, const char *file, int line, const char *func);
|
||||||
int __ast_fdleak_dup(int oldfd, const char *file, int line, const char *func);
|
int __ast_fdleak_dup(int oldfd, const char *file, int line, const char *func);
|
||||||
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
|
}
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int ast_set_priority(int); /*!< Provided by asterisk.c */
|
int ast_set_priority(int); /*!< Provided by asterisk.c */
|
||||||
|
Reference in New Issue
Block a user