summaryrefslogtreecommitdiffstats
path: root/lib/replace
Commit message (Collapse)AuthorAgeFilesLines
* Bug 8997: change libreplace GPL source to LGPLDavid Disseldorp2013-06-033-31/+43
| | | | | | | | | | | | | | | | | | | | | | | | libreplace currently includes socket.c and getifaddrs.c both of which are GPL licensed. Although not required, talloc and tdb build alongside this source, leading to some ambiguity regarding their LGPL licences. The following copyright holders have agreed to the GPL->LGPL change: lib/replace/getifaddrs.c Copyright (C) Andrew Tridgell 1998 Copyright (C) Jeremy Allison 2007 Copyright (C) Jelmer Vernooij <jelmer@samba.org> 2007 lib/replace/test/getifaddrs.c lib/replace/socket.c * Copyright (C) Michael Adam <obnox@samba.org> 2008 Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Mon Jun 3 18:06:18 CEST 2013 on sn-devel-104
* build: Remove autoconf build systemAndrew Bartlett2013-05-2812-2174/+0
| | | | | | | | | | | We are now confident that that waf build system meets enough of our needs that we will work to improve it, rather than maintain two build systems. Andrew Bartlett Reviewed-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
* lib/replace: Remove unused install-shAndrew Bartlett2013-05-271-238/+0
| | | | | | | Reviewed-by: Jelmer Vernooij <jelmer@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Mon May 27 05:51:04 CEST 2013 on sn-devel-104
* lib/replace: Set BROKEN_STRNLEN and BROKEN_STRNDUP on all AIXAndrew Bartlett2013-05-231-0/+13
| | | | | | | | | | | 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
* waf: only use -fstack-protector when both compiler and linker support itChristian Ambach2013-05-171-1/+1
| | | | | | | | 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>
* lib/replace: add SCNx macrosChristian Ambach2013-05-061-0/+39
| | | | | | | we already have PRI*, but the corresponding SCN* were missing Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* lib/replace: prefer inttypes.h over stdint.hChristian Ambach2013-05-061-4/+4
| | | | | | | | | according to C99 7.8, inttypes.h should include stdint.h so prefer inttypes.h and fall back to stdint.h (and our own definitions of PRI*) only when inttypes.h could not be found Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* waf: add -fstack-protector to LDFLAGS if detected.Ira Cooper2013-03-061-0/+1
| | | | | | | | | | 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
* waf: Correctly check for prctl in just one place.Andreas Schneider2013-03-051-1/+14
| | | | Reviewed-by: David Disseldorp <ddiss@samba.org>
* lib/replace: add AC_CHECK_VALUEOF() macroStefan Metzmacher2013-03-011-0/+15
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* build: use -fstack-protector if availableBjörn Jacke2013-02-221-0/+3
| | | | | | | | 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
* Revert "wafbuild: use -Wstack-protector if available"Björn Jacke2013-02-221-3/+0
| | | | | | | This reverts commit e6643fbf48afccd0acedb65fbe24d3ce84d44c40. Signed-off-by: Bjoern Jacke <bj@sernet.de> Reviewed-by: Matthieu Patou <mat@samba.org>
* heimdal_build: Try again to sort out the strerror_r messAndrew Bartlett2013-01-192-2/+3
| | | | Reviewed-by: Stefan Metzmacher <metze@samba.org>
* build(waf)-libreplace: remove redundant check for flistea functionBjörn Baumbach2013-01-151-1/+1
| | | | | | Signed-off-by: Björn Baumbach <bb@sernet.de> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* lib/replace: Include sys/ucontext.h if available.Jeremy Allison2013-01-151-0/+4
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* lib/replace: Add ucontext configure autoconf checks.Jeremy Allison2013-01-151-0/+13
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* lib/replace: Add ucontext configure waf checks.Jeremy Allison2013-01-151-1/+10
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* lib/replace: Add missing check for sys/wait.hJeremy Allison2013-01-151-1/+1
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* Fix bug 9548: Correctly detect O_DIRECTVolker Lendecke2013-01-142-11/+21
| | | | | | | 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
* replace: Fix compilation of rep_mkstempJesper Larsen2013-01-091-1/+1
| | | | | | | | | | Commit 1fbc185 removed the variable 'p'. Use the equivalent variable 'template' instead. Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Jan 9 07:18:33 CET 2013 on sn-devel-104
* replace: Remove deprecated getpass() support.Andreas Schneider2012-12-038-285/+0
| | | | Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
* lib/replace: Do not use STRERROR_R_PROTO_COMPATIBLE as only roken.h sets thisAndrew Bartlett2012-11-222-4/+2
| | | | | | | | Currently, we put strerror_r into libreplace even on systems with strerror_r. Andrew Bartlett Reviewed-by: Andreas Schneider <asn@samba.org>
* lib/replace: replace all *printf function if we replace snprintf (bug #9390)Stefan Metzmacher2012-11-143-17/+34
| | | | | | | | | | This fixes segfaults in log level = 10 on Solaris. Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Björn Jacke <bj@sernet.de> Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Wed Nov 14 19:41:14 CET 2012 on sn-devel-104
* wafbuild: use -Wstack-protector if availableBjörn Jacke2012-10-301-0/+3
| | | | | Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Tue Oct 30 15:04:30 CET 2012 on sn-devel-104
* wafbuild: reorder the Werror checks so that the ambigous w2 option is being ↵Björn Jacke2012-10-301-1/+5
| | | | checked last
* wafbuild: merge the missing IBM compiler Werror flag "-qhalt=w" to wafBjörn Jacke2012-10-301-1/+1
|
* wfabuild: fix the -errwarn compile flag testBjörn Jacke2012-10-301-1/+1
| | | | as in the autoconf build this must be "-errwarn=%all"
* lib/replace: Return size of xattr if size argument is 0Andrew Bartlett2012-10-281-3/+12
| | | | | | This makes rep_{f,}getxattr a more complete replacement for the linux function. Andrew Bartlett
* lib/replace: Fix configure on FreeBSD: define_ret is not correct hereAndrew Bartlett2012-10-231-1/+0
| | | | | | | | 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
* lib/replace: Fix detection of rpcsrv/yp_prot.h on FreeBSDAndrew Bartlett2012-10-231-1/+4
|
* lib/replace: Add test for what flag we need for -Werror behaviourAndrew Bartlett2012-09-291-0/+9
|
* replace: Avoid returning value in void setproctitle() replacement.Jelmer Vernooij2012-09-251-1/+0
| | | | | Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org> Autobuild-Date(master): Tue Sep 25 06:38:40 CEST 2012 on sn-devel-104
* replace: Support setproctitle().Jelmer Vernooij2012-09-244-0/+19
| | | | | This uses the setproctitle() from libc, libsetproctitle or libbsd. If none is available it provides a dummy implementation.
* lib/replace: Look for special flags needed for c99Andrew Bartlett2012-09-241-0/+10
| | | | | | | | | 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
* lib/replace: Improve mkstemp test in autoconf and wafAndrew Bartlett2012-09-242-4/+34
| | | | | | | | | 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
* lib/replace: Remove unused nap and therefore the SCO defineAndrew Bartlett2012-09-231-10/+0
| | | | | | In any case, the Samba Team stopped supporting SCO systems a long time ago. Andrew Bartlett
* lib/replace: Try to fix build on HP-UX for os2_delete testAndrew Bartlett2012-09-234-17/+6
| | | | | | | | | | | | The issue is that this file is both used in an autoconf test, and later in a smbtorture test. Because os2_delete.c does not include replace.h, bool may not be defined. So, instead we shift the need for bool to a different header. (The readdir tests in repdir.m4 are not yet in the waf configure). Andrew Bartlett
* ntdb: Try to fix the build on Solaris which does not have errAndrew Bartlett2012-09-231-0/+13
|
* replace: fix 520c9b0b0ae33Björn Jacke2012-09-181-1/+1
| | | | | | | fix typo in ifdef. Thanks to Joachim Schmitz for spotting this! Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Tue Sep 18 16:06:18 CEST 2012 on sn-devel-104
* libreplace: Bug 8107, Fix poll replacement to become a msleep replacementJoachim Schmitz2012-09-171-1/+1
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* replace: add some includes for poll.hBjörn Jacke2012-09-161-0/+6
| | | | | | | See bug #8107 Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Sun Sep 16 04:05:08 CEST 2012 on sn-devel-104
* lib/replace: remove duplicate check for inotifyMichael Adam2012-09-111-1/+1
|
* osX define uint64_t as long long intMatthieu Patou2012-09-101-1/+1
|
* build: define _BSD_TYPES on IRIX to have types like u_shortBjörn Jacke2012-09-072-0/+2
| | | | | why the hell do IRIX systems headers like quota.h use types that are available only with such a define...?
* s3/aio_fork: fix build on irixBjörn Jacke2012-07-262-0/+5
| | | | IRIX needs _XOPEN_SOURCE defined for SCM_RIGHTS to be available
* replace: make the INT64_MAX define more portableBjörn Jacke2012-07-041-1/+1
|
* Move back to using per-thread credentials on Linux. Fixes the glibc native ↵Jeremy Allison2012-06-292-3/+5
| | | | | | | | | | | | | 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
* replace: define INT64_MAX when not definedBjörn Jacke2012-06-281-0/+4
| | | | | | | Tru64 doesn't have any stdint.h Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Thu Jun 28 00:45:58 CEST 2012 on sn-devel-104
* attr: Look for attr/attributes.h too.Jelmer Vernooij2012-06-163-2/+4
| | | | | | | 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
* lib/replace: define HAVE_WORKING_STRPTIME instead of REPLACE_STRPTIMEStefan Metzmacher2012-06-143-10/+16
| | | | | | That makes the logic in 'wscript' simpler. metze