Grid Community Toolkit  6.2.1541705016
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 
41 #include "globus_common_include.h"
42 #include "globus_object.h"
43 #include "globus_module.h"
44 
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
48 
64 #define GLOBUS_ERROR_TYPE_ERRNO (&GLOBUS_ERROR_TYPE_ERRNO_DEFINITION)
65 
66 extern const globus_object_type_t GLOBUS_ERROR_TYPE_ERRNO_DEFINITION;
67 
68 #ifndef DOXYGEN
69 
70 globus_object_t *
72  globus_module_descriptor_t * base_source,
73  globus_object_t * base_cause,
74  const int system_errno);
75 
76 globus_object_t *
78  globus_object_t * error,
79  globus_module_descriptor_t * base_source,
80  globus_object_t * base_cause,
81  const int system_errno);
82 
83 #endif
84 
95 #ifndef DOXYGEN
96 
97 int
99  globus_object_t * error);
100 
101 void
103  globus_object_t * error,
104  const int system_errno);
105 
106 #endif
107 
118 #ifndef DOXYGEN
119 
122  globus_object_t * error,
124  int system_errno);
125 
126 int
128  globus_object_t * error);
129 
130 globus_object_t *
132  globus_module_descriptor_t * base_source,
133  int system_errno,
134  int type,
135  const char * source_file,
136  const char * source_func,
137  int source_line,
138  const char * short_desc_format,
139  ...);
140 
141 #endif
142 
143 #ifdef __cplusplus
144 }
145 #endif
146 
147 #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:322
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:69