[SCM] Samba Shared Repository - branch master updated
Günther Deschner
gd at samba.org
Tue Feb 22 05:36:01 MST 2011
The branch, master has been updated
via 79b41dc s3-waf: add check for ftruncate extend.
via 4fe3ece s3-waf: add check for realpath() NULL arg.
via 33d676c s3-waf: add check for makedev().
via bd33355 s3-waf: add check for TIME_T_MAX.
via 2984003 s3-waf: add check for /proc/sys/kernel/core_pattern.
from 0b93902 s4-descriptor: Fixed a typo in a comment and clarified it a bit.
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 79b41dcae14764612946cef012ca20c61dace919
Author: Günther Deschner <gd at samba.org>
Date: Tue Feb 22 12:43:12 2011 +0100
s3-waf: add check for ftruncate extend.
Guenther
Autobuild-User: Günther Deschner <gd at samba.org>
Autobuild-Date: Tue Feb 22 13:35:48 CET 2011 on sn-devel-104
commit 4fe3ecefa04d7ca1321109574014950503fca5b8
Author: Günther Deschner <gd at samba.org>
Date: Tue Feb 22 11:57:23 2011 +0100
s3-waf: add check for realpath() NULL arg.
Guenther
commit 33d676cd7e34ca5b9ed5ea0c99bcbda441b3b95f
Author: Günther Deschner <gd at samba.org>
Date: Tue Feb 22 11:53:51 2011 +0100
s3-waf: add check for makedev().
Guenther
commit bd333551bd5a2436773a1541a28e3e47c0e08533
Author: Günther Deschner <gd at samba.org>
Date: Tue Feb 22 11:49:52 2011 +0100
s3-waf: add check for TIME_T_MAX.
Guenther
commit 2984003275ed415268b2e135bf71380ab9ae9ef3
Author: Günther Deschner <gd at samba.org>
Date: Tue Feb 22 11:41:06 2011 +0100
s3-waf: add check for /proc/sys/kernel/core_pattern.
Guenther
-----------------------------------------------------------------------
Summary of changes:
source3/wscript | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 66 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/wscript b/source3/wscript
index d3c41b6..ea68959 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -1229,6 +1229,72 @@ syscall(SYS_initgroups, 16, NULL, NULL, 0);
define='HAVE_STRUCT_SIGEVENT_SIGEV_VALUE_SIGVAL_PTR',
headers='signal.h');
+ if os.path.exists('/proc/sys/kernel/core_pattern'):
+ conf.DEFINE('HAVE_SYS_KERNEL_PROC_CORE_PATTERN', '1')
+
+ if conf.CHECK_CODE('''
+#include <time.h>
+main() {
+ struct tm *tm;
+ if (sizeof(time_t) == 8) {
+ time_t max_time = 0x7fffffffffffffffll;
+ tm = gmtime(&max_time);
+ /* This should fail with 32-bit tm_year. */
+ if (tm == NULL) {
+ /* Max time_t that works with 32-bit int tm_year in struct tm. */
+ max_time = 67768036191676799ll;
+ tm = gmtime(&max_time);
+ if (tm) {
+ exit(0);
+ }
+ }
+ }
+ exit(1);
+}''',
+ '__TIME_T_MAX',
+ addmain=False,
+ execute=True,
+ msg="Checking for the maximum value of the 'time_t' type"):
+ conf.DEFINE('TIME_T_MAX', '67768036191676799ll')
+
+ conf.CHECK_CODE('''
+#if defined(HAVE_UNISTD_H)
+#include <unistd.h>
+#endif
+#include <sys/types.h>
+main() { dev_t dev = makedev(1,2); return 0; }
+''',
+ 'HAVE_MAKEDEV',
+ addmain=False,
+ msg='Checking whether the macro for makedev is available')
+
+ conf.CHECK_CODE('''
+#include <stdio.h>
+#include <limits.h>
+#include <signal.h>
+
+void exit_on_core(int ignored) {
+ exit(1);
+}
+
+main() {
+ char *newpath;
+ signal(SIGSEGV, exit_on_core);
+ newpath = realpath("/tmp", NULL);
+ exit((newpath != NULL) ? 0 : 1);
+}
+''',
+ 'REALPATH_TAKES_NULL',
+ addmain=False,
+ execute=True,
+ msg='Checking whether the realpath function allows a NULL argument')
+
+ conf.CHECK_CODE('''#include "../tests/ftruncate.c"''',
+ 'HAVE_FTRUNCATE_EXTEND',
+ msg='Checking for ftruncate extend',
+ addmain=False,
+ execute=True)
+
default_static_modules=TO_LIST('''pdb_smbpasswd pdb_tdbsam pdb_wbc_sam
auth_sam auth_unix auth_winbind auth_wbc auth_server
auth_domain auth_builtin vfs_default
--
Samba Shared Repository
More information about the samba-cvs
mailing list