/usr/include/gcroots.h is in libgcroots-dev 0.8.5-4ubuntu2.
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 | /*
* Copyright (c) 2006-2008 YAMAMOTO Kengo <yamaken AT bp.iij4u.or.jp>
* All rights reserved.
*
* THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
* OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
*
* Permission is hereby granted to use or copy this program
* for any purpose, provided the above notices are retained on all copies.
* Permission to modify the code and to distribute modified code is granted,
* provided the above notices are retained, and a notice that the code was
* modified is included with the above copyright notice.
*/
#ifndef _GCROOTS_H
#define _GCROOTS_H
#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif
#define GCROOTS_VERSION_MAJOR (0)
#define GCROOTS_VERSION_MINOR (2)
#define GCROOTS_VERSION_PATCHLEVEL (2)
#define GCROOTS_API_REVISION (1)
#define GCROOTS_VERSION_REQUIRE(major, minor, patchlevel) \
((major) < GCROOTS_VERSION_MAJOR \
|| ((major) == GCROOTS_VERSION_MAJOR && (minor) < GCROOTS_VERSION_MINOR) \
|| ((major) == GCROOTS_VERSION_MAJOR && (minor) == GCROOTS_VERSION_MINOR \
&& (patchlevel) <= GCROOTS_VERSION_PATCHLEVEL))
typedef struct _GCROOTS_context GCROOTS_context;
typedef void (*GCROOTS_mark_proc)(void *start, void *end,
int is_certain, int is_aligned);
typedef void *(*GCROOTS_user_proc)(void *arg);
typedef void *(*GCROOTS_context_alloc_proc)(size_t ctx_size);
/* may return NULL */
GCROOTS_context *GCROOTS_init(GCROOTS_context_alloc_proc allocator,
GCROOTS_mark_proc marker,
int scan_entire_system_stack);
void GCROOTS_fin(GCROOTS_context *ctx);
void *GCROOTS_call_with_gc_ready_stack(GCROOTS_context *ctx,
GCROOTS_user_proc proc,
void *arg);
void GCROOTS_mark(GCROOTS_context *ctx);
int GCROOTS_is_protected_context(GCROOTS_context *ctx);
int GCROOTS_is_protected(GCROOTS_context *ctx, void *obj);
#ifdef __cplusplus
}
#endif
#endif /* _GCROOTS_H */
|