Ignore:
Timestamp:
Nov 24, 2016, 1:14:11 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.3

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  
    2727*/
    2828
     29#ifdef HAVE_UNISTD_H
    2930#include <unistd.h>
     31#endif
     32
    3033#include <sys/stat.h>
    3134
     
    99102#ifdef HAVE_SYS_IOCTL_H
    100103#include <sys/ioctl.h>
     104#endif
     105
     106#ifdef HAVE_SYS_UIO_H
     107#include <sys/uio.h>
    101108#endif
    102109
     
    111118#if HAVE_SYS_ATTRIBUTES_H
    112119#include <sys/attributes.h>
     120#elif HAVE_ATTR_ATTRIBUTES_H
     121#include <attr/attributes.h>
    113122#endif
    114123
     
    120129#endif
    121130
     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
    122138
    123139#ifdef HAVE_SYS_RESOURCE_H
     
    125141#endif
    126142
     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
    127151/* Some POSIX definitions for those without */
    128152
     
    186210#endif
    187211
    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)
     222ssize_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)
     228ssize_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)
     234ssize_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)
     240ssize_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)
     246int 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)
     252int 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)
     258int 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)
     264int 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  
    88
    99   Copyright (C) Andrew Tridgell 2004
    10    
     10
    1111     ** NOTE! The following LGPL license applies to the replace
    1212     ** library. This does NOT imply that all of Samba is released
    1313     ** under the LGPL
    14    
     14
    1515   This library is free software; you can redistribute it and/or
    1616   modify it under the terms of the GNU Lesser General Public
     
    2929
    3030#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 1
    35 /* Define to 1 if you have the `gsskrb5_extract_authz_data_from_sec_context' */
    36 #define HAVE_GSSKRB5_EXTRACT_AUTHZ_DATA_FROM_SEC_CONTEXT 1
    37 /* Define to 1 if you have the `gsskrb5_get_initiator_subkey' function. */
    38 #define HAVE_GSSKRB5_GET_INITIATOR_SUBKEY 1
    39 /* Define to 1 if you have the `gsskrb5_register_acceptor_identity' function. */
    40 #define HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY 1
    41 /* Define to 1 if you have the `gss_krb5_ccache_name' function. */
    42 #define HAVE_GSS_KRB5_CCACHE_NAME 1
    43 /* Define to 1 if you have the `krb5_addlog_func' function. */
    44 #define HAVE_KRB5_ADDLOG_FUNC 1
    45 /* Define to 1 if you have the `krb5_auth_con_setkey' function. */
    46 #define HAVE_KRB5_AUTH_CON_SETKEY 1
    47 /* 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 1
    51 /* Define to 1 if you have the `krb5_c_verify_checksum' function. */
    52 #define HAVE_KRB5_C_VERIFY_CHECKSUM 1
    53 /* 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 1
    59 /* Define to 1 if you have the `krb5_free_data_contents' function. */
    60 #define HAVE_KRB5_FREE_DATA_CONTENTS 1
    61 /* 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 1
    65 /* 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 1
    73 /* Define to 1 if you have the `krb5_get_error_string' function. */
    74 #define HAVE_KRB5_GET_ERROR_STRING 1
    75 /* Define to 1 if you have the `krb5_get_error_message' function. */
    76 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
    77 /* 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 1
    81 /* Define to 1 if you have the <krb5.h> header file. */
    82 #define HAVE_KRB5_H 1
    83 /* Define to 1 if you have the `krb5_initlog' function. */
    84 #define HAVE_KRB5_INITLOG 1
    85 /* Define to 1 if you have the `krb5_kdc_default_config' function. */
    86 #define HAVE_KRB5_KDC_DEFAULT_CONFIG 1
    87 /* 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 1
    91 /* 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 1
    95 /* Define to 1 if you have the `krb5_krbhst_get_addrinfo' function. */
    96 #define HAVE_KRB5_KRBHST_GET_ADDRINFO 1
    97 /* Define to 1 if you have the `krb5_kt_compare' function. */
    98 #define HAVE_KRB5_KT_COMPARE 1
    99 /* Define to 1 if you have the `krb5_kt_free_entry' function. */
    100 #define HAVE_KRB5_KT_FREE_ENTRY 1
    101 /* Whether the type krb5_log_facility exists */
    102 #define HAVE_KRB5_LOG_FACILITY 1
    103 /* Define to 1 if you have the `krb5_mk_req_extended' function. */
    104 #define HAVE_KRB5_MK_REQ_EXTENDED 1
    105 /* 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 1
    109 /* 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 1
    113 /* Define to 1 if you have the `krb5_set_default_in_tkt_etypes' function. */
    114 #define HAVE_KRB5_SET_DEFAULT_IN_TKT_ETYPES 1
    115 /* 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 1
    119 /* Define to 1 if you have the `krb5_set_warn_dest' function. */
    120 #define HAVE_KRB5_SET_WARN_DEST 1
    121 /* Define to 1 if you have the `krb5_string_to_key' function. */
    122 #define HAVE_KRB5_STRING_TO_KEY 1
    123 /* Define to 1 if you have the `krb5_string_to_key_salt' function. */
    124 #define HAVE_KRB5_STRING_TO_KEY_SALT 1
    125 /* Define to 1 if you have the `krb5_ticket_get_authorization_data_type' */
    126 #define HAVE_KRB5_TICKET_GET_AUTHORIZATION_DATA_TYPE 1
    127 /* 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 1
    133 /* Whether krb5_princ_realm returns krb5_realm or krb5_data */
    134 #define KRB5_PRINC_REALM_RETURNS_REALM 1
    13531
     32#if HAVE_KRB5_H
    13633#include <krb5.h>
     34#endif
     35
     36#if HAVE_COM_ERR_H
    13737#include <com_err.h>
    138 
    13938#endif
    14039
    14140#endif
     41#endif
  • vendor/current/lib/replace/system/network.h

    r740 r988  
    3232#endif
    3333
     34#ifdef HAVE_UNISTD_H
     35#include <unistd.h>
     36#endif
     37
    3438#ifdef HAVE_SYS_SOCKET_H
    3539#include <sys/socket.h>
     
    7478#ifdef HAVE_NET_IF_H
    7579#include <net/if.h>
    76 #endif
    77 
    78 #ifdef HAVE_UNISTD_H
    79 #include <unistd.h>
    8080#endif
    8181
     
    366366#endif /* HAVE_IPV6 */
    367367
    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  
    2828*/
    2929
    30 /* this needs to be included before nss_wrapper.h on some systems */
     30#ifdef HAVE_UNISTD_H
    3131#include <unistd.h>
     32#endif
    3233
    3334#ifdef HAVE_PWD_H
     
    6869#endif
    6970
    70 #if !defined(getpass)
    71 #ifdef REPLACE_GETPASS
    72 #if defined(REPLACE_GETPASS_BY_GETPASSPHRASE)
    73 #define getpass(prompt) getpassphrase(prompt)
    74 #else
    75 #define getpass(prompt) rep_getpass(prompt)
    76 char *rep_getpass(const char *prompt);
    77 #endif
    78 #endif
    79 #endif
    80 
    8171#ifndef NGROUPS_MAX
    8272#define NGROUPS_MAX 32 /* Guess... */
     
    8979#endif
    9080
    91 #if defined(HAVE_PUTPRPWNAM) && defined(AUTH_CLEARTEXT_SEG_CHARS)
    92 #define OSF1_ENH_SEC 1
    93 #endif
    9481
    9582#ifndef ALLOW_CHANGE_PASSWORD
     
    10390#endif
    10491
    105 #ifdef NSS_WRAPPER
    106 #ifndef NSS_WRAPPER_DISABLE
    107 #ifndef NSS_WRAPPER_NOT_REPLACE
    108 #define NSS_WRAPPER_REPLACE
    109 #endif /* NSS_WRAPPER_NOT_REPLACE */
    110 #include "../nss_wrapper/nss_wrapper.h"
    111 #endif /* NSS_WRAPPER_DISABLE */
    112 #endif /* NSS_WRAPPER */
    113 
    11492#endif
  • vendor/current/lib/replace/system/select.h

    r740 r988  
    3333#ifdef HAVE_SYS_EPOLL_H
    3434#include <sys/epoll.h>
     35#endif
     36
     37#ifdef HAVE_SOLARIS_PORTS
     38#include <port.h>
    3539#endif
    3640
Note: See TracChangeset for help on using the changeset viewer.