Grid Community Toolkit  6.2.1653033972 (tag: v6.2.20220524)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
globus_error_errno.h
Go to the documentation of this file.
1 /*
2  * Copyright 1999-2006 University of Chicago
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
22 #ifndef GLOBUS_ERROR_ERRNO_H
23 #define GLOBUS_ERROR_ERRNO_H
24 
42 #include "globus_common_include.h"
43 #include "globus_object.h"
44 #include "globus_module.h"
45 
46 #ifdef __cplusplus
47 extern "C" {
48 #endif
49 
66 #define GLOBUS_ERROR_TYPE_ERRNO (&GLOBUS_ERROR_TYPE_ERRNO_DEFINITION)
67 
68 extern const globus_object_type_t GLOBUS_ERROR_TYPE_ERRNO_DEFINITION;
69 
70 #ifndef DOXYGEN
71 
72 globus_object_t *
74  globus_module_descriptor_t * base_source,
75  globus_object_t * base_cause,
76  const int system_errno);
77 
78 globus_object_t *
80  globus_object_t * error,
81  globus_module_descriptor_t * base_source,
82  globus_object_t * base_cause,
83  const int system_errno);
84 
85 #endif
86 
98 #ifndef DOXYGEN
99 
100 int
102  globus_object_t * error);
103 
104 void
106  globus_object_t * error,
107  const int system_errno);
108 
109 #endif
110 
122 #ifndef DOXYGEN
123 
126  globus_object_t * error,
128  int system_errno);
129 
130 int
132  globus_object_t * error);
133 
134 globus_object_t *
136  globus_module_descriptor_t * base_source,
137  int system_errno,
138  int type,
139  const char * source_file,
140  const char * source_func,
141  int source_line,
142  const char * short_desc_format,
143  ...);
144 
145 #endif
146 
147 #ifdef __cplusplus
148 }
149 #endif
150 
151 #endif /* GLOBUS_ERROR_ERRNO_H */
globus_object_t * globus_error_wrap_errno_error(globus_module_descriptor_t *base_source, int system_errno, int type, const char *source_file, const char *source_func, int source_line, const char *short_desc_format,...)
Definition: globus_error_errno.c:321
void globus_error_errno_set_errno(globus_object_t *error, const int system_errno)
Definition: globus_error_errno.c:164
int globus_error_errno_search(globus_object_t *error)
Search for an errno value in an error chain.
Definition: globus_error_errno.c:262
int globus_bool_t
Boolean type.
Definition: globus_types.h:93
Reference Counting Module Activation and Deactivation.
globus_object_t * globus_error_construct_errno_error(globus_module_descriptor_t *base_source, globus_object_t *base_cause, const int system_errno)
Definition: globus_error_errno.c:55
globus_bool_t globus_error_errno_match(globus_object_t *error, globus_module_descriptor_t *module, int system_errno)
Definition: globus_error_errno.c:202
globus_object_t * globus_error_initialize_errno_error(globus_object_t *error, globus_module_descriptor_t *base_source, globus_object_t *base_cause, const int system_errno)
Definition: globus_error_errno.c:102
Include System Headers.
int globus_error_errno_get_errno(globus_object_t *error)
Definition: globus_error_errno.c:136
Module Descriptor.
Definition: globus_module.h:71