/usr/include/gfal2/common/gfal_constants.h is in libgfal2-dev 2.3.0-4.
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 | #pragma once
#ifndef _GFAL_CONSTANTS_H
#define _GFAL_CONSTANTS_H
/*
* Copyright @ Members of the EMI Collaboration, 2010.
* See www.eu-emi.eu for details on the copyright holders.
*
* 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 gfal_constants.h
* the global constant declarations of gfal core
* @author Devresse Adrien , Baud Jean-Philippe
*/
#ifdef __cplusplus
extern "C"
{
#endif
#define MAX_PLUGIN_LIST 15
#define GFAL_MODULE_NAME_SIZE 1024
#define GFAL_NEWFILE_SIZE 1024
/* GFAL error level for gfal_errmsg */
//! maximum error string length
#define GFAL_ERRMSG_LEN 2048
//! maximum error string length
#define GFAL_ERRLEVEL_ERROR 0
#define GFAL_ERRLEVEL_WARN 1
#define GFAL_ERRLEVEL_INFO 2
//! guid prefix url
#define GFAL_GUID_PREFIX "guid:"
// default buffer size for address
#define GFAL_URL_MAX_LEN 2048
#define GFAL_MODULEID_LOCAL "local_file_module"
#define GFAL_MODULEID_SRM 2
#define GFAL_EXTERNAL_MODULE_OFFSET 10
// plugin related
#define GFAL_PLUGIN_DIR_ENV "GFAL_PLUGIN_DIR" /**< environment variable for personnalized plugin directory */
#define GFAL_PLUGIN_DIR_SUFFIX "gfal2-plugins" /**< default directory name for gfal 2 plugin search */
#define GFAL_PLUGIN_INIT_SYM "gfal_plugin_init"
#define GFAL_MAX_PLUGIN_LIST 2048
// configuration loader related
#define GFAL_CONFIG_DIR_ENV "GFAL_CONFIG_DIR" /**< environment variable for personnalized configuration directory */
#define GFAL_CONFIG_DIR_SUFFIX "gfal2.d"
//! xattr standard keys for getxattr / setxattr
//! replicas listing
#define GFAL_XATTR_REPLICA "user.replicas" // global key of replicas for the extended attributes
//! xattr standard keys for getxattr / setxattr
//! guid information
#define GFAL_XATTR_GUID "user.guid" // global key for the guid of a file
//! xattr standard keys for getxattr / setxattr
//! file comment
#define GFAL_XATTR_COMMENT "user.comment" // global key for the comments of a file
//! xattr standard keys for getxattr / setxattr
//! file checksum type
#define GFAL_XATTR_CHKSUM_TYPE "user.chksumtype"
//! xattr standard keys for getxattr / setxattr
//! file checksum
#define GFAL_XATTR_CHKSUM_VALUE "user.checksum"
//! xattr standard keys for getxattr / setxattr
//! file availability status
//! this key can be used to check or set the stage status of a file
#define GFAL_XATTR_STATUS "user.status"
// xattr standard values
// list of standard values return by getxattr for status key
//! string value to use/compare for extended attribute user.status
//! user.status possible value, similar to SRM meaning of status ( brings_online )
#define GFAL_XATTR_STATUS_ONLINE "ONLINE"
#define GFAL_XATTR_STATUS_NEARLINE "NEARLINE "
#define GFAL_XATTR_STATUS_NEARLINE_ONLINE "ONLINE_AND_NEARLINE"
#define GFAL_XATTR_STATUS_UNKNOW "UNKNOW"
#define GFAL_XATTR_STATUS_LOST "LOST"
#define GFAL_XATTR_STATUS_UNAVAILABLE "UNAVAILABLE"
// plugins entry points for the new system of plugins
#define GFAL_PLUGIN_URL_TRANSFER_CHECK "plugin_url_transfer_check"
//! gfal checksum type key
//! note : checksum type support depends of the plugin implementation
#define GFAL_CHKSUM_MD5 "MD5"
#define GFAL_CHKSUM_SHA1 "SHA1"
#define GFAL_CHKSUM_ADLER32 "ADLER32"
#define GFAL_CHKSUM_CRC32 "CRC32"
#ifdef __cplusplus
}
#endif
#endif
|