1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-04 08:23:50 +03:00

configure configure.in: Added checks for statvfs64. Last bit of 64 bit widening (I hope :-).

include/config.h.in: Added #undef STAT_STATVFS64.
include/includes.h: Added SMB_STRUCT_STATVFS type, Changed SMB_BIG_INTEGER to
                    SMB_BIG_UINT and SMB_BIG_INT types.
include/smb.h: Added flag defines from CIFS spec.
lib/debug.c: Fixed one more mode_t issue.
lib/system.c: Added sys_statvfs wrapper.
lib/util.c: Changed trim_string to use size_t.
param/loadparm.c: Moved "blocking locks" into locking section. Alphabetised
                  locking options. Question - shuld we do this for all options ?
passdb/ldap.c: Changed SMB_BIG_INTEGER to SMB_BIG_UINT.
passdb/nispass.c: Changed SMB_BIG_INTEGER to SMB_BIG_UINT.
passdb/smbpass.c: Changed SMB_BIG_INTEGER to SMB_BIG_UINT.
smbd/dfree.c: Changed to use 64 bit types if available. Moved to use unsigned
              types.
smbd/dosmode.c: Fixed one more mode_t issue.
smbd/negprot.c: Changed literals to be FLAG_ #defines.
smbd/nttrans.c: Removed dead code.
smbd/open.c: Changed disk_free call.
smbd/process.c: Changed literals to be FLAG_ #defines.
smbd/reply.c: Changed disk_free call.
smbd/trans2.c: Fixed but in SMB_QUERY_FS_VOLUME_INFO call. Was using
               UNICODE - should use ascii.
tests/summary.c: Added STAT_STATVFS64 check.
Jeremy.
This commit is contained in:
Jeremy Allison
-
parent c381d32e3d
commit c512b1b91f
22 changed files with 206 additions and 98 deletions

View File

@@ -374,6 +374,18 @@
# endif
#endif
/*
* Type for statvfs structure.
*/
#ifndef SMB_STRUCT_STATVFS
# if defined(STAT_STATVFS64)
# define SMB_STRUCT_STATVFS struct statvfs64
# else
# define SMB_STRUCT_STATVFS struct statvfs
# endif
#endif
/*
* Defines for 64 bit fcntl locks.
*/
@@ -411,9 +423,11 @@
#endif
#if defined(HAVE_LONGLONG)
#define SMB_BIG_INTEGER unsigned long long
#define SMB_BIG_UINT unsigned long long
#define SMB_BIG_INT long long
#else
#define SMB_BIG_INTEGER unsigned long
#define SMB_BIG_UINT unsigned long
#define SMB_BIG_INT long
#endif
#ifndef MIN