Changeset 988 for vendor/current/lib/replace/system
- Timestamp:
- Nov 24, 2016, 1:14:11 PM (9 years ago)
- Location:
- vendor/current/lib/replace/system
- Files:
-
- 2 added
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/lib/replace/system/filesys.h
r618 r988 27 27 */ 28 28 29 #ifdef HAVE_UNISTD_H 29 30 #include <unistd.h> 31 #endif 32 30 33 #include <sys/stat.h> 31 34 … … 99 102 #ifdef HAVE_SYS_IOCTL_H 100 103 #include <sys/ioctl.h> 104 #endif 105 106 #ifdef HAVE_SYS_UIO_H 107 #include <sys/uio.h> 101 108 #endif 102 109 … … 111 118 #if HAVE_SYS_ATTRIBUTES_H 112 119 #include <sys/attributes.h> 120 #elif HAVE_ATTR_ATTRIBUTES_H 121 #include <attr/attributes.h> 113 122 #endif 114 123 … … 120 129 #endif 121 130 131 #ifdef HAVE_SYS_EA_H 132 #include <sys/ea.h> 133 #endif 134 135 #ifdef HAVE_SYS_EXTATTR_H 136 #include <sys/extattr.h> 137 #endif 122 138 123 139 #ifdef HAVE_SYS_RESOURCE_H … … 125 141 #endif 126 142 143 #ifndef XATTR_CREATE 144 #define XATTR_CREATE 0x1 /* set value, fail if attr already exists */ 145 #endif 146 147 #ifndef XATTR_REPLACE 148 #define XATTR_REPLACE 0x2 /* set value, fail if attr does not exist */ 149 #endif 150 127 151 /* Some POSIX definitions for those without */ 128 152 … … 186 210 #endif 187 211 188 #endif 212 /* 213 this allows us to use a uniform error handling for our xattr 214 wrappers 215 */ 216 #ifndef ENOATTR 217 #define ENOATTR ENODATA 218 #endif 219 220 221 #if !defined(HAVE_GETXATTR) || defined(XATTR_ADDITIONAL_OPTIONS) 222 ssize_t rep_getxattr (const char *path, const char *name, void *value, size_t size); 223 #define getxattr(path, name, value, size) rep_getxattr(path, name, value, size) 224 /* define is in "replace.h" */ 225 #endif 226 227 #if !defined(HAVE_FGETXATTR) || defined(XATTR_ADDITIONAL_OPTIONS) 228 ssize_t rep_fgetxattr (int filedes, const char *name, void *value, size_t size); 229 #define fgetxattr(filedes, name, value, size) rep_fgetxattr(filedes, name, value, size) 230 /* define is in "replace.h" */ 231 #endif 232 233 #if !defined(HAVE_LISTXATTR) || defined(XATTR_ADDITIONAL_OPTIONS) 234 ssize_t rep_listxattr (const char *path, char *list, size_t size); 235 #define listxattr(path, list, size) rep_listxattr(path, list, size) 236 /* define is in "replace.h" */ 237 #endif 238 239 #if !defined(HAVE_FLISTXATTR) || defined(XATTR_ADDITIONAL_OPTIONS) 240 ssize_t rep_flistxattr (int filedes, char *list, size_t size); 241 #define flistxattr(filedes, value, size) rep_flistxattr(filedes, value, size) 242 /* define is in "replace.h" */ 243 #endif 244 245 #if !defined(HAVE_REMOVEXATTR) || defined(XATTR_ADDITIONAL_OPTIONS) 246 int rep_removexattr (const char *path, const char *name); 247 #define removexattr(path, name) rep_removexattr(path, name) 248 /* define is in "replace.h" */ 249 #endif 250 251 #if !defined(HAVE_FREMOVEXATTR) || defined(XATTR_ADDITIONAL_OPTIONS) 252 int rep_fremovexattr (int filedes, const char *name); 253 #define fremovexattr(filedes, name) rep_fremovexattr(filedes, name) 254 /* define is in "replace.h" */ 255 #endif 256 257 #if !defined(HAVE_SETXATTR) || defined(XATTR_ADDITIONAL_OPTIONS) 258 int rep_setxattr (const char *path, const char *name, const void *value, size_t size, int flags); 259 #define setxattr(path, name, value, size, flags) rep_setxattr(path, name, value, size, flags) 260 /* define is in "replace.h" */ 261 #endif 262 263 #if !defined(HAVE_FSETXATTR) || defined(XATTR_ADDITIONAL_OPTIONS) 264 int rep_fsetxattr (int filedes, const char *name, const void *value, size_t size, int flags); 265 #define fsetxattr(filedes, name, value, size, flags) rep_fsetxattr(filedes, name, value, size, flags) 266 /* define is in "replace.h" */ 267 #endif 268 269 #endif -
vendor/current/lib/replace/system/kerberos.h
r414 r988 8 8 9 9 Copyright (C) Andrew Tridgell 2004 10 10 11 11 ** NOTE! The following LGPL license applies to the replace 12 12 ** library. This does NOT imply that all of Samba is released 13 13 ** under the LGPL 14 14 15 15 This library is free software; you can redistribute it and/or 16 16 modify it under the terms of the GNU Lesser General Public … … 29 29 30 30 #ifdef HAVE_KRB5 31 /* Whether the krb5_address struct has a addrtype property */32 /* #undef HAVE_ADDRTYPE_IN_KRB5_ADDRESS */33 /* Whether the krb5_address struct has a addr_type property */34 #define HAVE_ADDR_TYPE_IN_KRB5_ADDRESS 135 /* Define to 1 if you have the `gsskrb5_extract_authz_data_from_sec_context' */36 #define HAVE_GSSKRB5_EXTRACT_AUTHZ_DATA_FROM_SEC_CONTEXT 137 /* Define to 1 if you have the `gsskrb5_get_initiator_subkey' function. */38 #define HAVE_GSSKRB5_GET_INITIATOR_SUBKEY 139 /* Define to 1 if you have the `gsskrb5_register_acceptor_identity' function. */40 #define HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY 141 /* Define to 1 if you have the `gss_krb5_ccache_name' function. */42 #define HAVE_GSS_KRB5_CCACHE_NAME 143 /* Define to 1 if you have the `krb5_addlog_func' function. */44 #define HAVE_KRB5_ADDLOG_FUNC 145 /* Define to 1 if you have the `krb5_auth_con_setkey' function. */46 #define HAVE_KRB5_AUTH_CON_SETKEY 147 /* Define to 1 if you have the `krb5_auth_con_setuseruserkey' function. */48 /* #undef HAVE_KRB5_AUTH_CON_SETUSERUSERKEY */49 /* Define to 1 if you have the `krb5_c_enctype_compare' function. */50 #define HAVE_KRB5_C_ENCTYPE_COMPARE 151 /* Define to 1 if you have the `krb5_c_verify_checksum' function. */52 #define HAVE_KRB5_C_VERIFY_CHECKSUM 153 /* Whether the type krb5_encrypt_block exists */54 /* #undef HAVE_KRB5_ENCRYPT_BLOCK */55 /* Define to 1 if you have the `krb5_encrypt_data' function. */56 /* #undef HAVE_KRB5_ENCRYPT_DATA */57 /* Define to 1 if you have the `krb5_enctypes_compatible_keys' function. */58 #define HAVE_KRB5_ENCTYPES_COMPATIBLE_KEYS 159 /* Define to 1 if you have the `krb5_free_data_contents' function. */60 #define HAVE_KRB5_FREE_DATA_CONTENTS 161 /* Define to 1 if you have the `krb5_free_error_string' function. */62 /* #undef HAVE_KRB5_FREE_ERROR_STRING */63 /* Define to 1 if you have the `krb5_free_error_message' function. */64 #define HAVE_KRB5_FREE_ERROR_MESSAGE 165 /* Define to 1 if you have the `krb5_free_keytab_entry_contents' function. */66 /* #undef HAVE_KRB5_FREE_KEYTAB_ENTRY_CONTENTS */67 /* Define to 1 if you have the `krb5_free_ktypes' function. */68 /* #undef HAVE_KRB5_FREE_KTYPES */69 /* Define to 1 if you have the `krb5_free_unparsed_name' function. */70 /* #undef HAVE_KRB5_FREE_UNPARSED_NAME */71 /* Define to 1 if you have the `krb5_get_default_in_tkt_etypes' function. */72 #define HAVE_KRB5_GET_DEFAULT_IN_TKT_ETYPES 173 /* Define to 1 if you have the `krb5_get_error_string' function. */74 #define HAVE_KRB5_GET_ERROR_STRING 175 /* Define to 1 if you have the `krb5_get_error_message' function. */76 #define HAVE_KRB5_GET_ERROR_MESSAGE 177 /* Define to 1 if you have the `krb5_get_permitted_enctypes' function. */78 /* #undef HAVE_KRB5_GET_PERMITTED_ENCTYPES */79 /* Define to 1 if you have the `krb5_get_pw_salt' function. */80 #define HAVE_KRB5_GET_PW_SALT 181 /* Define to 1 if you have the <krb5.h> header file. */82 #define HAVE_KRB5_H 183 /* Define to 1 if you have the `krb5_initlog' function. */84 #define HAVE_KRB5_INITLOG 185 /* Define to 1 if you have the `krb5_kdc_default_config' function. */86 #define HAVE_KRB5_KDC_DEFAULT_CONFIG 187 /* Whether the krb5_creds struct has a keyblock property */88 /* #undef HAVE_KRB5_KEYBLOCK_IN_CREDS */89 /* Whether the krb5_keyblock struct has a keyvalue property */90 #define HAVE_KRB5_KEYBLOCK_KEYVALUE 191 /* Whether krb5_keytab_entry has key member */92 /* #undef HAVE_KRB5_KEYTAB_ENTRY_KEY */93 /* Whether krb5_keytab_entry has keyblock member */94 #define HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK 195 /* Define to 1 if you have the `krb5_krbhst_get_addrinfo' function. */96 #define HAVE_KRB5_KRBHST_GET_ADDRINFO 197 /* Define to 1 if you have the `krb5_kt_compare' function. */98 #define HAVE_KRB5_KT_COMPARE 199 /* Define to 1 if you have the `krb5_kt_free_entry' function. */100 #define HAVE_KRB5_KT_FREE_ENTRY 1101 /* Whether the type krb5_log_facility exists */102 #define HAVE_KRB5_LOG_FACILITY 1103 /* Define to 1 if you have the `krb5_mk_req_extended' function. */104 #define HAVE_KRB5_MK_REQ_EXTENDED 1105 /* Define to 1 if you have the `krb5_principal2salt' function. */106 /* #undef HAVE_KRB5_PRINCIPAL2SALT */107 /* Define to 1 if you have the `krb5_principal_get_comp_string' function. */108 #define HAVE_KRB5_PRINCIPAL_GET_COMP_STRING 1109 /* Whether krb5_princ_component is available */110 /* #undef HAVE_KRB5_PRINC_COMPONENT */111 /* Whether the krb5_creds struct has a session property */112 #define HAVE_KRB5_SESSION_IN_CREDS 1113 /* Define to 1 if you have the `krb5_set_default_in_tkt_etypes' function. */114 #define HAVE_KRB5_SET_DEFAULT_IN_TKT_ETYPES 1115 /* Define to 1 if you have the `krb5_set_default_tgs_ktypes' function. */116 /* #undef HAVE_KRB5_SET_DEFAULT_TGS_KTYPES */117 /* Define to 1 if you have the `krb5_set_real_time' function. */118 #define HAVE_KRB5_SET_REAL_TIME 1119 /* Define to 1 if you have the `krb5_set_warn_dest' function. */120 #define HAVE_KRB5_SET_WARN_DEST 1121 /* Define to 1 if you have the `krb5_string_to_key' function. */122 #define HAVE_KRB5_STRING_TO_KEY 1123 /* Define to 1 if you have the `krb5_string_to_key_salt' function. */124 #define HAVE_KRB5_STRING_TO_KEY_SALT 1125 /* Define to 1 if you have the `krb5_ticket_get_authorization_data_type' */126 #define HAVE_KRB5_TICKET_GET_AUTHORIZATION_DATA_TYPE 1127 /* Whether the krb5_ticket struct has a enc_part2 property */128 /* #undef HAVE_KRB5_TKT_ENC_PART2 */129 /* Define to 1 if you have the `krb5_use_enctype' function. */130 /* #undef HAVE_KRB5_USE_ENCTYPE */131 /* Define to 1 if you have the `krb5_verify_checksum' function. */132 #define HAVE_KRB5_VERIFY_CHECKSUM 1133 /* Whether krb5_princ_realm returns krb5_realm or krb5_data */134 #define KRB5_PRINC_REALM_RETURNS_REALM 1135 31 32 #if HAVE_KRB5_H 136 33 #include <krb5.h> 34 #endif 35 36 #if HAVE_COM_ERR_H 137 37 #include <com_err.h> 138 139 38 #endif 140 39 141 40 #endif 41 #endif -
vendor/current/lib/replace/system/network.h
r740 r988 32 32 #endif 33 33 34 #ifdef HAVE_UNISTD_H 35 #include <unistd.h> 36 #endif 37 34 38 #ifdef HAVE_SYS_SOCKET_H 35 39 #include <sys/socket.h> … … 74 78 #ifdef HAVE_NET_IF_H 75 79 #include <net/if.h> 76 #endif77 78 #ifdef HAVE_UNISTD_H79 #include <unistd.h>80 80 #endif 81 81 … … 366 366 #endif /* HAVE_IPV6 */ 367 367 368 #ifdef SOCKET_WRAPPER 369 #ifndef SOCKET_WRAPPER_DISABLE 370 #ifndef SOCKET_WRAPPER_NOT_REPLACE 371 #define SOCKET_WRAPPER_REPLACE 372 #endif /* SOCKET_WRAPPER_NOT_REPLACE */ 373 #include "../socket_wrapper/socket_wrapper.h" 374 #endif /* SOCKET_WRAPPER_DISABLE */ 375 #endif /* SOCKET_WRAPPER */ 376 377 #endif 368 #endif -
vendor/current/lib/replace/system/passwd.h
r746 r988 28 28 */ 29 29 30 /* this needs to be included before nss_wrapper.h on some systems */ 30 #ifdef HAVE_UNISTD_H 31 31 #include <unistd.h> 32 #endif 32 33 33 34 #ifdef HAVE_PWD_H … … 68 69 #endif 69 70 70 #if !defined(getpass)71 #ifdef REPLACE_GETPASS72 #if defined(REPLACE_GETPASS_BY_GETPASSPHRASE)73 #define getpass(prompt) getpassphrase(prompt)74 #else75 #define getpass(prompt) rep_getpass(prompt)76 char *rep_getpass(const char *prompt);77 #endif78 #endif79 #endif80 81 71 #ifndef NGROUPS_MAX 82 72 #define NGROUPS_MAX 32 /* Guess... */ … … 89 79 #endif 90 80 91 #if defined(HAVE_PUTPRPWNAM) && defined(AUTH_CLEARTEXT_SEG_CHARS)92 #define OSF1_ENH_SEC 193 #endif94 81 95 82 #ifndef ALLOW_CHANGE_PASSWORD … … 103 90 #endif 104 91 105 #ifdef NSS_WRAPPER106 #ifndef NSS_WRAPPER_DISABLE107 #ifndef NSS_WRAPPER_NOT_REPLACE108 #define NSS_WRAPPER_REPLACE109 #endif /* NSS_WRAPPER_NOT_REPLACE */110 #include "../nss_wrapper/nss_wrapper.h"111 #endif /* NSS_WRAPPER_DISABLE */112 #endif /* NSS_WRAPPER */113 114 92 #endif -
vendor/current/lib/replace/system/select.h
r740 r988 33 33 #ifdef HAVE_SYS_EPOLL_H 34 34 #include <sys/epoll.h> 35 #endif 36 37 #ifdef HAVE_SOLARIS_PORTS 38 #include <port.h> 35 39 #endif 36 40
Note:
See TracChangeset
for help on using the changeset viewer.