Loading...
Searching...
No Matches
globus_error_errno.h
Go to the documentation of this file.
/*
* 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.
*/
#ifndef GLOBUS_ERROR_ERRNO_H
#define GLOBUS_ERROR_ERRNO_H
#include "globus_common_include.h"
#include "globus_object.h"
#include "globus_module.h"
#ifdef __cplusplus
extern "C" {
#endif
#define GLOBUS_ERROR_TYPE_ERRNO (&GLOBUS_ERROR_TYPE_ERRNO_DEFINITION)
extern const globus_object_type_t GLOBUS_ERROR_TYPE_ERRNO_DEFINITION;
#ifndef DOXYGEN
globus_object_t *
globus_error_construct_errno_error(
globus_module_descriptor_t * base_source,
globus_object_t * base_cause,
const int system_errno);
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);
#endif
#ifndef DOXYGEN
int
globus_error_errno_get_errno(
globus_object_t * error);
void
globus_error_errno_set_errno(
globus_object_t * error,
const int system_errno);
#endif
#ifndef DOXYGEN
globus_bool_t
globus_error_errno_match(
globus_object_t * error,
globus_module_descriptor_t * module,
int system_errno);
int
globus_error_errno_search(
globus_object_t * error);
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,
...);
#endif
#ifdef __cplusplus
}
#endif
#endif /* GLOBUS_ERROR_ERRNO_H */
globus_common_include.h
Include System Headers.
globus_module.h
Reference Counting Module Activation and Deactivation.
globus_bool_t
int globus_bool_t
Boolean type.
Definition globus_types.h:93
globus_error_errno_get_errno
int globus_error_errno_get_errno(globus_object_t *error)
Definition globus_error_errno.c:136
globus_error_errno_set_errno
void globus_error_errno_set_errno(globus_object_t *error, const int system_errno)
Definition globus_error_errno.c:162
globus_error_initialize_errno_error
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
globus_error_construct_errno_error
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_error_errno_match
globus_bool_t globus_error_errno_match(globus_object_t *error, globus_module_descriptor_t *module, int system_errno)
Definition globus_error_errno.c:200
globus_error_wrap_errno_error
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:319
globus_error_errno_search
int globus_error_errno_search(globus_object_t *error)
Search for an errno value in an error chain.
Definition globus_error_errno.c:260