/usr/include/globus/globus_error.h is in libglobus-common-dev 16.9-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 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 | /*
* Copyright 1999-2006 University of Chicago
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @file globus_error.h
* @brief Globus Error Handling
*/
#ifndef GLOBUS_ERROR_H
#define GLOBUS_ERROR_H
#include "globus_common_include.h"
#include "globus_object.h"
#include "globus_module.h"
#include <inttypes.h>
typedef uint_least32_t globus_uint_t;
#ifdef __cplusplus
extern "C" {
#endif
/**********************************************************************
* Error API Types
* globus_result_t -- used as error object handle
**********************************************************************/
/**********************************************************************
* Error Creation API
**********************************************************************/
extern globus_object_t *
globus_error_initialize_base (
globus_object_t * error,
globus_module_descriptor_t * source_module,
globus_object_t * causal_error);
extern globus_object_t *
globus_error_construct_base (
globus_module_descriptor_t * source_module,
globus_object_t * causal_error);
#define globus_error_type_static_initializer(parent_type, \
copy_func, \
destructor, \
string_func) \
globus_object_type_static_initializer ((parent_type), \
(copy_func), \
(destructor), \
((void *) string_func))
/**********************************************************************
* Standard Error Type
* ERROR_TYPE_BASE
**********************************************************************/
extern const globus_object_type_t GLOBUS_ERROR_TYPE_BASE_DEFINITION;
#define GLOBUS_ERROR_TYPE_BASE (&GLOBUS_ERROR_TYPE_BASE_DEFINITION)
/**********************************************************************
* Standard Error Prototype
* ERROR_NO_INFO (type GLOBUS_ERROR_TYPE_BASE)
**********************************************************************/
extern globus_object_t GLOBUS_ERROR_BASE_STATIC_PROTOTYPE;
#define GLOBUS_ERROR_BASE_PROTOTYPE (&GLOBUS_ERROR_BASE_STATIC_PROTOTYPE)
#define GLOBUS_ERROR_NO_INFO GLOBUS_ERROR_BASE_PROTOTYPE
/**********************************************************************
* Error Management API
**********************************************************************/
extern globus_object_t *
globus_error_get(
globus_result_t result);
/* returns corresponding object for result,
* may return GLOBUS_ERROR_NO_INFO */
extern globus_object_t *
globus_error_peek(
globus_result_t result);
/* returns pointer to object for result DOES NOT REMOVE object.
* This pointer is only valid for the current thread and until another call to
* globus_error_peek is made
* may return GLOBUS_ERROR_NO_INFO
*/
extern globus_result_t
globus_error_put(
globus_object_t * error);
/* does nothing if error is NULL */
/**********************************************************************
* Error Manipulation API
**********************************************************************/
extern globus_module_descriptor_t *
globus_error_base_get_source (
globus_object_t * error);
extern void
globus_error_base_set_source (
globus_object_t * error,
globus_module_descriptor_t * source_module);
extern globus_object_t *
globus_error_base_get_cause (
globus_object_t * error);
extern void
globus_error_base_set_cause (
globus_object_t * error,
globus_object_t * causal_error);
#include "globus_thread.h"
extern globus_bool_t globus_i_error_verbose;
extern globus_thread_key_t globus_i_error_verbose_key;
/**********************************************************************
* Module definition
**********************************************************************/
extern globus_module_descriptor_t globus_i_error_module;
#define GLOBUS_ERROR_MODULE (&globus_i_error_module)
#ifdef __cplusplus
}
#endif
#endif /* GLOBUS_ERROR_H */
|