Andrew Bartlett
9ddfd7d878
lib/replace: Set BROKEN_STRNLEN and BROKEN_STRNDUP on all AIX
...
The background is in https://bugzilla.samba.org/show_bug.cgi?id=1097
and wider reports are at
http://stackoverflow.com/questions/2091460/strndup-call-is-currupting-stack-frames
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu May 23 03:52:10 CEST 2013 on sn-devel-104
2013-05-23 03:52:10 +02:00
Christian Ambach
162ec83f68
waf: only use -fstack-protector when both compiler and linker support it
...
otherwise build with xlc on AIX fails because the compiler silently ignores the parameter
but the linker does not like it
Signed-off-by: Christian Ambach <ambi@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2013-05-17 11:16:33 +02:00
Ira Cooper
7fa4795607
waf: add -fstack-protector to LDFLAGS if detected.
...
If we compile with -fstack-protector, we should link
with it.
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Mar 6 04:06:04 CET 2013 on sn-devel-104
2013-03-06 04:06:04 +01:00
Andreas Schneider
def575bc29
waf: Correctly check for prctl in just one place.
...
Reviewed-by: David Disseldorp <ddiss@samba.org>
2013-03-05 23:29:43 +01:00
Björn Jacke
240a55249d
build: use -fstack-protector if available
...
Signed-off-by: Bjoern Jacke <bj@sernet.de>
Reviewed-by: Matthieu Patou <mat@samba.org>
Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Fri Feb 22 15:38:21 CET 2013 on sn-devel-104
2013-02-22 15:38:21 +01:00
Björn Jacke
d537d64ab8
Revert "wafbuild: use -Wstack-protector if available"
...
This reverts commit e6643fbf48
.
Signed-off-by: Bjoern Jacke <bj@sernet.de>
Reviewed-by: Matthieu Patou <mat@samba.org>
2013-02-22 12:15:13 +01:00
Björn Baumbach
41955b711f
build(waf)-libreplace: remove redundant check for flistea function
...
Signed-off-by: Björn Baumbach <bb@sernet.de>
Reviewed-by: Michael Adam <obnox@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
2013-01-15 14:49:19 +01:00
Jeremy Allison
7fe400de4c
lib/replace: Add ucontext configure waf checks.
...
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2013-01-15 08:28:45 +01:00
Volker Lendecke
e0bfb59803
Fix bug 9548: Correctly detect O_DIRECT
...
Reviewed by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Mon Jan 14 21:16:23 CET 2013 on sn-devel-104
2013-01-14 21:16:23 +01:00
Andreas Schneider
5323508773
replace: Remove deprecated getpass() support.
...
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
2012-12-03 14:35:10 +01:00
Björn Jacke
e6643fbf48
wafbuild: use -Wstack-protector if available
...
Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Tue Oct 30 15:04:30 CET 2012 on sn-devel-104
2012-10-30 15:04:30 +01:00
Björn Jacke
7fcb2532b9
wafbuild: reorder the Werror checks so that the ambigous w2 option is being checked last
2012-10-30 13:18:50 +01:00
Björn Jacke
51692042d9
wafbuild: merge the missing IBM compiler Werror flag "-qhalt=w" to waf
2012-10-30 13:18:50 +01:00
Björn Jacke
0342ca4062
wfabuild: fix the -errwarn compile flag test
...
as in the autoconf build this must be "-errwarn=%all"
2012-10-30 13:18:50 +01:00
Andrew Bartlett
6d73fd07f9
lib/replace: Fix configure on FreeBSD: define_ret is not correct here
...
define_ret is for when the output of the compiled and run program
should be put into the configure define. This is not the case
here.
Andrew Bartlett
2012-10-23 09:29:19 +02:00
Andrew Bartlett
debb2b2b9e
lib/replace: Fix detection of rpcsrv/yp_prot.h on FreeBSD
2012-10-23 09:29:18 +02:00
Andrew Bartlett
931ed2509d
lib/replace: Add test for what flag we need for -Werror behaviour
2012-09-29 14:50:00 +10:00
Jelmer Vernooij
fd8d4ec347
replace: Support setproctitle().
...
This uses the setproctitle() from libc, libsetproctitle or libbsd.
If none is available it provides a dummy implementation.
2012-09-24 23:06:07 +02:00
Andrew Bartlett
2e51c386be
lib/replace: Look for special flags needed for c99
...
This is normally handled by the waf core, but for HP-UX we currently fail.
The autoconf code hard-codes a case for HP-UX, but I want to try testing
it using a generic system first.
Andrew Bartlett
2012-09-24 03:51:07 +02:00
Andrew Bartlett
0727ad7321
lib/replace: Improve mkstemp test in autoconf and waf
...
On the Sernet-solaris8 host, this test passed in the autoconf build,
then failed in the recursive waf build. This newer test should probe
the behaviour more closely, by checking we get two distinct, secure
files.
Andrew Bartlett
2012-09-24 03:51:07 +02:00
Michael Adam
d237427f18
lib/replace: remove duplicate check for inotify
2012-09-11 14:29:54 +02:00
Björn Jacke
5c3769b056
build: define _BSD_TYPES on IRIX to have types like u_short
...
why the hell do IRIX systems headers like quota.h use types that are available
only with such a define...?
2012-09-07 16:42:14 +02:00
Björn Jacke
4f0b8f30c9
s3/aio_fork: fix build on irix
...
IRIX needs _XOPEN_SOURCE defined for SCM_RIGHTS to be available
2012-07-26 18:27:40 +02:00
Jeremy Allison
485787f0df
Move back to using per-thread credentials on Linux. Fixes the glibc native AIO lost wakeup problem.
...
See this post:
https://lists.samba.org/archive/samba-technical/2012-June/085101.html
for details.
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Jun 29 03:57:45 CEST 2012 on sn-devel-104
2012-06-29 03:57:45 +02:00
Jelmer Vernooij
8283d9ec4a
attr: Look for attr/attributes.h too.
...
Fixes finding of ATTR_ROOT on GNU/kFreeBSD.
Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date(master): Sat Jun 16 18:54:27 CEST 2012 on sn-devel-104
2012-06-16 18:54:26 +02:00
Stefan Metzmacher
deca298d7b
lib/replace: define HAVE_WORKING_STRPTIME instead of REPLACE_STRPTIME
...
That makes the logic in 'wscript' simpler.
metze
2012-06-14 09:34:14 +02:00
Stefan Metzmacher
0a92ac2ddc
lib/replace: execute strptime.c tests
...
They need runtime verification.
metze
2012-06-14 09:34:13 +02:00
Stefan Metzmacher
e3a3c0d764
Revert "replace: use replace for non 'samba' compliant strptime"
...
This reverts commit 4ea7d4694a
.
A better fix will follow.
metze
2012-06-14 09:34:13 +02:00
Stefan Metzmacher
4430d6a0d9
lib/replace: add more condition to add snprintf.c
...
metze
2012-06-14 09:34:13 +02:00
Stefan Metzmacher
1746ffe090
Revert "lib/replace: Fix snprintf() override for systems with a broken snprintf()"
...
This reverts commit bbc1b0c985
.
A more generic fix will follow.
metze
2012-06-14 09:34:13 +02:00
Stefan Metzmacher
4e1ebdc0c4
lib/replace: s/execute=1/execute=True
...
metze
2012-06-14 09:34:13 +02:00
Andrew Bartlett
bbc1b0c985
lib/replace: Fix snprintf() override for systems with a broken snprintf()
...
This ensures we provide the replacement functions that we need.
Andrew Bartlett
2012-06-06 08:23:10 +02:00
Andrew Bartlett
01106230dd
libreplace: Ensure we link xattr.c on MacOS
...
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Jun 4 02:36:55 CEST 2012 on sn-devel-104
2012-06-04 02:36:55 +02:00
Andrew Bartlett
75c03b332c
libreplace: Add missing tests for HAVE_MREMAP and HAVE_SHARED_MMAP
2012-06-02 15:56:41 +10:00
Andrew Bartlett
e9d797e153
lib/replace: Merge remaining xattr test details from lib/util
...
I prefer the longer XATTR_ADDITIONAL_OPTIONS define and the NULL
rather than 0 values in the getxattr test.
Andrew Bartlett
2012-06-02 02:13:49 +02:00
Andrew Bartlett
f9b7cd53b9
s4-xattr: Use libreplace xattr functions directly
2012-06-02 02:13:49 +02:00
Andrew Bartlett
c290cdb934
lib/replace: xattr wrappers in lib/replace rather than source3/lib/system.c
...
This also moves all the still-used configure tests etc. The unused OSF API
is also removed at this time.
Andrew Bartlett
2012-06-02 02:13:49 +02:00
Jeremy Allison
d425a4cd3d
On advice from Jelmer and Andrew, move the blksize_t and blkcnt_t tests into libreplace to make it standalone.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Apr 10 04:07:11 CEST 2012 on sn-devel-104
2012-04-10 04:07:11 +02:00
Jelmer Vernooij
71d41a015a
libreplace: Add getpeereid implementation.
2012-03-24 16:00:36 +01:00
Jelmer Vernooij
d4c4cb06c5
replace: Move memalign() from lib/util/system.c to libreplace.
2012-03-24 14:43:21 +01:00
Rusty Russell
584b996a1a
lib/replace: test for incoherent mmap.
...
We test for other mmap features here, and both tdb1 and tdb2 want this check.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-03-22 01:57:37 +01:00
Andrew Bartlett
3cd7fdab62
build: Add libbsd as a dep for LIBREPLACE_HOSTCC
...
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Feb 20 02:58:20 CET 2012 on sn-devel-104
2012-02-20 02:58:20 +01:00
Jelmer Vernooij
e3dac4b61a
replace: Only add bsd dependency when bsd library was found.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Thu Feb 2 05:18:45 CET 2012 on sn-devel-104
2012-02-02 05:18:45 +01:00
Jelmer Vernooij
c83ce7bcc6
replace: Only include C files from which there are actually functions used.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue Jan 31 15:21:04 CET 2012 on sn-devel-104
2012-01-31 15:21:04 +01:00
Jelmer Vernooij
5c50e08983
replace: use libbsd for strlcat/strlcpy when available.
2012-01-31 13:44:17 +01:00
Andreas Schneider
c7fbcf9b98
replace: Add checks for setreuid and setregid.
2011-10-27 13:32:00 +02:00
Andreas Schneider
72c95baa4b
replace: Make sure we compile without uid_wrapper.
2011-10-27 13:32:00 +02:00
Rusty Russell
5dcce64bbd
config.h: define HAVE_LIBREPLACE
...
tdb2 wants to know if it should use replace.h.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Thu Oct 13 08:58:35 CEST 2011 on sn-devel-104
2011-10-13 08:58:35 +02:00
Günther Deschner
9167d70e77
libreplace: move "struct timespec" checks into libreplace (where timespec is already used).
...
Bjoern, Metze, please check.
Guenther
2011-03-04 00:28:27 +01:00
Volker Lendecke
0fc1650e09
libreplace: poll based on select
2011-02-28 16:40:19 +01:00