/usr/include/dpm/Cpool_api.h is in libdpm-dev 1.8.7-3.1+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | /*
* Cpool_api.h,v 1.4 1999-10-20 21:07:45+02 jdurand Exp
*
*/
/*
* Copyright (C) 1999-2002 by CERN/IT/DS/HSM
* All rights reserved
*/
#ifndef __cpool_api_h
#define __cpool_api_h
#include <Cthread_api.h>
/* Memory allocation wrappers - JUST used in case of */
/* Cthread_environment() returning CTHREAD_MULTI_PROCESS */
/* On WIN32 this will NEVER occur. And it will cause compile */
/* errors. So we explicitely disable it on this OS. As a */
/* a consequence, this will only be compiled on UNIX-like */
/* systems */
/* 07-JUN-1999 Jean-Damien Durand and Olof Barring */
#ifndef _WIN32
#ifndef _CTHREAD
/* Cthread_environment would return CTHREAD_MULTI_PROCESS */
#ifndef malloc
#define malloc(a) Cpool_malloc(__FILE__,__LINE__,a)
#endif
#ifndef free
#define free(a) Cpool_free(__FILE__,__LINE__,a)
#endif
#ifndef realloc
#define realloc(a,b) Cpool_realloc(__FILE__,__LINE__,a,b)
#endif
#ifndef calloc
#define calloc(a,b) Cpool_calloc(__FILE__,__LINE__,a,b)
#endif
#endif /* _CTHREAD */
#endif /* _WIN32 */
#ifndef _WIN32
EXTERN_C void DLL_DECL *Cpool_calloc _PROTO((char *, int, size_t, size_t));
EXTERN_C void DLL_DECL *Cpool_malloc _PROTO((char *, int, size_t));
EXTERN_C void DLL_DECL Cpool_free _PROTO((char *, int, void *));
EXTERN_C void DLL_DECL *Cpool_realloc _PROTO((char *, int, void *, size_t));
#endif /* _WIN32 */
#define Cpool_create(nbreq,nbget) Cpool_create_ext(nbreq,nbget,NULL)
#define Cpool_assign(poolid,addr,args,timeout) Cpool_assign_ext(poolid,NULL,addr,args,timeout)
#define Cpool_next_index(poolnb) Cpool_next_index_timeout(poolnb,-1)
#define Cpool_next_index_timeout(poolnb,timeout) Cpool_next_index_timeout_ext(poolnb,NULL,timeout)
/* ===================================== */
/* Extended version (a-la-Cthread's ext) */
/* goal: get rid of internal mutexes */
/* ===================================== */
EXTERN_C int DLL_DECL Cpool_create_ext _PROTO((int, int *, void **));
EXTERN_C int DLL_DECL Cpool_assign_ext _PROTO((int, void *, void *(*)(void *), void *, int));
EXTERN_C int DLL_DECL Cpool_next_index_timeout_ext _PROTO((int, void *, int));
#endif /* __cpool_api_h */
|