1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/source3/libsmb
Matthew DeVore 53a1d034f3 lib/util: Standardize use of st_[acm]time ns
Commit 810397f89a, and possibly others, broke the build for macOS and
other environments which don't have st_[acm]tim fields on 'struct stat'.

Multiple places in the codebase used the config.h values to determine
how to access the nanosecond or microsecond values of the stat
timestamps, so rather than add more, centralize them all into
lib/util/time.c.

Also allow pvfs_fileinfo.c to read nanosecond-granularity timestamps on
platforms where it didn't before, since its #if branches were not
complete.

Signed-off-by: Matthew DeVore <matvore@google.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Sat Aug 15 08:51:09 UTC 2020 on sn-devel-184
2020-08-15 08:51:09 +00:00
..
ABI s3:smbclient added ABI signature file 2019-10-30 22:18:15 +00:00
async_smb.c s3: libsmb: Add uint16_t addtional_flags2 to cli_smb_req_create(). 2016-08-19 20:03:12 +02:00
auth_generic.c
cli_smb2_fnum.c s3: libsmb: Fix SMB2 client rename bug to a Windows server. 2020-07-01 18:59:53 +00:00
cli_smb2_fnum.h libsmb: Remove unused cli_smb2_qfileinfo_basic() 2020-06-04 18:36:17 +00:00
cliconnect.c Revert "s3:libsmb: add a cache for cli_session_creds_prepare_krb5()" 2020-06-10 10:10:15 +00:00
clidfs.c libsmb: Remove clistr_pull_talloc() 2020-05-28 19:11:38 +00:00
clidgram.c libsmb: Pass "account_name/flags" through nb_getdc 2018-04-11 01:06:39 +02:00
clidgram.h libsmb: Pass "account_name/flags" through nb_getdc 2018-04-11 01:06:39 +02:00
clientgen.c s3:libsmb: remove finally unused credential flags 2020-05-28 08:04:12 +00:00
clierror.c libsmb: Remove unused cli_errstr() 2020-05-25 08:13:28 +00:00
clifile.c libsmb: Remove unused sync version of cli_getattrE() 2020-06-04 17:11:39 +00:00
clifsinfo.c libsmb: Remove clistr_pull_talloc() 2020-05-28 19:11:38 +00:00
clilist.c s3: libsmb: Make cli_list_trans() and cli_list take a 32-bit attribute. 2020-06-04 17:11:38 +00:00
climessage.c s3/libsmb: clang: Fix 'Value stored to 'p' is never read' 2019-10-22 17:28:27 +00:00
clioplock.c libsmb: Use cli_lockingx() in cli_oplock_ack() 2019-06-18 12:53:59 +00:00
cliprint.c
cliquota.c s3/libsmb: clang: Fix 'Value stored during initialization is never read' 2019-08-28 03:06:42 +00:00
clirap.c libsmb: Fix a typo 2020-06-10 22:20:46 +00:00
clirap.h libsmb: Add async cli_qfileinfo_basic 2020-06-04 17:11:39 +00:00
clireadwrite.c s3/libsmb: clang: Fix 'warning: Assigned value is garbage or undefined ' 2019-08-28 00:22:49 +00:00
clisecdesc.c s3:libsmb: add cli_query_mxac() 2019-03-04 18:11:17 +00:00
clispnego.c CVE-2020-10704: lib util asn1: Add ASN.1 max tree depth 2020-05-04 02:59:31 +00:00
clistr.c libsmb: Remove clistr_pull_talloc() 2020-05-28 19:11:38 +00:00
clisymlink.c s3:libsmb: pass impersonation_level to cli_ntcreate_send() 2018-12-13 08:52:24 +01:00
clitrans.c libsmb: Make cli_trans_send cancellable 2018-11-21 16:53:41 +01:00
conncache.c lib: Remove gencache.h from proto.h 2018-10-19 18:52:50 +02:00
dsgetdcname.c s3: libsmb: Cleanup - Remove the last use of a struct sockaddr_storage variable in dsgetdcname.c 2020-08-07 07:58:13 +00:00
dsgetdcname.h libsmb: Give dsgetdcname.c its own header 2018-04-11 01:06:39 +02:00
errormap_wbc.c
errormap_wbc.h
errormap.c lib: Align integer types 2020-01-19 18:29:39 +00:00
libsmb_cache.c
libsmb_compat.c s3: libsmb: Added new API smbc_readdirplus2() 2019-10-30 20:44:31 +00:00
libsmb_context.c libsmb: Fix a typo 2020-03-03 17:48:37 +00:00
libsmb_dir.c s3: libsmb: Cleanup - put talloc parameter first in name_resolve_bcast(). 2020-08-04 08:51:42 +00:00
libsmb_file.c libsmb: Remove cli_getattrE() fallback from cli_qfileinfo_basic() users 2020-06-04 17:11:39 +00:00
libsmb_misc.c libsmb: Make SMBC_dlist_contains return bool 2020-05-25 08:13:27 +00:00
libsmb_path.c Spelling fixes s/wont /won't / 2019-09-01 22:21:27 +00:00
libsmb_printjob.c
libsmb_server.c s3:libsmb_server: fix error handling in SMBC_server_internal() 2020-05-28 06:43:39 +00:00
libsmb_setget.c s3: libsmb: Added new API smbc_readdirplus2() 2019-10-30 20:44:31 +00:00
libsmb_stat.c lib/util: Standardize use of st_[acm]time ns 2020-08-15 08:51:09 +00:00
libsmb_thread_impl.c
libsmb_thread_posix.c
libsmb_xattr.c libsmb: Remove the CREATE_ACCESS_READ #define 2020-05-28 19:11:39 +00:00
libsmb.h
namecache.c s3: libsmb: Namecache. Fix bug missed by me in previous cleanup. 2020-07-17 05:54:29 +00:00
namequery_dc.c s3:libnet: Require sealed LDAP SASL connections for joining 2019-10-09 07:06:35 +00:00
namequery.c libsmb: Fix CID 1465860 Control flow issues (DEADCODE) 2020-08-11 18:00:26 +00:00
namequery.h s3: libsmb: Change dns_lookup_list_async() and associated functions to return a struct samba_sockaddr * array. 2020-08-07 06:34:37 +00:00
nmblib.c s3:libsmb: move cli_set_message() to source3/libsmb/nmblib.c 2020-02-26 19:45:36 +00:00
nmblib.h s3:libsmb: move cli_set_message() to source3/libsmb/nmblib.c 2020-02-26 19:45:36 +00:00
passchange.c s3:smbpasswd: Print debug message about Netbios 2019-01-09 18:40:44 +01:00
proto.h libsmb: Remove unused sync version of cli_getattrE() 2020-06-04 17:11:39 +00:00
pylibsmb.c pylibsmb: Use cli_qfileinfo_basic_send() in py_smb_filesize() 2020-06-04 17:11:40 +00:00
reparse_symlink.c libsmb: Add overflow protection to symlink_reparse_buffer_marshall() 2020-06-15 17:59:39 +00:00
samlogon_cache.c lib:util: Move discard_const(_p) to own header for libndr.h 2019-02-14 15:59:26 +01:00
samlogon_cache.h samlogon_cache: add netsamlog_cache_for_all() 2017-07-03 19:59:09 +02:00
smbclient.pc.in
smberr.c
smbsock_connect.c s3/libsmb: clang: Fix 'Assigned value is garbage or undefined' 2019-10-22 17:28:27 +00:00
trusts_util.c s3/libsmb: clang: value stored to 'idx_current' is never read 2019-09-26 18:41:28 +00:00
unexpected.c libsmb: Fix an error path memleak 2018-02-13 16:42:22 +01:00
unexpected.h libnmb: Make nb_packet_read_recv return a talloc'ed pkt 2018-01-24 00:58:17 +01:00
wscript s3: libsmb: Added new API smbc_readdirplus2() 2019-10-30 20:44:31 +00:00