/usr/include/sphde/sasindexnode.h is in libsphde-dev 1.3.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 122 123 124 125 126 127 128 | /*
* Copyright (c) 2005-2014 IBM Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation, Steven Munroe - initial API and implementation
*/
#ifndef __SAS_INDEXNODE_H
#define __SAS_INDEXNODE_H
#include "sastype.h"
#include "sasindexkey.h"
typedef void *SASIndexNode_t;
#ifndef LOCK_ON_T
#define LOCK_ON_T
typedef int lock_on_t;
const lock_on_t LOCK_ON = 1;
const lock_on_t LOCK_OFF = 0;
#endif
typedef struct __IDXnodePosRef
{
SASIndexNode_t node;
short pos;
} IDXnodePosRef;
typedef struct __IDXnodeKeyRef
{
SASIndexNode_t node;
SASIndexKey_t *key;
void *val;
int dupKey;
} __IDXnodeKeyRef;
#ifdef __cplusplus
#define __C__ "C"
#else
#define __C__
#endif
extern __C__ SASIndexNode_t
SASIndexNodeInit (void *heap_block, sas_type_t sasType,
block_size_t heap_size);
extern __C__ SASIndexNode_t SASIndexNodeCreate (block_size_t heap_size);
extern __C__ int SASIndexNodeDestroy (SASIndexNode_t heap, lock_on_t lock_on);
extern __C__ block_size_t SASIndexNodeFreeSpace (SASIndexNode_t heap, lock_on_t lock_on);
extern __C__ block_size_t
SASIndexNodeFreeFragmentsNoLock (SASIndexNode_t heap);
extern __C__ block_size_t SASIndexNodeMaxFragmentNoLock (SASIndexNode_t heap);
extern __C__ void *SASIndexNodeAlloc (SASIndexNode_t heap,
block_size_t alloc_size, lock_on_t lock_on);
extern __C__ int
SASIndexNodeFree (SASIndexNode_t heap,
void *free_block, block_size_t alloc_size, lock_on_t lock_on);
extern __C__ void *SASIndexNodeNearAlloc (void *nearObj, long allocSize, lock_on_t lock_on);
extern __C__ int SASIndexNodeDestroyNoLock (SASIndexNode_t heap);
extern __C__ block_size_t SASIndexNodeFreeSpaceNoLock (SASIndexNode_t heap);
extern __C__ void *SASIndexNodeAllocNoLock (SASIndexNode_t heap,
block_size_t alloc_size);
extern __C__ int
SASIndexNodeFreeNoLock (SASIndexNode_t heap,
void *free_block, block_size_t alloc_size);
extern __C__ int SASIndexNodeGetCount (SASIndexNode_t header);
extern __C__ SASIndexKey_t *SASIndexNodeGetKeyIndexed (SASIndexNode_t header,
short pos);
extern __C__ SASIndexNode_t
SASIndexNodeGetBranchIndexed (SASIndexNode_t header, short pos);
extern __C__ void *SASIndexNodeGetValIndexed (SASIndexNode_t header,
short pos);
extern __C__ void *SASIndexNodePutValIndexed (SASIndexNode_t header,
short pos, void *val);
extern __C__ int
SASIndexNodeSearch (SASIndexNode_t header,
SASIndexKey_t * target, IDXnodePosRef * ref);
extern __C__ int
SASIndexNodeSearchGT (SASIndexNode_t header,
SASIndexKey_t * target, IDXnodePosRef * ref);
extern __C__ int
SASIndexNodeSearchGE (SASIndexNode_t header,
SASIndexKey_t * target, IDXnodePosRef * ref);
extern __C__ int
SASIndexNodeSearchLT (SASIndexNode_t header,
SASIndexKey_t * target, IDXnodePosRef * ref);
extern __C__ int
SASIndexNodeSearchLE (SASIndexNode_t header,
SASIndexKey_t * target, IDXnodePosRef * ref);
extern __C__ SASIndexNode_t
SASIndexNodeInitialize (SASIndexNode_t header,
SASIndexKey_t * newkey, void *newval, lock_on_t lock_on);
extern __C__ SASIndexNode_t
SASIndexNodeInsert (SASIndexNode_t header,
SASIndexKey_t * newkey, void *newval, lock_on_t lock_on);
extern __C__ SASIndexNode_t
SASIndexNodeDelete (SASIndexNode_t header, SASIndexKey_t * target,
lock_on_t lock_on);
#endif /* __SAS_INDEXNODE_H */
|