/usr/include/ug/lowcomm.h is in libdune-uggrid-dev 2.5.0-1.
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 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
/****************************************************************************/
/* */
/* File: lowcomm.h */
/* */
/* Purpose: lowlevel communication layer */
/* */
/* Author: Klaus Birken */
/* Institut fuer Computeranwendungen III */
/* Universitaet Stuttgart */
/* Pfaffenwaldring 27 */
/* 70569 Stuttgart */
/* internet: birken@ica3.uni-stuttgart.de */
/* */
/* History: 960715 kb begin */
/* */
/* Remarks: */
/* */
/****************************************************************************/
/****************************************************************************/
/* */
/* auto include mechanism and other include files */
/* */
/****************************************************************************/
#ifndef __DDD_LOWCOMM_H__
#define __DDD_LOWCOMM_H__
START_UGDIM_NAMESPACE
/****************************************************************************/
/* */
/* defines in the following order */
/* */
/* compile time constants defining static data size (i.e. arrays) */
/* other constants */
/* macros */
/* */
/****************************************************************************/
#define EXCEPTION_LOWCOMM_CONNECT -10
/* lowcomm users should use exceptions EXCEPTION_LOWCOMM_USER or lower */
#define EXCEPTION_LOWCOMM_USER -100
/****************************************************************************/
/* */
/* data structures exported by the corresponding source file */
/* */
/****************************************************************************/
typedef unsigned long ULONG;
typedef void *LC_MSGHANDLE; /* handle for actual message (send OR recv side*/
typedef void *LC_MSGTYPE; /* type of message (on send AND recv side) */
typedef int LC_MSGCOMP; /* component of message (dto) */
/* function pointer types for alloc and free */
typedef void * (*AllocFunc)(size_t);
typedef void (*FreeFunc)(void *);
/****************************************************************************/
/* */
/* function declarations */
/* */
/****************************************************************************/
/* lowcomm.c */
void LC_Init (AllocFunc,FreeFunc);
void LC_Exit (void);
void LC_SetMemMgrSend (AllocFunc,FreeFunc);
void LC_SetMemMgrRecv (AllocFunc,FreeFunc);
void LC_SetMemMgrDefault (void);
LC_MSGTYPE LC_NewMsgType (const char *);
LC_MSGCOMP LC_NewMsgTable (const char *, LC_MSGTYPE, size_t);
LC_MSGCOMP LC_NewMsgChunk (const char *, LC_MSGTYPE);
void LC_MsgSend (LC_MSGHANDLE);
int LC_Connect (LC_MSGTYPE);
int LC_Abort (int);
LC_MSGHANDLE *LC_Communicate (void);
void LC_Cleanup (void);
LC_MSGHANDLE LC_NewSendMsg (LC_MSGTYPE, DDD_PROC);
ULONG LC_GetTableLen (LC_MSGHANDLE, LC_MSGCOMP);
void * LC_GetPtr (LC_MSGHANDLE, LC_MSGCOMP);
DDD_PROC LC_MsgGetProc (LC_MSGHANDLE);
size_t LC_MsgPrepareSend (LC_MSGHANDLE);
size_t LC_MsgFreeze (LC_MSGHANDLE);
int LC_MsgAlloc(LC_MSGHANDLE);
void LC_SetTableLen (LC_MSGHANDLE, LC_MSGCOMP, ULONG);
void LC_SetTableSize (LC_MSGHANDLE, LC_MSGCOMP, ULONG);
void LC_SetChunkSize (LC_MSGHANDLE, LC_MSGCOMP, size_t);
size_t LC_GetBufferSize (LC_MSGHANDLE);
void LC_PrintSendMsgs (void);
void LC_PrintRecvMsgs (void);
END_UGDIM_NAMESPACE
#endif
|